[Geomoose-users] Jumpto_scale
Len Kne
lkne at houstoneng.com
Tue May 18 16:43:12 EDT 2010
Hi Paul
The query and select tools both grab the extent of the matching shape and use the size of that to set the extent. Since it is a point and there is no buffer, the extent is very small, thus GM will zoom to the lowest extent allowed in the mapbook. One way to prevent this would be to add a buffer value to the result in query.php (or itemquery.php if you are using that version). Look for the line:
printf('GeoMOOSE.zoomToExtent(%f,%f,%f,%f);', $bounds->minx, $bounds->miny, $bounds->maxx, $bounds->maxy);
Change it to something like:
printf('GeoMOOSE.zoomToExtent(%f,%f,%f,%f);', $bounds->minx-1000, $bounds->miny-1000, $bounds->maxx+1000, $bounds->maxy+1000);
This example is adding 1000 ground units to each side of the extent. You may need to play with this value to get close to the results you want. The downside to this approach is it will buffer all layers. Ideally you would be able to set a buffer value in the mapbook to handle this - this option is in the print and feature report services, but not in query or select.
Len
From: Wirth, Paul [mailto:Paul.Wirth at kniferiver.com]
Sent: Tuesday, May 18, 2010 2:38 PM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Jumpto_scale
Hey Everybody,
Still cannot figure it out.
I am using Geomoose 2.2 Webmercator to map out our properties over 5 states. One issue that I am having is I am searching our properties by point and it jumps to a scale of 1:864 all the time for all points. I have tried some things, but have been able to change the jumpto_scale to bring up a bigger scale so I can view the property boundaries. A 1:10000 scale would work better and then I can zoom in from there. Anybody have any ideas.
Paul Wirth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100518/be98bd5a/attachment.html
More information about the Geomoose-users
mailing list