Open Gonza462 opened 4 years ago
Does this happen with version above 0.50.0?
Does this happen with version above 0.50.0?
I have updated mapbox to the latest version and it seemed to fix the issue of the markers disappearing at different zoom levels. However, the markers sometimes don't show up when you visit the website for the first time and I don't know why. I have updated the code that I have currently.
mapbox-gl-js version: “mapbox-gl”:"^1.12.0", browser: I have experienced this on mobile safari and google chrome and on desktop google chrome and IE.
Steps to Trigger Behavior
Link to Demonstration
https://jsbin.com/
Expected Behavior
When you visit the web app the location markers should ALWAYS show on load.
Actual Behavior
Usually on first time visiting the web app the markers will not show. Once you reload they usually show MOST of the time.
Things I’ve tried: I tried to set layout properties “icon-ignore-placement”: true “icon-allow-overlap”: true
But that doesn’t work.
As for why the markers don’t show on the first LOAD I have no idea why. This is my code for the markers
componentDidMount() { mapboxgl.accessToken = accessToken;