Ticket #3497 (new feature)

Opened 21 months ago

Last modified 15 months ago

Once a feature is unselected no features can ever be selected again

Reported by: hlbrewing Owned by: tschaub
Priority: major Milestone: 2.13 Release
Component: Control.SelectFeature Version: 2.10
Keywords: Cc:
State:

Description

If you select a feature, then click on an empty map area, you can't ever select a feature again.

I found a fix by changing OpenLayers.Handler.Feature.mouseup from mouseup: function (evt) {

this.up = evt.xy; return this.handle(evt);

},

to mouseup: function (evt) {

this.up = evt.xy; var result = this.handle(evt) ? !this.stopUp : true; this.down = this.up = null; return result;

},

Change History

Changed 15 months ago by erilem

I cannot reproduce this problem on  http://www.openlayers.org/dev/examples/select-feature.html. Could you please be more specific on how to reproduce? Thanks.

Note: See TracTickets for help on using tickets.