Skip to content
Discussion options

You must be logged in to vote

I've resolved my problem this way:

There are several places trying to get data from internet,that must be replaced with local files:

  • In index.html from style: 'https://demotiles.maplibre.org/style.json'
  • In style.json from "glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf" and "url": "https://demotiles.maplibre.org/tiles/tiles.json"
  • In tiles.json from "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.
  • If i disconnect from internet,and refresh the page,errors arise.My solution is restart web browser while disconnected.

And this is the way i solved my problem,in c…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Stanisla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants