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

tooltip className not applying class #370

Open
regulatoryinfo opened this issue Aug 9, 2024 · 0 comments
Open

tooltip className not applying class #370

regulatoryinfo opened this issue Aug 9, 2024 · 0 comments

Comments

@regulatoryinfo
Copy link

I've got Leaflet working in my Angular application and everything is working great, but I'm trying to add a permanent tooltip to some polygons on the map. The tooltips show up, but only with the default styling. The className I specified doesn't seem to be working for the class in my scss file. Is there some other place I should be inserting the css styling other than the regular scss file to get this to work?

here is the code line:
layer.bindTooltip(ld.geoid, {permanent: true, direction: "center", className: "tract-label"})

and this is the class in my scss file:

.tract-label {
position: absolute;
height: 20px;
border: 1px solid black;
border-radius: 5px;
width: 50px;
color: red;
background-color: #0000ff;

}

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