mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
register map object in window for extensions
This commit is contained in:
@@ -92,6 +92,7 @@
|
|||||||
});
|
});
|
||||||
newMap.on('load', () => {
|
newMap.on('load', () => {
|
||||||
$map = newMap; // only set the store after the map has loaded
|
$map = newMap; // only set the store after the map has loaded
|
||||||
|
window._map = newMap; // entry point for extensions
|
||||||
scaleControl.setUnit($distanceUnits);
|
scaleControl.setUnit($distanceUnits);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user