Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with default MapBox id #302

Closed
Toutouwai opened this issue Oct 26, 2018 · 0 comments
Closed

Issue with default MapBox id #302

Toutouwai opened this issue Oct 26, 2018 · 0 comments

Comments

@Toutouwai
Copy link

The MapBox provider code is:

//...
MapBox: {
    url: 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}{r}.png?access_token={accessToken}',
    options: {
        attribution:
            'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; ' +
            'Map data {attribution.OpenStreetMap}',
        subdomains: 'abcd',
        id: 'streets',
        accessToken: '<insert your access token here>',
    }
},
//...

This causes 404s on the map tiles when the default id is used.

Either the default id should be mapbox.streets, or if ids are supposed be supplied without the mapbox. prefix then the url should be https://api.tiles.mapbox.com/v4/mapbox.{id}/{z}/{x}/{y}{r}.png?access_token={accessToken}

brunob added a commit that referenced this issue Oct 26, 2018
@jieter jieter closed this as completed in 76984ae Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant