-
Notifications
You must be signed in to change notification settings - Fork 101
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
Host fonts in repository #79
Comments
@kylebarron this repo used to use https://github.com/orangemug/font-glyphs and we changed it to use I think that's the correct decision since we are relying on the service for sources anyway. I guess the question is how does it make it easier? With regards to using GitHub will politely ask you to move you hosting off GitHub pages if it gets super popular (https://help.github.com/en/github/working-with-github-pages/about-github-pages#usage-limits), basically they won't host files for free with unlimited bandwidth, they are however very generous. It'll also be slower than GitHub pages because GitHub pages is behind a CDN (fastly I believe) Note that you can also use https://www.jsdelivr.com/?docs=gh which @pathmapper changed for the styles in the editor https://github.com/maputnik/editor/blob/fea0798349580c200dac9827d24f2bc5c9811866/src/config/styles.json this is fast because it uses 'all the CDNs' (see https://www.jsdelivr.com/network/infographic) I do have an interest/dream of a 'github hosted open source style' based off of natural earth tiles (thinking a good base map for news). I think in that situation, in repo glyphs might make more sense because everything would be easier to take offline. |
In my experience, I was new to maps, trying to self-host OpenMapTiles, and was really confused about how to host the non-map assets, like fonts and sprites. But maybe you're right and this is more suited to an explanatory blog post instead of changing the default glyphs source. I didn't know using Natural earth tiles are helpful, but they only exist at zooms up to ~7, right? Also, sorry if this is the wrong place to mention this but http://orangemug.co.uk/ is down for me. |
Yeah I definitely feel the pain. Also map styles aren't very 'forkable'. I think it comes from mapbox-gl-js being quite a 'production ready' format, both glyphs and sprites are bundled formats which make the difficult to deal with in general. I have made some progress with making plugins for mapbox-gl-js that make styles more 'development by default', I'll share some private repos if you're interested? With regards to switching back to using the repo instead of the maptiler api, your point is totally valid I think I'd be confused how to self-host. Either way I think a blog post would be awesome! Thoughts @pathmapper ?
I can't actually remember what zoom level but you're right it's quite low. But probably good for lots of datavis work. Sorry that was slightly off topic 😀
Thanks for letting me know, Maputnik takes up most/all my free time coding at the moment, http://orangemug.co.uk/ was a casualty. I hope it'll come back as a mapping blog in future when I find some more free time. |
Somewhat related, what do you think about having sprites being auto-generated from master using Travis CI? Right now, if anything in
Sure. Though I use
Could be good for low-zoom datavis. For datavis at higher zooms, I still think OpenMapTiles is helpful, especially since for an open source project you can host their 2017 planet extract for free, for example. |
Both are having pros and cons, e.g. the maptiler api offers currently a lot more fonts for map designers compared to https://github.com/orangemug/font-glyphs.
👍 could be also added to https://github.com/maputnik/osm-liberty#usage |
I see that as a general plus, but since As of release 2.0, Metropolis and PT Sans are also included. It's not a big deal for me either way, though I will try to write up a blog post in the near future about self-hosting. |
There is now a GitHub Actions workflow for building and deploying the sprites -> #116 |
We are using https://github.com/orangemug/font-glyphs again -> closed by @zstadler in #125 |
I'm curious how you'd feel about hosting fonts in this repository. It might make it slightly easier for people to use the style.
Currently,
glpyhs
points towhich means someone can't use the style without adding a maptiler api key, or self hosting their own fonts.
As an example, in this repository I just store several fontstacks from openmaptiles/fonts releases in the git repository unzipped. That means I can just put
glpyhs
asand serve them directly from Github.
So similarly, you could add the Roboto fontstacks to this repository (optionally on a non-master branch), and then host them directly from this repo.
The text was updated successfully, but these errors were encountered: