mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11k stars 2.21k forks source link

How to use v2 in offline or network restricted environments #10200

Open Dzxwind opened 3 years ago

Dzxwind commented 3 years ago

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

asheemmamoowala commented 3 years ago

@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

stevage commented 3 years ago

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.)

thhet commented 3 years ago

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?

asheemmamoowala commented 3 years ago

We're still looking into this and will have an update next month.

screamsyk commented 3 years ago

i have the same question

BeGj commented 3 years ago

@asheemmamoowala Any updates?

neodescis commented 3 years ago

Same question here. My project is not connected to the Internet.

brucknera commented 3 years ago

@asheemmamoowala: do you already know, when we can expect an answer/update to this question?

nadavhalfon commented 3 years ago

Any news? 😓😓😓😓😓

old-syniex commented 3 years ago

@asheemmamoowala is there any update?

old-syniex commented 3 years ago

Did anyone got answer regarding offline use?

douglasg14b commented 3 years ago

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.

stefanrybacki commented 3 years ago

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.

meelkor commented 3 years ago

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...

indus commented 2 years ago

The question is now one year old. Do you have a solution for "offline or network restricted environments" now?

screamsyk commented 2 years ago

您好!邮件已收到,我会尽快查看与回复

douglasg14b commented 2 years ago

@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.

ifzm commented 2 years ago

The problem is over one year. Is there a solution now? this makes us unusually upgraded to the latest version, expect :)

brucknera commented 2 years ago

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.

Rakiah commented 1 year ago

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

screamsyk commented 1 year ago

您好!邮件已收到,我会尽快查看与回复

ben-katan commented 1 year ago

any news on this topic?

screamsyk commented 1 year ago

您好!邮件已收到,我会尽快查看与回复

korywka commented 1 year ago

🔝 This is all news on this issue 🥲