I’m taking my first steps with vector tiles. I have created a simple website and tested the style https://demo.tilekiln.xyz/shortbread_v1/tilejson.json in it.
Code:
URL:
When I open the URL https://astridx.github.io/vectortilestest/indexdemo.html
I see errors
Error: missing required property "version"
$n https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:42
ne https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
_load https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
loadURL https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
maplibre-gl.js:42:9880
Error: missing required property "sources"
$n https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:42
ne https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
_load https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
loadURL https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
maplibre-gl.js:42:9880
Error: missing required property "layers"
$n https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:42
ne https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
_load https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
loadURL https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js:46
What am I doing wrong? What do I have to do to view the tiles with a simple Maplibre setup?