Replies: 1 comment 1 reply
-
If you are still using a style that reference tiles on the Mapbox server, then you need a Mapbox token. Otherwise, can you share your package.json and webpack.config.js? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I'm trying to replace mapbox with maplibre, according to this guide adding 'mapbox-gl': 'maplibre-gl' to webpack.config.js should do the trick. But in my application I still see a message informing me that "A valid API token is required to use Mapbox". Webpack indeed replaces some 'mapbox-gl' references with 'maplibre-gl' but react-map-gl still seems to use mapbox. I tried versions 6.1.14 and 5.3.14. Are there any additional steps I need to do, apart from those in the guide above, to replace mapbox with maplibre? Or what could be causing the problem? Thanks for the answers.
Beta Was this translation helpful? Give feedback.
All reactions