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

Need to extend the MapboxHTTPAPI class to support specifying custom map style URLs. #30

Open
avi-c opened this issue Aug 23, 2018 · 2 comments

Comments

@avi-c
Copy link
Contributor

avi-c commented Aug 23, 2018

The current API is using URL schemes that are specific to a few default styles.

@rockarts
Copy link

This works: mapView.styleURL = URL(string: "mapbox://styles/username/key")

@jim-martin
Copy link

This is possible, but styles copied from https://www.mapbox.com/studio/ aren't in the right format.

Style URLs copied from studio look like this mapbox://styles/jimmartin/cjmidt2lq44ei2rlkvpt1hnhz, but the static API uses {username}/{StyleID}, so removing the mapbox://styles/ section should give a custom style.

We should make it possible to copy/paste from studio, but in the meantime, use:
textureStyle: "jimmartin/cjmidt2lq44ei2rlkvpt1hnhz"
instead of
textureStyle: mapbox://styles/jimmartin/cjmidt2lq44ei2rlkvpt1hnhz

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

3 participants