[OSM-talk] why does mapnik not display my circles?

Frederik Ramm frederik at remote.org
Tue Nov 17 01:20:16 GMT 2009


Hi,

Kenneth Gonsalves wrote:
> all that is done, there is a food column and there are returns as to 'select 
> where food is nveg'

Then maybe you really want to play with what Richard Mann hinted at - 
perhaps your circles are overlapping other stuff and that's why Mapnik 
chooses to omit them (easy to test it - put a node tagged food=nveg 
somewhere in the desert!).

Maybe you even have a problem where the circle conflicts with the 
restaurant/shop icon itself, then it might never get drawn at all.

If that's the problem, there are three things you can do -

1. change the order in which things are drawn (circles first, then rest 
of map?)

2. use "allow_overlap='yes'" in your <BlahSymbolizer> tag. Not all 
Symbolizers have it I believe but PointSymbolizer definitely has it.

3. use the "clear_label_cache='on'" attribute in your <Layer> tag. This 
will clear the collision boxes for text (and possibly icons - try it 
out) and start as if the map was empty (so it also affects later layers).

One of these is bound to work ;-)

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the talk mailing list