mapbox-gl-js
mapbox-gl-js copied to clipboard
How to use v2 in offline or network restricted environments
mapbox-gl-js version: 2.x
Question
Hello!
Mapbox-gl is very nice visualization GIS library.
But, some custom (eg. governement) don't want their network environment is exposed to the Internet. So , as a developer , we must use offline ( local ) service like WMS or WMTS.
In 1.x, we can customize "style" property to realize it , but in 2.x , we can't do that.
Due to this , could you plz revert the feature to 1.x about accessToken ?
Thanks!
Looking forward to your reply !
Links to related documentation
@Dzxwind Thanks for raising this question. We are working to identify a solution and recommendation for this and related use cases.
We've had a number of folks ask the same, so I'm tagging them and their comments here to centralize the discussion
https://github.com/mapbox/mapbox-gl-js/issues/10162#issuecomment-741513857, https://github.com/mapbox/mapbox-gl-js/issues/10162#issuecomment-741781368, https://github.com/mapbox/mapbox-gl-js/issues/10162#issuecomment-741806767, https://github.com/mapbox/mapbox-gl-js/issues/10162#issuecomment-741681326, https://github.com/mapbox/mapbox-gl-js/issues/10162#issuecomment-742569522
@stevage @bravecow @geoyogesh @jacmendt @brucknera
In 1.x, we can customize "style" property to realize it , but in 2.x , we can't do that.
I didn't quite understand this. What is it about v2 that prevents custom styles with custom sources?
(I understand that telemetry, and hence network access, is required for v2.)
Hello,
similar problem here. We use mapbox in an environment for industrial production without any internet connection. We have our own tileserver and it is simply not possible to connect to any internet service from the production network.
Is there any way to use mapbox2 in such a scenario?
We're still looking into this and will have an update next month.
i have the same question
@asheemmamoowala Any updates?
Same question here. My project is not connected to the Internet.
@asheemmamoowala: do you already know, when we can expect an answer/update to this question?
Any news? 😓😓😓😓😓
@asheemmamoowala is there any update?
Did anyone got answer regarding offline use?
Given Mapbox's tone-deaf behavior regarding their new per-load pricing, and a lack of support, tools, or examples to better support that on applications that regularly load & unload the map. I'm going to hazard a guess that this may end up going the same route.
It's their cash cow and they can squeeze it if they want to.
I think there will be a more or less official externally maintained pre license change fork of mapboxgl, as the new pricing model is outright ludicrous.
It's their cash cow and they can squeeze it if they want to.
If they offered some special license for offline enterprise environments, they could squeeze even more cash while solving this issue...
The question is now one year old. Do you have a solution for "offline or network restricted environments" now?
您好!邮件已收到,我会尽快查看与回复
@indus Given how the previously related thread was closed & locked to better ignore community feedback & problems with the change, without addressing any of them, I'm not making bets on this being something Mapbox will care about.
The problem is over one year. Is there a solution now? this makes us unusually upgraded to the latest version, expect :)
i have contacted the mapbox support and the answered that "there is no offline support" (and that we should have a look at the mobile SDK, so i am unsure if they understood the question correctly). for us this means we will have to look at alternative library options.
but why is mapbox remaining completely silent on this topic, atleast they should give an official answer @asheemmamoowala you stated you will give an answer in a month almost 2 years ago
您好!邮件已收到,我会尽快查看与回复
any news on this topic?
您好!邮件已收到,我会尽快查看与回复
🔝 This is all news on this issue 🥲