Fixed image size for retina spritesheet icons #217

merged 1 commit into from Nov 19, 2013


None yet

3 participants

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 commented Nov 18, 2013

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


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

@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