Ronnie R. Winter
Results
2
comments of
Ronnie R. Winter
This is how I made it work, by using a ResizeObserver: ``` const ro = new ResizeObserver(() => { if (map) { map.resize(); } }); // Observe the map div...
@KalvinWei ``` import * as mapboxgl from 'mapbox-gl'; const map = new mapboxgl.Map({ container: this.htmlMapId, style: this.style, zoom: DEFAULT_ZOOM, center: INITIAL_COORDINATES, maxZoom: ZOOMED_IN_LEVEL, scrollZoom: { ctrl: true } }); ```...