leaflet icon indicating copy to clipboard operation
leaflet copied to clipboard

iconCreateFunction does NOT work when adding Markers with leafletProxy

Open behramkhan opened this issue 9 years ago • 6 comments

https://stackoverflow.com/questions/43483696/iconcreatefunction-does-not-work-when-adding-markers-with-leafletproxy

behramkhan avatar Jul 11 '17 10:07 behramkhan

anybody knows a work-around for this? Facing the same issue.

jellegrammens avatar Aug 01 '17 12:08 jellegrammens

For your knowledge. This seems to be in need for further clarification / how-to. Thanks! https://stackoverflow.com/questions/47922951/does-markercluster-work-together-with-leafletproxy-and-option-iconcreatefuncti

NilsOle avatar Dec 29 '17 15:12 NilsOle

+1 also faced with this issue

miccou avatar Oct 31 '18 03:10 miccou

I wanted to control the iconCreateFunction to remove the colour coding from markers, so instead of green/yellow/orange, they were all grey.

I found I could achieve this CSS:

.marker-cluster {
	background-color: rgba(12, 12, 12, 0.7) !important;
	color: black;
}

.marker-cluster div {
	background-color: rgba(255, 255, 255, 0.85) !important;
	color: black;
}

This is for styling only, but may help some people. I'd prefer to have more control over the function still.

miccou avatar Nov 29 '18 03:11 miccou

Please update us on this.

aavanesy avatar Aug 21 '20 05:08 aavanesy

Duplicate of #420

jcheng5 avatar Aug 21 '20 21:08 jcheng5