Leaflet.awesome-markers icon indicating copy to clipboard operation
Leaflet.awesome-markers copied to clipboard

extraClasses doesn't work

Open eltonsantos opened this issue 6 years ago • 1 comments

I tried:

pointToLayer: function (feature, latlng) {
					return L.marker(latlng, {
						icon: L.AwesomeMarkers.icon({
						    icon: 'tint',
						    markerColor: 'blue',
						    prefix: 'fa',
						    extraClasses: 'someClass'
						})
					});
				}

But don't work, in source code, just show:

`<div class="awesome-marker-icon-blue awesome-marker leaflet-zoom-animated leaflet-interactive" tabindex="0" style="margin-left: -17px; margin-top: -42px; width: 35px; height: 45px; transform: translate3d(905px, 529px, 0px); z-index: 529;">
               <i class="fa fa-tint  icon-white"></i>
</div>`

Why it dont work?

eltonsantos avatar Nov 29 '17 18:11 eltonsantos

I had the same problem. I then switched from the leaflet.awesome-markers.min.js file to the leaflet.awesome-markers.js file because I wanted to solve the problem. But in the file leaflet.awesome-markers.js everything worked fine. So I think that only the min-version has this bug. I hope that helps others too.

astridx avatar Jan 06 '18 19:01 astridx