[Cartoweb-users] Problem with zooming and outlining

oliver oliver.christen at camptocamp.com
Wed May 3 02:09:06 EDT 2006

Hi kenton.

Im unsure if this will help you but, as far as i know, back and forward 
function wont work well with cartoweb without some serious session reworking 
function. When you use your back or forward button, the session state become 
dissynchronised with what is displayed on screen. Let say you zoomin twice, 
then goes back twice then pan, the pan will be done, accordingly to the 
session state, after the two zoomin actions. So the result will not be what 
you were expecting.
This may be part of the problem. Though it doesnt explain some of the weird 
behaviour you encounter. try to add in your template, somewhere at the 
bottom, the lines:
this usually help trying to see what is effectively returned to the server.
Also be sure you do not have any javascript errors.


> Hello,
> My Cartoweb project has developed a problem and I am unsure of which file 
> to check to fix it.  Here's the link:
> www.geodatacommons.umaine.edu/cgddemo/cartoweb3/htdocs/cgd_mapfile.php
> 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
> http://lists.maptools.org/mailman/listinfo/cartoweb-users

More information about the Cartoweb-users mailing list