OSM Tools
dutch german en francais spanish spanish polish russian

Tricks & Tips with mkgmap styles 5

More Tricks

How to show islands in a lake using mkgmap?

multipolygon: no lakes & islands multipolygon: with lakes & islands
multipolygon: no lakes & islands multipolygon: with lakes & islands

a) Click on your Lake then create a new multipolygon relation - ways of doing this depends on your editor.

b) Make sure you have selected your lake , now add the new relation. Check the number id.

c) Make sure the 'role' is 'outer' : add outer to the role

d) Click on an island then add the relation with THE SAME NUMBER ID and call the 'role' inner.

e) Do this for all the islands

That's it ? NO!

mkgmap will not render multipolygons unless

1) the natural=water tag has been REMOVED from the original polygon

2) natural=water tag is added to the relation

In fact, transfer all tags from the original polygon and add them to the relation!

Please note , Mapnik will render multipolygons without having to do steps 1 & 2!

When you parse your osm you will notice blank islands

You can change this by clicking on each island and adding , say natural=wood

 

How to create large town names

 

Problems with multiple tags

 

Showing contours in different intervals,50,100,150,200 etc

 

How to remove (often badly plotted) large polygons

 

How to create initials from a name and use it as a ref