Answer the question
In order to leave comments, you need to log in
Leaflet markerclustergroup remove marker class on clustering, how to fix this?
How to assign a class to a marker within a cluster? In leaflet I use a marker filter depending on the classes (categories) assigned to them, hiding inappropriate ones. For markers with the same coordinates, I decided to use MarkerCluster. But classes disappear during clustering and filtering does not occur, but the cluster is not hidden when a category is selected. Maybe someone else knows how to update the number of cluster elements when filtering so that it works correctly?
Answer the question
In order to leave comments, you need to log in
If the background is plain - just fill the block with the text with the same color as the background.
If not, then the top cropped borders are separate elements, with position absolute, in order not to litter the HTML, it is better to use ::afrter and ::before pseudo-elements.
jsfiddle.net/f48ZD/502 like this if you need it transparently as shown in your screenshot or as I previously wrote through the tag
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question