-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash - TypeError: i.map is not a function #935
Comments
Can you try and reproduce this with a smaller style? The current provided style is a bit long to narrow down the issue... |
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? |
@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. |
I think the following should fix this issue: A better usage of promises instead of callbacks would have greatly improved the readability of the code... The root cause is indeed the fact that font.json does not exists on the server and that the server is returning 404. |
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:
The text was updated successfully, but these errors were encountered: