Hi, I just created my own tile server using the script in http://opentileserver.org/ Installation worked and now i am able to serve the map of a country. I would like to offer a clean map focussing on cultural heritage, so i would like to filter some information that shows in the tiles, like restaurants, bars, shops, etc... Is it possible? Thanks! asked 22 Feb '17, 17:45 liborio |
It is, but the base style Carto-CSS is very complex. You could change what get's rendered in two ways:
However, probably the easiest way is to do this with a LUA script. An example is that of SomeoneElse. This is quite involved but has a good number of useful examples. Osmfilter may also be of some use if your requirements are fairly simple. The advantage of using a pre-processing step is that then there is no need to try & keep synchronising with changes to the main CartoCSS repository. answered 23 Feb '17, 12:26 SK53 ♦ Thanks SK53, I have been reading this morning about it and checking the files in openstreetmap-carto. Whas checking the database SELECTs included in "project.mml" (was thinking to make more restrictive the SELECT that use INCLUDE from amenities and shops). Alsho checked the "amenity-points.mss" and the filter based in "zoom". Had the doubt if could be possible to change some filters for zoom>20 (so they will never validate) or even just remove the style (dont know if that would work). If i change de SELECTs and run again the "osm2pgsql" would it replace my current tiles? Or would be better a clean install? Thanks!
(23 Feb '17, 12:39)
liborio
Both should work & changing either mml or mss means you use the same DB schema. I would recommend forking he project on github and maintain your changes in your forked repository.
(23 Feb '17, 17:19)
SK53 ♦
|