geostyler / geostyler-openlayers-parser

GeoStyler Style Parser implementation for OpenLayers styles
BSD 2-Clause "Simplified" License
36 stars 26 forks source link

Fixes opacity of ol mark symbolizer #667

Closed KaiVolland closed 1 year ago

KaiVolland commented 1 year ago

Description

This fixes the opacity when writing an MarkSymbolizer to Openlayers style.

  1. The CircleStyle and RegularShapeStyle have opacity as property so we can use it instead of FillOpacity
  2. They don't allow the opacity as a constructor option so we have to set it after creation of the style with setOpacity.

Related issues or pull requests

620

Pull request type

Please check the type of change your PR introduces:

Do you introduce a breaking change?

Checklist