ZOOM TO A SELECTED OBJECT

J. Parapar listario at GMAIL.COM
Tue May 30 15:09:17 EDT 2006


Hi Toni

You can use the itemquery mode to select the municipality and the
mapxy parameter to set the map extent, mapxy=shape set map extent to
the extent of the selected shape. See also the buffer and scale
parameters.

Hope this helps.

Best regards,
Jorge

2006/5/30, toni hernández <toni at sigte.udg.es>:
> Hi,
>
> I have a layer of municipalities boundaries (SHP file with polygons)
>
> How can I zoom to a municipality selected for the user from an HTML form?
> Ex. Zoom to a municpality called "SALT".
>
> Maybe changing the map file dynamically?
> I have been reading about filter and fitleritem but I do not see how can
> make a zoom to a particular municpality.
>
>
>
> thanks
>



More information about the mapserver-users mailing list