draw lines aroung geometries with altitude only in svg engine

This commit is contained in:
Laura Klünder 2017-11-08 18:03:40 +01:00
parent 7d0eb3975d
commit 7790c16bc0
2 changed files with 4 additions and 2 deletions

View file

@ -206,6 +206,9 @@ class SVGEngine(RenderEngine):
else:
attribs = ' fill="none"'
if altitude is not None and stroke is None:
stroke = StrokeAttribs('rgba(0, 0, 0, 0.15)', 0.05, min_px=0.2)
if stroke:
width = stroke.width*self.scale
if stroke.min_px:

View file

@ -89,8 +89,7 @@ class MapRenderer:
# shadows are directly calculated and added by the engine
for altitudearea in geoms.altitudeareas:
engine.add_geometry(bbox.intersection(altitudearea.geometry.difference(crop_areas)),
altitude=altitudearea.altitude, fill=FillAttribs('#eeeeee'),
stroke=StrokeAttribs('rgba(0, 0, 0, 0.15)', 0.05, min_px=0.2))
altitude=altitudearea.altitude, fill=FillAttribs('#eeeeee'))
for color, areas in altitudearea.colors.items():
# only select ground colors if their access restriction is unlocked