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

extraClasses doesn't work #92

Open
eltonsantos opened this issue Nov 29, 2017 · 1 comment
Open

extraClasses doesn't work #92

eltonsantos opened this issue Nov 29, 2017 · 1 comment

Comments

@eltonsantos
Copy link

eltonsantos commented Nov 29, 2017

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?

@astridx
Copy link

astridx commented Jan 6, 2018

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.

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

2 participants