draw lines aroung geometries with altitude only in svg engine
This commit is contained in:
parent
7d0eb3975d
commit
7790c16bc0
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue