-
|
Firstly, huge thanks to you @bdon for creating this project. I don't know much about maps but found my way here to learn more... So I see that we could host a static file on S3 however could it be possible for us to create static files based of Country/States or Provinces? Like the way we have on OSM and Organic Maps? Also, I was thinking on storing this static files on P2P network (https://github.com/holepunchto), it has a hyperdrive module which could help us distributing static files all over the world and save costs with instant updates however question here how do you manage to keep the data updated? Like is it more of an override for this static files? To be honest I don't know much on how they're even generated... |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 12 replies
-
|
(moved to discussion)
Yes, use
There is nothing special about .pmtiles, they are served as static assets just like video, that assumes the HTTP server, hyperdrive or not, supports HTTP Byte Serving, CORS and Entity Tags. If you want to update it you need to overwrite the entire file in-place, just like video; this also depends on the browser using Entity Tags correctly (pmtiles.js does) and the storage server supporting atomic updates. |
Beta Was this translation helpful? Give feedback.
-
|
I have added style.json in app directory folder, though not able show maps? Got the json from https://maps.protomaps.com/#flavorName=light&lang=en&map=0.58/0/0 |
Beta Was this translation helpful? Give feedback.
-
|
No worries finally i have it working on ios, issue was simulator was changing the directory path plus it needed absolute path within the style.json which I managed to got it working. Thanks though!!! |
Beta Was this translation helpful? Give feedback.
-
|
Sorry but another question as to why we don't see POI names on maps? is it cause of the styling? |
Beta Was this translation helpful? Give feedback.
-
|
@bdon Have another question, at present .pmtiles is just a single file and we would have to hit the server all the time to get the tiles based on x/y/z. However I was thinking of using Hyperdrive (https://github.com/holepunchto/hypercore) to serve this files in P2P fashion so that we don't need to hit the server all the time, I don't know much of maps so question is:-
|
Beta Was this translation helpful? Give feedback.
If you want more data you need to modify the http://github.com/protomaps/basemaps/ java program that generates the tiles, the one we distribute is the defaults.