diff --git a/code/boot.js b/code/boot.js index 850787fb..82fbf94b 100644 --- a/code/boot.js +++ b/code/boot.js @@ -127,10 +127,8 @@ window.setupMap = function() { /*5*/ new L.Google('TERRAIN',{maxZoom:15}) ]; - - window.map = new L.Map('map', $.extend(getPosition(), - {zoomControl: window.showZoom, minZoom: 1} - )); + // proper initial position is now delayed until all plugins are loaded and the base layer is set + window.map = new L.Map('map', {center: [0,0], zoom: 1, zoomControl: window.showZoom, minZoom: 1}); // add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements // TODO? move the actual IITC DOM into the leaflet control areas, so dummy