-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
How to distribute Styles? #10
Comments
I have also been thinking about offine usage of styles. Basically what I would like is for a styles to define all the assets they require to be functional offline. Basically so they can be downloaded by
How about adding a manifest with information about where the different assets are available for download? |
Don't have a solution ready... Happy to accept proposals - no opinions on my side yet. With Mapbox Studio Classic there was the I am not sure a manifest is necessary. The GL style already has all the information - or you can add metadata there as well. A manifest on the other way would be a bit more generic if later we want to export a OL3 style function (then loading the plugin from #7 is only necessary in the editor). As long as you would ship the generated glyph PBFs and the sprites it is not so difficult. |
I guess only if you can recursively download the assets, which you can't with the following for example
This will mean you end up with lots of styles with slightly different versions of typefaces over time I'll work on a spec of my ideas around the manifest tomorrow you can see what you think |
Related repo: https://github.com/klokantech/gl-style-package-spec |
@orangemug generates the font artefacts via Travis and stores it in GitHub pages from the repo https://github.com/orangemug/font-glyphs which is a cool idea. |
@lukasmartinelli there is also a v2 in the works that supports any font from google fonts (I'll make it public next week) Edit: Now public orangemug/font-glyphs#1 (comment) |
From the Maputnik side of view still all I care is a Fonts and glyphs must be managed externally (yes that is not ideal but these features can only be provided by a hosted platform or a server appication). |
An important part of Maputnik will be to share styles with each other. The JSON is perhaps enough - perhaps not and we need a ZIP file for having local fonts and glyphs.
We just need to think about how people can share their styles.
The text was updated successfully, but these errors were encountered: