mapbox / mapbox/mapbox-gl-js

How to use v2 in offline or network restricted environments

Open
#10,200 24 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

environment-specific :desktop_computer: feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the v2 offline or network-restricted use case and the issue's references to custom styles and accessToken behavior in 1.x versus 2.x. Check the existing help documentation and determine whether the expected outcome is documented guidance or a product change; done means the supported offline behavior and limitations are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.