mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

How to use v2 in offline or network restricted environments

Open Dzxwind opened this issue 3 years ago • 21 comments

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 avatar Dec 14 '20 09:12 Dzxwind

@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

asheemmamoowala avatar Dec 14 '20 18:12 asheemmamoowala

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

stevage avatar Dec 14 '20 23:12 stevage

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?

thhet avatar Dec 18 '20 09:12 thhet

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

asheemmamoowala avatar Dec 19 '20 01:12 asheemmamoowala

i have the same question

screamsyk avatar Dec 25 '20 08:12 screamsyk

@asheemmamoowala Any updates?

BeGj avatar Jan 11 '21 08:01 BeGj

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

neodescis avatar Jan 19 '21 19:01 neodescis

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

brucknera avatar Feb 12 '21 07:02 brucknera

Any news? 😓😓😓😓😓

nadavhalfon avatar Apr 07 '21 08:04 nadavhalfon

@asheemmamoowala is there any update?

old-syniex avatar Apr 15 '21 09:04 old-syniex

Did anyone got answer regarding offline use?

old-syniex avatar Jul 22 '21 06:07 old-syniex

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.

douglasg14b avatar Jul 22 '21 17:07 douglasg14b

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.

stefanrybacki avatar Jul 22 '21 18:07 stefanrybacki

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

meelkor avatar Jul 22 '21 20:07 meelkor

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

indus avatar Dec 15 '21 07:12 indus

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

screamsyk avatar Dec 15 '21 07:12 screamsyk

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

douglasg14b avatar Dec 15 '21 19:12 douglasg14b

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

ifzm avatar Dec 29 '21 09:12 ifzm

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.

brucknera avatar Jan 03 '22 08:01 brucknera

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

Rakiah avatar Oct 05 '22 15:10 Rakiah

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

screamsyk avatar Oct 05 '22 15:10 screamsyk

any news on this topic?

ben-katan avatar Feb 02 '23 12:02 ben-katan

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

screamsyk avatar Feb 02 '23 12:02 screamsyk

🔝 This is all news on this issue 🥲

korywka avatar Feb 02 '23 13:02 korywka