-
Hi everybody. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
You need tiles, fonts and glyphs locally, did you add those? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for pointing in right direction. |
Beta Was this translation helpful? Give feedback.
-
The tiles themselves and the sprite. |
Beta Was this translation helpful? Give feedback.
-
The tiles are already set,in tiles.json: |
Beta Was this translation helpful? Give feedback.
-
In the style.json file, it should point to an image with all the icons you need for the map, assuming you have icons. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You need to make sure the header of the tiles are correct, the same as you would receive from a backend server. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay,yesterday i was overwhelmed. Here is the zipped version of the map,if it helps: |
Beta Was this translation helpful? Give feedback.
-
I recommend using a tile server like tileserver-gl or martin instead of writing your own. |
Beta Was this translation helpful? Give feedback.
-
I've resolved my problem this way: There are several places trying to get data from internet,that must be replaced with local files:
And this is the way i solved my problem,in case it serves to someone. |
Beta Was this translation helpful? Give feedback.
I've resolved my problem this way:
There are several places trying to get data from internet,that must be replaced with local files:
style: 'https://demotiles.maplibre.org/style.json'
"glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"
and"url": "https://demotiles.maplibre.org/tiles/tiles.json"
"tiles": [ "https://demotiles.maplibre.org/tiles/{z}/{x}/{y}.pbf" ]
This last part it's what I had not taken into account.Once replaced everything goes fine.And this is the way i solved my problem,in c…