Don't render background() when adding map to initial #map div

This was triggering an unnecessary render at zoom 2
right before the map was properly centerzoomed
This commit is contained in:
Bryan Housel
2019-03-06 21:51:02 -05:00
parent 0a1e497836
commit ebddfc896a

View File

@@ -191,9 +191,6 @@ export function rendererMap(context) {
}
});
supersurface
.call(context.background());
context.on('enter.map', function() {
if (map.editable() && !_isTransformed) {
// redraw immediately any objects affected by a change in selectedIDs.