The 20250217.pmtiles didn't contain any countries names and borders, and any cities at all #401
-
Hi! Yesterday I downloaded these PMTiles: https://build.protomaps.com/20250217.pmtiles and the world map didn't contain any countries names and borders, and any cities at all Today I downloaded these PMTiles: https://build.protomaps.com/20240902.pmtiles This is the index.html I'm using:
Why ? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 8 replies
-
Probably because the style changed in v4. Go to https://maps.protomaps.com/#flavorName=light&lang=en&map=0.88/0/0 and click "get style json" |
Beta Was this translation helpful? Give feedback.
-
You see here the country names and borders are there and you can choose the display language: |
Beta Was this translation helpful? Give feedback.
-
I added a |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly the versions of compatible npm are 4 and 5 : https://maps.protomaps.com/builds/ My npm version is 10.9.2 :
Does it mean it does not work? I do hope I'm wrong... |
Beta Was this translation helpful? Give feedback.
-
Can you create a jsbin or stackblitz or similar with the problem you are facing? The above code snippet could be a starting point... |
Beta Was this translation helpful? Give feedback.
-
May I keep summing everything up here, instead of duplicating information elsewhere? The issue is the following: I'm using this index.html https://gist.github.com/wipfli/7062a865c89e36fa74b0701289c3c6c8#file-index-html /srv/worldmap/html/index.html :
and these are the versions of npm and node:
OS: Ubuntu 24.04 With this version of pmtiles : 20240902.pmtiles.0 : https://build.protomaps.com/20240902.pmtiles If I download the latest version: 20250224.pmtiles : https://build.protomaps.com/20250224.pmtiles
I removed the previous But, as you can see, I get no countries names, no borders, and no cities at all : @wipfli |
Beta Was this translation helpful? Give feedback.
-
The versions 4,5 refer to the versions of the If you are using the This is not valid code:
The MapLibre style JSON is not a CSS stylesheet, it needs to be loaded in JavaScript. |
Beta Was this translation helpful? Give feedback.
-
This time I copied the whole
and, with this
I get a grey rendering (no maps at all) : If I use this |
Beta Was this translation helpful? Give feedback.
-
Did you look at what console errors appear when you get the grey screen? |
Beta Was this translation helpful? Give feedback.
-
@raphael10-collab please provide a jsbin or stackblitz or similar. It is too difficult to debug on someone else's environment and gists are also not well suited. |
Beta Was this translation helpful? Give feedback.
That is intentional, because the object at
demo-bucket.protomaps.com
is not intended to be hotlinked arbitrarily. You should host your.pmtiles
yourself and configure CORS.