From cc4991d11147589a566be96044799f8a8689e309 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 17 May 2019 11:19:38 -0400 Subject: [PATCH] Don't draw until we've set zoom/lat/long --- modules/ui/init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ui/init.js b/modules/ui/init.js index 4dc8f5c13..1e9752268 100644 --- a/modules/ui/init.js +++ b/modules/ui/init.js @@ -56,6 +56,7 @@ export function uiInit(context) { .call(uiFullScreen(context)); var map = context.map(); + map.redrawEnable(false); // don't draw until we've set zoom/lat/long container .append('svg') @@ -218,6 +219,7 @@ export function uiInit(context) { // Setup map dimensions and move map to initial center/zoom. // This should happen after #content and toolbars exist. ui.onResize(); + map.redrawEnable(true); var hash = behaviorHash(context); hash();