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

Modify White marker background-position #59

Open
ghybs opened this issue Jul 8, 2015 · 0 comments
Open

Modify White marker background-position #59

ghybs opened this issue Jul 8, 2015 · 0 comments

Comments

@ghybs
Copy link

ghybs commented Jul 8, 2015

Hi,
First of all: thank you for the awesome plugin!

In the CSS file, the background-position for white marker is off by 2 pixels:
.awesome-marker-icon-white {
background-position: -574px 0;
}
Should be instead:
.awesome-marker-icon-white {
background-position: -576px 0;
}

Interestingly, the background-position for the black marker is also off by 2 pixels compared to the 36 pixels step, but it renders fine. So it is probably misplaced in the sprite image, and the background-position corrects this difference.

ghybs added a commit to ghybs/Leaflet.awesome-markers that referenced this issue Jul 8, 2015
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