3 ms·
Leaflet.js is just the client piece. You still need a tile server, which is one of the commercial services being offered here. While you _can_ use the OSM's ti
by cldellow 6y ago
Leaflet.js is just the client piece. You still need a tile server, which is one of the commercial services being offered here.
While you _can_ use the OSM's tile servers, they offer no guarantees: https://operations.osmfoundation.org/policies/tiles/ https://operations.osmfoundation.org/policies/tiles/
They also have ongoing operational problems/expenses from people using their tile servers, and it's possible that they will one day break you in order to keep their own site functioning.
- jack_riminton 6y agoAh understood I've always used MapBox free tier for tiles (which I believe may be changing) so this could be a good alternative for that
- dawnerd 6y agoI've been looking at potentially selfhosting a tile server and it's way more complicated than I thought. Even getting the OSM tileset in is a pain - not even just from the filesize. Should add that I wanted to self host mostly for privacy. This project I'm working on I'm trying really hard to have no external requests and everything privacy respecting. Unfortunately I really need maps on it and none of the providers I've seen are either in budget or have a compatible privacy policy.
- nevi-me 6y agoI've been hosting my own tileserver for a while, but because I couldn't build the latest times from OSM, I had to use outdated tiles. I can't remember what I used, but I built a Docker image in the end.
- jmnicolas 6y agoI experimented with my own OSM tile server a few months ago. I used this tutorial https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-ubuntu-20-04-osm https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-u... If like me you have basic Linux skills it's not that hard, just time consuming. However the resources needed are quite consequent: I managed to load all Europe tiles on a Core i7 3770k / 32 GB ram / 1 TB SSD workstation. I think it took 2+ days to load data into Postgres and many more days to render tiles zoom 0 to 18 for France. I estimate that to run a world tile server you would need as many core as possible, at least 64 GB of ram and 2 TB of disk (SSD is mandatory here). I didn't experiment with updating the DB with new OSM data but it looks quite a chore.
- dawnerd 6y agoYeah that's the issue, it requires a ton of resources. You can use pre baked tilesets but I could only find pretty expensive options for that.