Skip to content

Commit 2564f7f

Browse files
AliyanHprushforth
authored andcommitted
fix ordering of legend parsing and setLayerTitle to get legends working
1 parent 7052b37 commit 2564f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapml/layers/MapMLLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,8 @@ export var MapMLLayer = L.Layer.extend({
878878
// set layer._properties._mapExtents and layer._properties._templateVars
879879
if (layer._properties.crs) processExtents();
880880
layer._styles = getAlternateStyles();
881-
setLayerTitle();
882881
parseLicenseAndLegend();
882+
setLayerTitle();
883883
setZoomInOrOutLinks();
884884
// crs is only set if the layer has the same projection as the map
885885
if (layer._properties.crs) processTiles();

0 commit comments

Comments
 (0)