[OpenLayers-Users] (SOLVED) Confusing behaviour of GetFeature
control in BBox based selection
Alex
zeitalex at googlemail.com
Fri Feb 11 03:57:20 EST 2011
Solution is to disable "Loose bbox" in Geoserver's Datastore
2011/2/10 Alex <zeitalex at googlemail.com>
> Dear Charles,
> Thank you very much for your answer.
> Yes, I tried. I even set it to 0. It does not change anything. The problem
> is that selection is done on the base of the Bounding Box of a Line. In some
> cases if user clicks near one line then another (longer) line located far
> from mouse click is selected. It is due to fact that mouse click is inside
> of the BBox of the longer line and not inside of the line that is closer to
> the click point. I desperately trying to figure out how to disable BBox
> based selection. I don’t know why it is default behaviour, it is so
> confusing. Probably the reason is that BBox based selection is faster. But
> why there is no easy way to change this default behaviour?
>
> 2011/2/10 Charles Galpin <cgalpin at lhsw.com>
>
> Have you tried a lower "clickTolerance"? The default is 5 pixels.
>>
>> hth,
>> charles
>>
>> On Feb 10, 2011, at 5:46 AM, Alex wrote:
>>
>> > We use Geoserver with PostGIS and OpenLayers to display a river network
>> as WMS Layer. The user should be able to click on the river and get its name
>> as Popup. It is no problem so far. But if one is clicking between several
>> rivers then selection becomes very confusing. In some cases rivers that are
>> located much farer from mouse click then others are selected
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110211/580ad3fc/attachment.html
More information about the Users
mailing list