We don't want to re-select an already selected feature

This commit is contained in:
ahocevar
2013-05-23 14:46:45 -05:00
committed by Bart van den Eijnden
parent 8562582dd2
commit b103d3b428

View File

@@ -363,7 +363,7 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {
* feature - {<OpenLayers.Feature.Vector>} the selected feature.
*/
selectFeature: function(feature) {
if ((this.modified && this.feature === feature) ||
if (this.feature === feature ||
(this.geometryTypes && OpenLayers.Util.indexOf(this.geometryTypes,
feature.geometry.CLASS_NAME) == -1)) {
return;