Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Add mapbox tiles api support #170

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

1a57danc3
Copy link

User need edit mapbox api token in server.py.

@1a57danc3
Copy link
Author

1a57danc3 commented Dec 27, 2021

  1. Apply mapbox account first.
  2. Go to https://account.mapbox.com/access-tokens/ , find and copy your token.
  3. Edit src/server.py, the line 67, paste your token to the end.

For example:

return f"https://{server}/v4/mapbox.satellite/{level_of_detail}/{tile_x}/{tile_y}.jpg?sku=101AdikDMLlCK&access_token=pk.ey1234567890oiY2syc3Zod21234567890NHFkZSJ9.eChSWdg1CZBnQCwQi3xz0Q"

  1. Save the src/server.py.
  2. Run as administrator with run.bat in root folder, and server list choose api.mapbox.com.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant