[Cartoweb-users] Problem with zooming and outlining

Pierre GIRAUD pierre.giraud at camptocamp.com
Wed May 3 04:12:42 EDT 2006

Hello Kenton,

There toolbar management is a bit complex and it seems you're facing 
some problems with it.
The mechanism doesn't accept hard coded toolbar templates.

In the HTML generated code, the cw3_tools should define an array listing 
the available tools. In your case, this array doesn't correspond to the 
tools in the toolbar :
 - the query tool should appear in the GUI but it does not,
 - the pdfrotate tool should appear in the GUI but it does not.

In order to manage tool buttons, you'd better use negative tool weights. 
For example, if you don't want the query tool to appear in the GUI you 
have to set "weightQuery = - 1" in query.ini.

Did you override the toolbar.tpl template in your project (to add the 
history buttons) ? This may be the main cause of your problems.



Kenton Williams wrote:

>My Cartoweb project has developed a problem and I am unsure of which file to check to fix it.  Here's the link:
>The zoom in works fine.  The zoom out does not actually zoom out - it zooms in by a fixed amount.  Also, when the zoom out operation completes (incorrectly), the zoom in tool is set as the active tool rather than the zoom out tool staying active. 
>When you make an outline (I only have the rectangle outline tool present), you draw the box, enter your title, and the map changes extent drastically.  No outline is created.
>I added back extent and forward extent buttons using code similar to that suggested a few days ago on the cartoweb user mailing list, simply by adding the two images with associated javascript back or forward.  When you use these buttons, rather
>than going back or forward, it just zooms in further.
>The demoCW3 project on the same server is working just fine, although using the back and forward buttons on the browser only zooms in just like my project.  The regular zoom in and out tools work fine in the demoCW3 project on my server.  Can anyone
>suggest what I can check to solve my problem?
>Kenton W.
>Cartoweb-users mailing list
>Cartoweb-users at lists.maptools.org

More information about the Cartoweb-users mailing list