We don't want to re-select an already selected feature
This commit is contained in:
committed by
Bart van den Eijnden
parent
8562582dd2
commit
b103d3b428
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user