Expose map to the window object for debugging

main
Chandler Swift 2024-02-02 03:25:36 -06:00
parent d96415b1c5
commit b86fadf426
Signed by: chandlerswift
GPG Key ID: A851D929D52FB93F
1 changed files with 2 additions and 0 deletions

View File

@ -150,3 +150,5 @@ map.on('click', function (evt) {
}); });
new ResizeObserver(() => map.updateSize()).observe(document.getElementById("map")); new ResizeObserver(() => map.updateSize()).observe(document.getElementById("map"));
window.map = map;