[Geomoose-users] repost: Zoom to Results (GM2)
Dan Little
danlittle at yahoo.com
Fri Jan 8 09:50:59 EST 2010
Hey Matt,
This should not be too bad of an enhancement. Without looking at code (because I feel you deserve SOME sort of answer immediately), I think you'd need to add the following to the query service:
1) A line checking for a "zoom_to_all" parameter.
2) You may need add something that calculates a "running" bounds. Because MapServer doesn't natively return the bounds of all the features, you'd need to define a bounds, then while MapScript is iterating through the features, adjust those bounds to fit the features.
3) In the return/results section of the script, check to see if the zoom_to_all parameter has been set, and add the GeoMOOSE.zoomToExtent line in the <script> section that would zoom to the computed bounds from part #2. This would look VERY similar to the zoom_to_first parameter.
>
>From: Matthew D. Syvertson <msyvertson at co.richland.nd.us>
>To: geomoose-users at lists.sourceforge.net
>Sent: Thu, January 7, 2010 8:40:53 AM
>Subject: [Geomoose-users] repost: Zoom to Results (GM2)
>
> >
>
>
>>
>I would like to repost this question to
>the list. During the holidays many are away from the office and such, so
>this may have been missed. I really would like to be able to “zoom_to_all”
>results in a query, and possibly even highlight all.
>
>>
>Matt Syvertson
>msyvertson at co.richland.nd.us
>701-642-7860
>
>>
>>
________________________________
>
>From:Matthew D.
>Syvertson [mailto:msyvertson at co.richland.nd.us]
>Sent: Wednesday, December 30, 2009
>10:20 AM
>To: geomoose-users at lists.sourceforge.net
>Subject: [Geomoose-users] Zoom to
>Results (GM2)
>
>In the documentation for the new query service, I notice a “zoom_to_first”
>parameter. I would like to have the functionality to zoom to the entire
>result set.
>
>Is this parameter possible, and just no yet documented? If not,
>what might I do to make this possible?
>
>Thanks in advance for your assistance.
>
>Matt Syvertson
>RichlandCounty GISCoordinator
>418 2nd Ave N
>Wahpeton, ND 58075
>msyvertson at co.richland.nd.us
>Voice: 701-642-7860 Fax: 701-642-7746
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100108/00ccfbdf/attachment.html
More information about the Geomoose-users
mailing list