Skip to content

fillOpacity and fillColor have no effect when rendering circlemarkers #279

Open
@slutske22

Description

When rendering point geometries, regardless of passing in fillOpacity and fillColor to the vectorTileLayerStyles function, it seems to render the points as circlemarkers with no fill at all:

Screen Shot 2023-01-04 at 3 32 31 PM

The code to get this follows the docs pretty closely:

  L.vectorGrid
    .slicer(geoJsonGoeshere, {
      rendererFactory: L.canvas.tile,
      vectorTileLayerStyles: {
        sliced: function (properties, zoom) {
          return {
            radius: 5,
            color: properties.daqi.color,
            fillOpacity: 1,
            fillColor: properties.daqi.color
          };
        }
      }
    })
    .addTo(map);

Sandbox demonstrating the issue

Is this a known bug? Am I doing something wrong? This seems to be the case for both canvas and svg renderers.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions