mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 03:27:36 +01:00
Fix window resize exception - Leaflet expects 'map' at top level...
This commit is contained in:
parent
829e1339a8
commit
4616f6a5be
@ -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…
Reference in New Issue
Block a user