-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenStreetMap Viewer #25
Comments
https://ipfs.io/ipfs/QmNUFNQXWVzbhePhj6bscW6TPu5azraCpbejbNY9zyfFjo/ A higher-resolution map is ready to go, but blocked on ipfs/kubo#1924 |
Thanks again to @osm2vectortiles @lukasmartinelli for making this possible :) |
Really cool. Do you generate the vector tiles yourself or use osm2vectortiles downloads v1.0 or v2.0? This is also only data for upper zoom levels? As I zoom in in Europe > zoom level 11 I miss data. |
@lukasmartinelli I extracted them from the osm2vectortiles v1.0 download. What changes have been made in v2.0?
That would be cool :)
Currently it only goes up to level 9, but once ipfs/kubo#1924 is fixed I'll add the remaining zoom levels (10-14) |
Currently the viever doesn't work on local gateways as it tires to access global gateway, which is blocked by no-CORS. I reported CORS issue ipfs/infra#166 and created patch to enable those options by default ipfs/kubo#2778. The best way of accessing data on IPFS using XHR is rooted relative link: |
Okay perfect. We are also just finished with v2.0, we will release a changelog. In short: has much better quality, smaller filesize and biggest of all can now be updated in a weekly interval. Really happy to have IPFS host this 😁 Thanks @davidar for your work. |
This sounds very promising! I would like to suggest a few features for preventing tracking and maximizing user privacy:
Thanks @davidar for letting me know about this project! |
@lukasmartinelli Updated to osm2vectortiles v2.0 (z0-z8): https://ipfs.io/ipfs/QmTAEbxXKoBWDzNduLS9WmAoNkcuHgQbc3fm9oGBe3FfR4/?/ipfs/Qmf3KBYSv9H4xADgKqpvwWrXkiMh5BfZohFXCaaFh7u4nb/
@btrask Good idea. I'd have to think about the best way to do this.
It's about 50GB in total, but substantially less for lower levels of detail. Having said that, I don't think it's possible (or at least not recommended) to run an ipfs node on mobile devices yet.
IPFS deduplicates tiles, so update efficiency would depend on how many tiles are changed.
Yeah, the issue of tracking/privacy in the context of ipfs has been brought up before. In this case you could just use ipfs offline, but that would cause remote requests to silently fail rather than issue a visible warning, so probably isn't the best solution. @jbenet Thoughts? |
It is! https://github.com/ligi/IPFSDroid -- it runs a go-ipfs node though, which needs lots more work regarding resource usage. |
@lgierth Does it? The readme must be outdated |
yes! -- ligi got it to work the other day, just in time for the Berlin meetup :) |
@davidar sounds good! Just one comment:
Deduplication helps, but it's still up to the application to make sure that its data dedups effectively. That means making sure that small changes to the map result in localized changes within the database. (You probably already know this, but it doesn't hurt to document.) |
@btrask localised changes to the map should only change a small number of tiles. @lukasmartinelli would probably be able to give a more concrete answer than me though :) |
There are two things that go on. A small number of tiles change very frequently. I can't say percent numbers but it feels like 20% of the tiles change every week and the others don't have any changes at all. There are butterfly effects when changing boundaries. Quote from @ImreSamu osm2vectortiles/osm2vectortiles#251 OSM butterfly effect : https://en.wikipedia.org/wiki/Butterfly_effect for example modifying small part of France - Schweiz border : http://www.openstreetmap.org/changeset/39252252 Has an effect of other part of the French-administered territories ... |
Thanks to de-duplication properties of IFPS it shouldn't really affect us, I might write a tool to calculate de-duplication ratio of two different hashes if there is need for that. |
@lukasmartinelli why does that happen, out of interest? |
@davidar: We demo'd this a few times at the Decentralized Web conf and it wowed people each time! Awesome work. 🎉 |
Because all these lines are in the same superior relation "France". |
@Kubuxu telling the deduplication factor between two hashes is pretty straightforward. The simplest way is to run Alternatively, using |
Just had the time to play properly with this for the first time and my reaction was WOW! :D This looks and feels really good! @lukasmartinelli what about http://osm2vectortiles.org/downloads/ are served by IPFS also, it would really only requires to add an hash to be there on the webpage since we are already hosting it, making the download of those 50GB way faster :) |
Not entirely sure whether I get it. Could IPFS then serve the downloads - instead of S3? So we would need to append a shortened sha-1 of the file to the filename and then IPFS could serve the downloads? |
We can have IPFS serving all the downloads or we can have the hybrid (the first option would reduce storage and bandwidth costs). It would be a |
Here you go :D
If you run an local ipfs node, replace The |
Graduating to its own repo: https://github.com/davidar/ipfs-maps |
Continued from ipfs-inactive/archives#11
Goal: create an OSM viewer with all of the assets (tiles) hosted on IPFS
The text was updated successfully, but these errors were encountered: