[OpenLayers-Users] SelectFeature - prevent double click
csabbey at gmail.com
Mon Nov 14 17:14:39 EST 2011
I have a SelectFeature control that zooms in when a user selects a vector
feature cluster, to frame the member features. When a user double clicks on
one of these clusters, my SelectFeature control is zooming AND the double
click is handled by another control, and we get a second zoom in. I'd like
to prevent the 2nd zoom.
>From other posts, I thought these sounded promising (with "control" being my
control.handlers.feature.stopClick = true;
control.handlers.feature.stopDown = true;
control.handlers.feature.stopUp = true;
... but they didn't stop the double click from causing a second zoom.
My guess is this may have something to do with the first click doing a zoom,
so the 2nd click of a double click isn't in the same position.
Can someone suggest a way to allow a click on a cluster zoom to fit its
members without having a double click zoom a 2nd time?
Thanks for your help,
View this message in context: http://osgeo-org.1803224.n2.nabble.com/SelectFeature-prevent-double-click-tp6994368p6994368.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users