Skip to content
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

image not found in demo #22

Open
BigBoulard opened this issue Apr 8, 2024 · 1 comment
Open

image not found in demo #22

BigBoulard opened this issue Apr 8, 2024 · 1 comment

Comments

@BigBoulard
Copy link

BigBoulard commented Apr 8, 2024

Hi,

I see warnings in the console when loading https://demotiles.maplibre.org/tiles-omt. The map is great, how could it be fixed?

util.ts:247 Image "yoga_11" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.
@matths
Copy link

matths commented Feb 10, 2025

As the error message states, the maplibregl.Map is missing an image that is referenced by one of the layers of the style.json, see https://demotiles.maplibre.org/styles/osm-bright-gl-style/style.json, probably one of the POI (point of interest) layers.

{
"id": "poi-level-3",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"minzoom": 16
}

You could either decide to copy the style.json to your webserver and remove those layers, taking into account that POIs are disappearing. Or you can provide the maplibregl.Map the image upfront. But as this is only a Demo map, I would suggest to take another map tiles provider for a production site, eg. https://openfreemap.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants