-
I want to use maplibre-gl-js to display a detailed admin map in an environment where the network bandwidth is very low. I have started with a geojson polygon of detailed admin maps and have converted to pmtiles with the intention of hosting it in cloudflare. The problem is I can't seem to get it to display. I used this example and replaced the provided pmtiles with mine It looks like one cannot simply create tiles out of polygongs and use it as a source but I don't know what else is missing from my tiles. What is the minimum set of things I need to project my polygons on an empty world map? Thanks for all the help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Can you share your MapLibre JSON style or your created pmtiles? it's impossible to debug what is going on without those. |
Beta Was this translation helpful? Give feedback.
-
Here's my code, it shows me the borders when I add them as geojson but when I convert them to tiles (tippecanue + pmtiles) nothing shows
|
Beta Was this translation helpful? Give feedback.
-
I found the problem. I needed to provide a
|
Beta Was this translation helpful? Give feedback.
I found the problem. I needed to provide a
source-layer
property in my layer.