You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Mapbox gl js with react and nextjs.
After adding these markers to the map, on a zoom event, we are seeing this error:
Unhandled Runtime Error
TypeError: Cannot read property 'transform' of undefined
Call Stack
na._onOcclusionTimer
it is not a breaking error, everything is running smoothly, but we still get that error, and this error is not caught by the map.on('error') handler. (That would be sufficient for now just to have that work).
import { render } from "react-dom";
const markerEl = new mapboxgl.Marker().setLngLat(marker.lng_lat).addTo(map);
Should be an easy fix on our side, but meanwhile, you can work around this by clearing the timer manually when a marker or a map its added to is removed:
Should be an easy fix on our side, but meanwhile, you can work around this by clearing the timer manually when a marker or a map its added to is removed:
We are using Mapbox gl js with react and nextjs.
After adding these markers to the map, on a zoom event, we are seeing this error:
Unhandled Runtime Error
TypeError: Cannot read property 'transform' of undefined
Call Stack
na._onOcclusionTimer
it is not a breaking error, everything is running smoothly, but we still get that error, and this error is not caught by the map.on('error') handler. (That would be sufficient for now just to have that work).
import { render } from "react-dom";
const markerEl = new mapboxgl.Marker().setLngLat(marker.lng_lat).addTo(map);
This was working on version 1, and is no longer working on v2
The text was updated successfully, but these errors were encountered: