Mapbox-gl-js: How to use v2 in offline or network restricted environments

Created on 14 Dec 2020  路  8Comments  路  Source: mapbox/mapbox-gl-js

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

environment-specific feature

Most helpful comment

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

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings