Skip to content

Commit

Permalink
Improve symbol support (#13)
Browse files Browse the repository at this point in the history
* Use symbol fill color, refine opacity support

* Use stroke width, default to 0

* Default symbol fill color to white
  • Loading branch information
vuilleumierc authored and GeoSander committed Mar 29, 2023
1 parent 822e0f6 commit 86e0fb3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bridgestyle/arcgis/togeostyler.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,10 @@ 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": opacity,
"strokeOpacity": opacity,
"fillOpacity": fillOpacity,
"strokeOpacity": strokeOpacity,
"strokeWidth": strokeWidth,
"rotate": rotate,
"kind": "Mark",
Expand Down

0 comments on commit 86e0fb3

Please sign in to comment.