Skip to content

Commit 354620a

Browse files
committed
Merge pull request tombatossals#407 from voortwis/master
Fixed setting geoJSON on multiple maps in DOM
2 parents f26a771 + e5ab4c9 commit 354620a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/geojson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ angular.module("leaflet-directive").directive('geojson', function ($log, $rootSc
6464
};
6565

6666
leafletGeoJSON = L.geoJson(geojson.data, geojson.options);
67-
leafletData.setGeoJSON(leafletGeoJSON);
67+
leafletData.setGeoJSON(leafletGeoJSON, attrs.id);
6868
leafletGeoJSON.addTo(map);
6969
});
7070
});

0 commit comments

Comments
 (0)