Working offline with maplibre-gl and mbtiles #1580
Unanswered
muazshahid
asked this question in
Q&A
Replies: 2 comments 6 replies
-
addProtocol is the way to active it. |
Beta Was this translation helpful? Give feedback.
3 replies
-
PMTiles is also good for offline usage I think. @bdon do you have an example with MapLibre GL JS and PMTiles on the local file system? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to to live location tracking using like in one of the example here :
https://maplibre.org/maplibre-gl-js-docs/example/live-update-feature/
I am looking to draw a line on the map using coordinates received from a GPS sensor and I want to be able to draw the line as the location updates in real time in order to keep track, all this will happen on localhost on my computer using an html page.
Is it possible to use this library offline, as in not having to fetch the requirements using api calls? Is it possible that I take this completely offline (I am to use it in areas without internet connectivity) and use the "mbtiles" files for the location I am working with and use that to update the location from the sensor and plot accordingly?
I have tried searching for such examples but I failed to find any. If there's any direction someone could point me to regarding this, it will be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions