mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-18 08:52:29 +00:00
register map object in window for extensions
This commit is contained in:
1 parent
14e9d3319d
commit
4b0e49d171
1 file changed
+1
@@ -92,6 +92,7 @@
|
||||
});
|
||||
newMap.on('load', () => {
|
||||
$map = newMap; // only set the store after the map has loaded
|
||||
window._map = newMap; // entry point for extensions
|
||||
scaleControl.setUnit($distanceUnits);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user