Search code examples
javascriptopenlayersvector-tiles

No city names displayed on openlayers vectortiles


enter image description hereI followed the example on https://openmaptiles.org/docs/website/openlayers/ and I don't know why e.g. why city names are not expanded. Rather than that the placeholders are still displayed. I also got an own api key for openmaptiles.org but still this doesn't change.

Has anyone an idea on what could be wrong?

I set up a fiddle here: https://jsfiddle.net/f55e5umx/ and using the style at

https://openmaptiles.github.io/klokantech-basic-gl-style/style-cdn.json

Solution

  • Perhaps {name:en} is not supported when converting a style.json into openlayers styles. Maybe try using BoundlessGeo's olms instead of the openmaptiles version?

    It certainly looks like the hosted example uses simply {name} in the style.json.