Crash - TypeError: i.map is not a function
pathmapper opened this issue · 8 comments
Maputnik version: current https://maplibre.org/maputnik/
Browser: Chrome/Firefox
OS: Linux
Description of the bug:
Maputnik crashes when selecting a layer (maybe related to not available fonts).
Steps to reproduce the behavior:
- Load style gris.json (from qgis/QGIS#58364)
- Click on the following layer
Can you try and reproduce this with a smaller style? The current provided style is a bit long to narrow down the issue...
smaller style?
sure -> gris_one_layer.json
shorter -> gris_one_layer_shorter.json
Request for https://data.geopf.fr/annexes/ressources/vectorTiles/fonts.json returns a 404 / html page.
@pathmapper could you open an issue here: https://github.com/Geoplateforme/geoplateforme.github.io ?
Can you try and refresh the page?
I was able to reproduce it, but I think I refreshed the page and I can no longer reproduce it...?
I've looked at the code, and it doesn't look like this should happen as the code is doing fonts?.map
which should not run map
on an undefined object...
@HarelM thanks for looking into this. With Chrome / Chromium there's still the initial crash and no crash anymore after the refresh, but with Firerfox it keeps crashing all the time after a refresh.