Reputation: 137
I want to host osm tiles and styles by my self on my server. I got a really nice style here
https://github.com/CartoDB/basemap-styles#1-web-raster-basemaps
It's free for use under observation of the license requirements. But i don't know how to make the next step. I allready implemented the map on my site with using leaflet and this code (just the tile implementation part)
L.tileLayer(' url ', {}).addTo(map);
How to go on to replace this hosted version to go on to self hosted one?
Upvotes: 0
Views: 9378
Reputation: 21469
You need to set up your own tile server by following the steps at switch2osm. This is an rather advanced step and requires a sufficient powerful system with fast storage and large memory. At least if you want to server tiles for the whole world. Smaller extracts have lower requirements.
Alternatively switch to vector tiles, e.g. Mapbox GL. It allows you to influence the rendering style without having to set up a large infrastructure for serving the data.
Upvotes: 5