-
-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
When opening a Notebook with GeoJSON renderer, the map widget sometimes is not centered but shows the whole world at a zoom layer of 0:
Only when the window or notebook panel gets resized (triggering the onResize message handler), the map correctly zooms in on the rendered features.
Debugging with console.log()s in the code revealed that this._map.getZoom() still is 0 even after calling fitBounds() at the end of renderModel.
I guess it has something to do with the map initialization code happening inside the Promise, when maybe the DOM isn't ready yet?
Metadata
Metadata
Assignees
Labels
No labels
