diff --git a/src/view-map.js b/src/view-map.js index cf1d5ae8..93f9d039 100644 --- a/src/view-map.js +++ b/src/view-map.js @@ -287,7 +287,7 @@ my.Map = Backbone.View.extend({ if (!(docs instanceof Array)) docs = [docs]; - _.each(doc,function(doc){ + _.each(docs,function(doc){ for (key in self.features._layers){ if (self.features._layers[key].cid == doc.cid){ self.features.removeLayer(self.features._layers[key]);