-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React map gl only displays markers #1368
Comments
Hi @NBNARADHYA, how are you dealing with mapbox access token? It looks like you might be missing your configuration in your netlify site |
Hi @VictorVelarde ! I have been using the same default public access token both on local development and |
Up ! Same problem when building. |
If you don't get a visual warning from Mapbox, then the token is probably fine. You might be having the same issue as #1300. |
Thanks @VictorVelarde ! I get an error which goes like this: |
Great!, please confirm that it fixes your issue, so this one can be closed |
For those out there in a similar spot, I was able to hack around things for the time being by adapting the suggestions in mapbox/mapbox-gl-js#10173: Install
In your map component:
I hope the Mapbox team can provide a long term solution soon. Originally posted by @zanemountcastle in #1266 (comment) |
The above solution fixes this issue for now ! |
Context
I used
react-map-gl
to display a map, and show markers on it.In local development it works perfectly fine
The issue
But when the site was deployed on
netlify
, it doesn't seem to work. It doesn't display the map (only the background and makers are displayed). This is how it looks on production site hosted onnetlify
.Versions
The text was updated successfully, but these errors were encountered: