Open slutske22 opened 1 year ago
I know it has some time, but try:
L.vectorGrid
.slicer(geoJsonGoeshere, {
rendererFactory: L.canvas.tile,
vectorTileLayerStyles: {
sliced: function (properties, zoom) {
return {
fill:true,
radius: 5,
color: properties.daqi.color,
fillOpacity: 1,
fillColor: properties.daqi.color
};
}
}
})
.addTo(map);
When rendering point geometries, regardless of passing in
fillOpacity
andfillColor
to thevectorTileLayerStyles
function, it seems to render the points as circlemarkers with no fill at all:The code to get this follows the docs pretty closely:
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.