mapbox / mapbox-gl-whaam-style

Roy Lichtenstein inspired map style for Mapbox Studio (GL)
Other
12 stars 6 forks source link

Fonts do not work #1

Closed dersteppenwolf closed 8 years ago

dersteppenwolf commented 8 years ago

The readme doesn't include the instructions for fonts. Is it needed knewave? http://www.dafont.com/knewave.font (It is not available in my mapbox account)

I uploaded that ttf but this error appears: "Codepoints for Knewave Regular not found"

BTW Is there a way to validate the style before publishing?

amyleew commented 8 years ago

@dersteppenwolf - Good catch. Yes, you need Knewave. Try this link: https://github.com/theleagueof/knewave/tree/master/webfonts

Here's a tut on uploading fonts in Studio: https://www.mapbox.com/help/add-custom-fonts/

Make sure to search for the font in Studio after you upload. And try to refresh the browser if you don't find it. Sometimes that helps.

What you see in the Studio editor is a working version of your map before publishing so I typically validate my style in the tool. When saving you are publishing and changes will be reflected wherever the style url is used.

There is also a share url for temporary hosting if you'd like to view just the map and share with others prior to making it live on your end: https://www.mapbox.com/help/getting-started-mapbox-studio-3/#share-url

dersteppenwolf commented 8 years ago

Now it works!. Awesome example.

Other question, just for learn a little more..

If we would like to create a map like this (it was previously created some years ago using tilemill) http://kronista.co/projects/2014/bogotazo/app/index.html

we would need raster textures but it is not allowed ( https://www.mapbox.com/help/studio-troubleshooting-svg/ )

I found this example but looks too tricky... https://gist.github.com/mapmeld/8866414b7fc8940e8540

Are there other options? Which example could I see?

Thanks for your help

amyleew commented 8 years ago

@dersteppenwolf - you can achieve a raster-like texture with vectors. take a look at this .svg pattern created for the vintage map https://github.com/mapbox/mapbox-gl-vintage-style

dersteppenwolf commented 8 years ago

Awesome! Thanks