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

Fixed image size for retina spritesheet icons #217

Merged
merged 1 commit into from
Nov 19, 2013

Conversation

dwnoble
Copy link
Contributor

@dwnoble dwnoble commented Nov 12, 2013

dist/images/spritesheet-2x.png has dimensions 540 x 60, but the image was being scaled to 210 x 30. This was causing toolbar icons to be rendered incorrectly in a retina display. Corrected scaling to 270 x 30.

$ file dist/images/spritesheet-2x.png 
dist/images/spritesheet-2x.png: PNG image data, 540 x 60, 8-bit/color RGBA, non-interlaced

@mstahv
Copy link

mstahv commented Nov 18, 2013

Noticed the same, made the same fix to g-leaflet-draw project. Fix looks correct to me.

@jacobtoye
Copy link
Member

Nice catch @dwnoble , I must have messed up the maths when I added the new icons the the spritesheet.

jacobtoye added a commit that referenced this pull request Nov 19, 2013
Fixed image size for retina spritesheet icons
@jacobtoye jacobtoye merged commit b95ce16 into Leaflet:master Nov 19, 2013
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

Successfully merging this pull request may close these issues.

3 participants