Closed nirgur closed 7 years ago
When interactive=true the map is not resizing upon window resize event. In order to fix it - as a temporary solution, i did the following:
ref={ map => { let resize = () => map.getMap().getViewPort().resize(); map && map.getMap() && window.addEventListener('resize', setTimeout(resize ,200), { once: true }); }}
When interactive=true the map is not resizing upon window resize event. In order to fix it - as a temporary solution, i did the following:
ref={ map => { let resize = () => map.getMap().getViewPort().resize(); map && map.getMap() && window.addEventListener('resize', setTimeout(resize ,200), { once: true }); }}