Fix window resize exception - Leaflet expects 'map' at top level...
This commit is contained in:
parent
d2d60b47cc
commit
e978745f79
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue