Skip to content

Setting a CSS class to LCircleMarker does not work #205

@sbaier1

Description

@sbaier1

I am using LCircleMarker and trying to set a CSS class to it, e.g. to animate location changes.

However, when inspecting the resulting SVG paths generated by leaflet, the marker will only ever have the default leaflet-interactive class, not adding the marker-style class, regardless which of the methods i use to set the style name on the LCircleMarker object.

final LCircleMarker lCircleMarker = new LCircleMarker(newPoint, 3);
int rgb = (int) (Math.random() * (1 << 24));
final String colorString = "#" + Integer.toHexString(rgb);
lCircleMarker.setColor(colorString);
lCircleMarker.setFillColor(colorString);
lCircleMarker.setFillOpacity(1D);
lCircleMarker.setStyleName("marker-style");
map.addComponent(lCircleMarker);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions