Skip to content

Commit

Permalink
Add support for symbol transparency (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuilleumierc authored and GeoSander committed Mar 29, 2023
1 parent 2ed8adf commit 2bee5f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bridgestyle/arcgis/togeostyler.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,14 @@ def processSymbolLayer(layer, symboltype, options):
fillOpacity = 1.0
strokeOpacity = 0
strokeWidth = 0.0
try:
opacity = layer["symbol"]["symbolLayers"][0].get("color").get("values")[3]/100
except (KeyError, IndexError):
opacity = 1.0
return {
"opacity": 1.0,
"fillOpacity": fillOpacity,
"strokeOpacity": strokeOpacity,
"fillOpacity": opacity,
"strokeOpacity": opacity,
"strokeWidth": strokeWidth,
"rotate": rotate,
"kind": "Mark",
Expand Down

0 comments on commit 2bee5f8

Please sign in to comment.