[OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be done?

Ian Turton ijturton at gmail.com
Tue Mar 1 14:24:23 EST 2011


On 1 March 2011 14:15, Andrew Stewart <Andrew.Stewart at reddeer.ca> wrote:
> Thanks again for the help... I think I will try the first point you
> suggested by using a BBOX strategy. Now I have assigned a min/max scale
> through my Web Services WFS but this does not seem to come across as the WFS
> layer shows up immediately after loading the map. Do I have to specify the
> min/maxextent of the actual WFS layer itself when declaring it?
>
> My whole issue with the WMS layer is.. it works super fast and I can
> literally turn on/off these 2000+ points in 5 seconds flat.. except when I
> am doing a WMSGetFeatureInfo the mouse must be situated in the exact center
> of the point or no feature info is returned.. thus I was trying to use the
> WFS way and symbol becuase no matter how much the mouse touches the WFS
> symbol the feautre info was getting returned properly, wish the WMS worked
> that way :/
>

Just use a WFS GetFeature request with a small bounding box around the
click to query the WMS layer.

Ian
-- 
Ian Turton


More information about the Users mailing list