zooming to and displaying selected features
Michael Anderson
m_anderson14 at hotmail.com
Thu Apr 5 15:26:52 PDT 2001
Hello,
We are trying to send MapServer an item query and return a map that displays
only the selected features and is zoomed to their extent. We have a
solution, but it's not very clean.
Here's what we are doing. We submit an itemnquery request and use a template
to return the extent of each returned feature. Then we have JavaScript loop
through the features and create a map extent that covers all of them. This
extent is included in an itemnquerymap request to display just those
features at the right extent.
Does anyone know of a better way, hopefully using MapScript?
Thanks.
Mike Anderson
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the MapServer-users
mailing list