This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Using custom icons in your private mapnik rendered tile server

1

Hello,

I have been trying to find a solution to this for a long time. I have created my own tile server using http://switch2osm.org/serving-tiles/manually-building-a-tile-server/. Everything runs successfully and i am able to see my changes on the map as and when i make them using JOSM.

What i really want to know is can i add custom icons to my tiles for a node with key eg. Speed Limit = 40kmph ? I have seen that it is possible to create new nodes (for eg. Trees and Restaurants) which appear on the map instantly after the generation of new tiles.

After reading some documentation i also figured out that mapnik has a stylesheet in which these images are included. When i try to manipulate this image sources i still cannot see my changes on the map.

Is there someone who has done this before or has additional experience to solve this issue?

What i dont want to to is use OpenLayers or leaflet and add custom markers on my map. I want these images embedded in my tiles.

Thanks in advance for any help that you could provide.

asked 16 Jun '14, 14:07

Osm_Enthu's gravatar image

Osm_Enthu
56337
accept rate: 0%

Any help guys?

(02 Jul '14, 16:32) Osm_Enthu

One Answer:

2

If you're using the openstreetmap-carto style, I'd expect that you'd have the individual PNGs in that directory. In my case, for example, I've got files such as this one: "~/openstreetmap-carto/symbols/scrub.png" (my exported stylesheet is ~/openstreetmap-carto/mapnik.xml).

If you just want to replace symbols in the standard stylesheet I'd imagine that you should just be able to replace the (in this case .png) files; if you want to do something more complicated you might want to use something like TileMill.

answered 02 Jul '14, 16:49

SomeoneElse2's gravatar image

SomeoneElse2
1514
accept rate: 0%

edited 02 Jul '14, 16:49

1
(02 Jul '14, 18:13) stephan75

Source code available on GitHub .