fix part two to #703 - dont try to erase a null geometry
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -246,8 +246,10 @@ OpenLayers.Layer.Vector.prototype =
|
|||||||
var feature = features[i];
|
var feature = features[i];
|
||||||
this.features = OpenLayers.Util.removeItem(this.features, feature);
|
this.features = OpenLayers.Util.removeItem(this.features, feature);
|
||||||
|
|
||||||
this.renderer.eraseGeometry(feature.geometry);
|
if (feature.geometry) {
|
||||||
|
this.renderer.eraseGeometry(feature.geometry);
|
||||||
|
}
|
||||||
|
|
||||||
//in the case that this feature is one of the selected features,
|
//in the case that this feature is one of the selected features,
|
||||||
// remove it from that array as well.
|
// remove it from that array as well.
|
||||||
if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){
|
if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){
|
||||||
|
|||||||
Reference in New Issue
Block a user