Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

MapBoxTileSource tiles not working anymore #1718

@MKergall

Description

@MKergall

"Mapbox deprecated support for Mapbox Studio Classic styles on June 1st, 2020"
(https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/#faqs)

Following this change, the MapBoxTileSource is not working properly anymore, at least for Satellite maps (which is my use case). Setting MAPBOX_MAPID to:

  • "mapbox.mapbox-streets-v8" gives names only, unusable.
  • "mapbox.satellite" gives satellite image without names and roads.

The new MapBox Static Tiles API is documented here: https://docs.mapbox.com/api/maps/static-tiles/
The new url pattern is now: "/styles/v1/{username}/{style_id}/tiles/{tilesize}/{z}/{x}/{y}{@2x}"

For instance, this url works fine for a satellite view with names:
"https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/2/2/1?access_token=THE_ACCESS_TOKEN"

=> MapBoxTileSource needs some adaptations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions