Select Polygon per mouse click, queryByPoint? -- using C# MapScript

Zhonghai Wang zhonghaiw at GMAIL.COM
Tue Aug 22 04:32:48 EDT 2006


Hi guys,

I have one case here to select a polygon per mouse click, I just wonder if
someone has ever done something like this. The Situation is:

I have one layer, which contains several polygons, for example, a map layer
contains all the states of a country, if the user click one of the polygon
region, the map will be zoomed to this polygon region with a proper map
scale, it means that this region will be highlighted and be zoomed to the
whole map window.

Is it possible?

I've tried with queryByPoint, but it's not possible to set the buffer, since
the size of each polygon region differs.

thanks for any information.

Zhonghai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060822/49fd9880/attachment.html


More information about the mapserver-users mailing list