Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a CSS class to LCircleMarker does not work #205

Open
sbaier1 opened this issue May 14, 2019 · 1 comment
Open

Setting a CSS class to LCircleMarker does not work #205

sbaier1 opened this issue May 14, 2019 · 1 comment

Comments

@sbaier1
Copy link

sbaier1 commented May 14, 2019

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);
@sbaier1
Copy link
Author

sbaier1 commented May 14, 2019

probably related to #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant