What I've discovered some time ago: Merkaartor doesn't colour-fill
forest when it's part of a relation. Here's one example out of many:
way_4599637. It neither fills the inner nor the outer landuse=forest. It
only draws a black outline.

I've done some tests and it's only rendered correctly in the embedded
Classic style. All other styles don't show the forest green.

In my own customised style, based on MapnikPlus, I could correct the
forest rendering only by this change, adapted from Classic.mas: Insert
this <painter> as the very first item:

<painter
 zoomUnder="0.002" zoomUpper="1e+07"
 foregroundColor="#007700ff" foregroundScale="0" foregroundOffset="1"
 fillColor="#22cc2277"
 drawTrafficDirectionMarks="yes">
  <selector expr="[landuse] is forest"/>
</painter>

If it's inserted as the second painter element, it has no effect anymore
and relation forest is not green. The first some painter elements in my
style are unchanged from MapnikPlus. This is the otherwise first painter
element:

<painter
 zoomUnder="0.01" zoomUpper="1e+07"
 backgroundColor="#ff0000fc" backgroundScale="1.5" backgroundOffset="0"
 drawTrafficDirectionMarks="no">
  <selector expr="[note] is FIXME*"/>
</painter>

I cannot see a 'note=FIXME' tag on any of the relation members. But when
I alter the first painter element to something like "[x-note] is
FIXME*", relation forest is rendered correctly - but still with a black
outline! So what's so special about this first painter that it breaks
other rules? And why do relation elements have that black outline at all?

-- 
Yves Goergen "LonelyPixel" <[email protected]>
Visit my web laboratory at http://beta.unclassified.de

_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor

Reply via email to