maputnik icon indicating copy to clipboard operation
maputnik copied to clipboard

Regression: Missing autocomplete/list of available fonts

Open pathmapper opened this issue 1 year ago • 8 comments

Maputnik version: current https://maplibre.org/maputnik/ Browser: Chrome / Firefox OS: Windows

Description of the bug: There's no autocomplete/list of available fonts anymore.

based on eg.

  • fonts.json -> https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/fonts.json
  • glyphs.json ->https://orangemug.github.io/font-glyphs/glyphs.json

Steps to reproduce the behavior:

  1. Open OSM Liberty with https://maputnik.github.io/editor (v1.7.0) and https://maplibre.org/maputnik/
  2. Edit the Font field of the layer state

Screenshots: grafik

pathmapper avatar Sep 30 '24 04:09 pathmapper

Any chance you could take a stab at this and see what's causing this issue and open a PR to fix it?

HarelM avatar Sep 30 '24 07:09 HarelM

@pathmapper what is your glyphs part of your map-style?

CommanderStorm avatar Dec 15 '24 21:12 CommanderStorm

Note that Martin will publish all available fonts as part of the /catalog API. We should release a new version shortly with this capability.

nyurik avatar Dec 15 '24 21:12 nyurik

@CommanderStorm -> https://github.com/maputnik/osm-liberty/blob/c6b3d0a9d649c9a158d8f3983ebb98e955797917/style.json#L24

pathmapper avatar Dec 16 '24 15:12 pathmapper

Image

The style provided works and is accessing this file correctly. 🤷🏻 Am I doing something wrong/different?

CommanderStorm avatar Dec 16 '24 15:12 CommanderStorm

For me it currently works in Chrome, not in Firefox.

pathmapper avatar Dec 16 '24 18:12 pathmapper

Image

Which firefox version? is there something in the console / ...

CommanderStorm avatar Dec 17 '24 11:12 CommanderStorm

It seems it doesn't depend on the browser, but it's dependent on the style which is loaded previously.

I can reproduce the issue with Firefox and Chrome by first opening the style "Americana" and then "OSM Liberty":

Image

pathmapper avatar Dec 17 '24 12:12 pathmapper