[Cartoweb-users] Re: Problem with toolbar buttons
Oliver Christen
oliver.christen at camptocamp.com
Fri Nov 23 02:09:44 EST 2007
Hi
if the zoom or pan function dont work, then you have some major issue with your project, as this should always work. This is usualy a effect of a total failing of the javascript framework.
I would strongly suggest starting anew with the template of a working project.
as for query, if you added the correct metadata in the corresponding layer in the mapfile, it should return by default all the data associated with the selected features, as explained in the documentation.
you can interact with the query result in several way: specifying query_returned_attributes in the layer metadata, modifying the "table" coreplugin template, or adding a new "tablerules" plugin (see chapter 9 of http://cartoweb.org/doc/foss4g06/CartoWeb_GettingStarted.pdf) and more generaly http://www.cartoweb.org/cwiki/Foss4g06Workshops
regards
Oliver
----- Original Message -----
From: natasha chatterjee
To: Oliver Christen
Sent: Friday, November 23, 2007 6:59 AM
Subject: Problem with toolbar buttons
Hello
Thanks a lot for all the details now many things are clear to me .
I am able to load the new data aswell but the zoomin,zoomout and other
functionalities are not working(when I am applying any operation on the
map like zoomin, zoomout etc. its not reflecting),though i have tried and
still in the process, please tell me which files are associated with the
working of these buttons.(zoomin,zoomout,panning,full extent etc.)
In the same way I wanted to know in which files coding for the map
querying is done ,whenver we fire query then changes in which file
'll effect the results ?
Looking forward to your reply.
Regards
Natasha
Oliver Christen <oliver.christen at camptocamp.com> wrote:
Hi
1) thats a bit too vague, can you be more precise?
2) http://www.cartoweb.org/doc/cw3.4/xhtml/image/intro/images/schema_flux.png
and http://www.cartoweb.org/doc/cw3.4/xhtml/intro.archi.html
Cartoweb has two parts, Cartoclient and Cartoserver. The Cartoserver interact with mapserver via mapscript (http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class)
The generated data (map image, ...) are then then transfered to the Cartoclient which build the web page layout and the page is sent to the user browser. Once the page is displayed in the user browser, all actions are handled with javascript (zoom, pan, selection, ...) and the html form is sent back to the Cartoclient which process the action and transfert it to the Cartoserver (if needed) and the cycle start back.
3) Templates are based on SMARTY syntax. See smarty documentation (http://smarty.php.net/docs.php) and there is plenty of tutorials (http://smarty.php.net/crashcourse.php)
As for Cartoweb specificities, there is no documentation listing all the variable used in the templates.
But usually all plugin and coreplugin have their own small templates files containing the related variables.
As for the main cartoclient.tpl file, experiement with the demo templates to get familiar with the various elements.
regards
Oliver
----- Original Message -----
From: natasha chatterjee
To: oliver
Sent: Thursday, November 22, 2007 9:39 AM
Subject: few queries
Hello
1) how does the query option works in Cartoweb? (please mention the
files)
2) which technology(as java applet is used in many cases what in case
of cartoweb?) is used behind the running of the main map
displayed at the front end in case of cartoweb. I basically want to
know the process of working of mapserver in case of cartoweb
specially.Is there any block diagram of process flow available?
3) Can you please send me the documentation of templates( in order to
know the basic syntax of the template files used in cartoweb so that
modifications can be done in a proper manner as still there are few
syntax I am not familiar with .If its for beginners then good for me)
Looking forward to your mail.
Regards
Natasha
--------------------------------------------------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
------------------------------------------------------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071123/c805ebcb/attachment.html
More information about the Cartoweb-users
mailing list