Skip to content

Commit cd14e28

Browse files
authored
Pass projection to loaded mapmlfeatures (#345)
1 parent 864b3fa commit cd14e28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mapml/layers/MapLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export var MapMLLayer = L.Layer.extend({
117117
pane: this._container,
118118
opacity: this.options.opacity,
119119
imagePath: M.detectImagePath(this._map.getContainer()),
120+
projection:map.options.projection,
120121
// each owned child layer gets a reference to the root layer
121122
_leafletLayer: this,
122123
onEachFeature: function(properties, geometry) {

0 commit comments

Comments
 (0)