vtm icon indicating copy to clipboard operation
vtm copied to clipboard

Outline of area not visible

Open Klaus-Tockloth opened this issue 3 years ago • 3 comments

The following statement renders an outline (framing) for an area in Mapforge (see 'stroke-with' parameter):

<area src="file:/patterns/mischwald-einfach.svg" stroke="#69c274" stroke-width="0.05" symbol-width="32"/>

The same statement in VTM leads to nothing or nearly (?) nothing.

Mapsforge: Mapsforge

VTM: VTM

Klaus-Tockloth avatar Nov 24 '22 15:11 Klaus-Tockloth

Please see https://github.com/mapsforge/vtm/issues/121#issuecomment-238960462 and https://github.com/mapsforge/vtm/issues/121#issuecomment-564531329 and commit https://github.com/mapsforge/vtm/commit/b2a8d3040ad3ad861818467ff17a5f7ffce868b0.

Recommendation: use separate lines (i.e. extra theme rules) for area outlines in OpenGL. Or probably XmlThemeBuilder could make such an addition when parsing an area stroke?

devemux86 avatar Nov 24 '22 15:11 devemux86

The problem can be solved by splitting the rendering instruction:

Not working:

<area fill="#f1eee9" stroke="#bfbcb7" stroke-width="0.05"/>

Working:

<area fill="#f1eee9"/>
<line stroke="#bfbcb7" stroke-width="0.05"/>

We will change this within the map theme.

Klaus-Tockloth avatar Nov 26 '22 18:11 Klaus-Tockloth

Let's keep it open, because:

  • Even though it is recommended to split the area + stroke rendering instructions in the themes
  • Perhaps VTM theme parser could automatically do the split internally, so all themes can work

devemux86 avatar Nov 26 '22 19:11 devemux86