Mapbox streets-v12 style trys to load invalid fonts
vespertilian opened this issue · 1 comments
vespertilian commented
As you can see in this image.
Using the map-box vector layer demo. When you set the style to streets-v12 it tries to download fonts for an invalid domain.
https://openlayers.org/en/latest/examples/mapbox-vector-layer.html
ahocevar commented
This is because streets-v12 uses the font "Din Pro", which is not available on Fontsource. See https://github.com/openlayers/ol-mapbox-style#font-handling for how ol-mapbox-style handles fonts, and how you can modify the style document to point it to fonts you provide yourself.
You can also just add the missing web font using web fonts in the css of the document that contains the map.