-
Notifications
You must be signed in to change notification settings - Fork 38
sematics for mapbox:// glyphs urls in v8 #309
Comments
This is what I was thinking about today that could possibly be a blocker for implementing user-uploaded fonts @samanpwbb @tmcw @jakepruitt |
I don't think this is necessary. We can hardcode the username directly into the fontstack URL in our styles. So in my styles, you would see: "glyphs" : "https://api.mapbox.com/saman/fonts/{fontstack}/{range}.pbf" or whatever the final API endpoint for fonts is. My username can be hardcoded into the stylesheet. |
In order to add the access token, we're going to keep with the
to access the new API at
Legacy support will still be maintained for any glyphs urls starting with |
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in #1385 - refs mapbox/mapbox-gl-style-spec#309
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in #1385 - refs mapbox/mapbox-gl-style-spec#309
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in #1918 - refs mapbox/mapbox-gl-style-spec#309
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in #1918 - refs mapbox/mapbox-gl-style-spec#309
The format Style: Arguably this is a design mistake which a format like I'm not sure whether the version specifier should be included or not. If it is included, then we would likely not be able to use a new API version in GL without also making a style spec version bump. But that may not be possible in practice anyway. |
@willwhite I know that you had an argument against specifying the version URL in the style, possibly for migration reasons. I agree with @jfirebaugh that this should be specified in the style spec in some way to prevent more breaking changes from occurring due to the ambiguity of the |
We could switch to |
In that case, we are fine to keep |
I'm leaning towards leaving the version out of all URLs. Makes it easier to make the switch for sources in the future. |
I like the sound of that plan, allows for more flexibility and less migrations of style documents. Let me know if I can help with anything with styles. I think my PR's on gl-js and gl-native can handle the version removal on the client side, we'll just need to push the change to our style documents. |
Is this a good summary of the changes that need to happen? @jfirebaugh @jakepruitt @samanpwbb
|
@lucaswoj Let's just do font URLs for now. There are a few things in play with source and style URLs that make me hesitate to change them just yet. For fonts, it's:
Where |
The migrator should rewrite both |
@jfirebaugh Is this a good subtask list?
|
Replace this with "gl-js and gl-native need to rewrite Otherwise, 👍. |
Got it! Thanks for the clarification. |
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in mapbox#1918 - refs mapbox/mapbox-gl-style-spec#309
Specify owner in URL rather than trying to guess this based on an access token or the owner of a project using the style. Would allow explicitly using shared, public
mapbox
fonts in addition to private user fonts.The text was updated successfully, but these errors were encountered: