derekhe / msfs2020-google-map

Replace MSFS2020's bing map to google map
MIT License
278 stars 37 forks source link

Add mapbox tiles api support #170

Open 1a57danc3 opened 2 years ago

1a57danc3 commented 2 years ago

User need edit mapbox api token in server.py.

1a57danc3 commented 2 years ago
  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.