mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Contour labels are drawn in a font the map has (#965)
The contour label layer named no font, so MapLibre asked for its default
("Open Sans Regular,Arial Unicode MS Regular"), which the map does not ship.
The request failed and the labels were drawn with glyphs the browser made up
locally. The layer now names Noto Sans Regular, in the map viewer and in the
standalone viewer.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
4f58d2862f
commit
113e70a402
3 changed files with 43 additions and 1 deletions
|
|
@ -198,6 +198,8 @@ function buildStyle(sources, flavor = "light", hasTerrain = false, scaleUnit = "
|
|||
visibility: contourVis,
|
||||
"symbol-placement": "line",
|
||||
"text-field": ["concat", ["get", "ele"], elevUnit],
|
||||
// A font the map has glyphs for; MapLibre's default is not one of them.
|
||||
"text-font": ["Noto Sans Regular"],
|
||||
"text-size": 10,
|
||||
},
|
||||
paint: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue