maplibre / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in the browser
https://maplibre.org/maplibre-gl-js/docs/
Other
6.67k stars 716 forks source link

Issue with style.json and tiles vector URL #4416

Closed raphael10-collab closed 4 months ago

raphael10-collab commented 4 months ago

As explained and asked in Slack Forum : https://osmus.slack.com/archives/C01G3D28DAB/p1721219062146369?thread_ts=1721213195.422509&cid=C01G3D28DAB

I want to use this TileServer: https://tileserver.linuxbabe.com/ with MapLibre

The style.json should be this: https://tileserver.linuxbabe.com/styles/basic-preview/style.json and, based on https://tileserver.linuxbabe.com/data/v3.json
image ,

the tiles vector URL should be this: https://tileserver.linuxbabe.com/data/v3/{z}/{x}/{y}.pbf

But If I put those two URLs in their fields in the HTML, I do not get any output :

image

This is the complete map.html file :

<!DOCTYPE html>

Vector Tile Map with MapLibre

What am I missing and / or am I doing wrong?

HarelM commented 4 months ago

Can you please share a jsbin/codepen with the relevant code?