diff --git a/web/js/map.js b/web/js/map.js index f977b137..48324ac3 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -3,6 +3,7 @@ var componentconstructors = {}; var maptypes = {}; +var map = null; // Leaflet assumes top-level 'map'... componentconstructors['testcomponent'] = function(dynmap, configuration) { console.log('initialize'); @@ -126,6 +127,7 @@ DynMap.prototype = { return (1 << zoom); } }); + window.map = map; // Placate Leaflet need for top-level 'map'.... map.zoom_changed = function() { me.maptype.updateTileSize(me.map.zoom);