Skip to content

Commit 9d5fb7e

Browse files
authored
fix missing attribution control object, which is required for png export (#813)
1 parent 57bdf6e commit 9d5fb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ide.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ class IDE {
527527
maxNativeZoom: 19,
528528
maxZoom: ide.map.options.maxZoom
529529
});
530-
const attribControl = new L.Control.Attribution({position: "bottomright"});
530+
const attribControl = ide.attribControl = new L.Control.Attribution({position: "bottomright"});
531531
attribControl.addAttribution(tilesAttrib);
532532
attribControl.addTo(ide.map);
533533
const pos = new L.LatLng(settings.coords_lat, settings.coords_lon);

0 commit comments

Comments
 (0)