diff --git a/src/layer/FeatureGroup.js b/src/layer/FeatureGroup.js index ee81ae8..9014586 100644 --- a/src/layer/FeatureGroup.js +++ b/src/layer/FeatureGroup.js @@ -10,8 +10,9 @@ R.FeatureGroup = L.FeatureGroup.extend({ }, onAdd: function(map) { - L.FeatureGroup.prototype.onAdd.call(this,map); - + L.FeatureGroup.prototype.onAdd.call(this, map); + this._map = map; + this._map._initRaphaelRoot(); this._set = this._map._paper.set(); for(i in this._layers) { @@ -34,4 +35,4 @@ R.FeatureGroup = L.FeatureGroup.extend({ return this; } -}); \ No newline at end of file +});