fnicollet / Leaflet

:leaves: JavaScript library for mobile-friendly interactive maps
http://leafletjs.com
BSD 2-Clause "Simplified" License
48 stars 20 forks source link

Backport Leaflet@a2595bb #24

Open sisou opened 7 years ago

sisou commented 7 years ago

This PR backports https://github.com/Leaflet/Leaflet/commit/a2595bbfe8109dc9cd24a15d28e0e4e6048e2e5f, to fix #1

sisou commented 7 years ago

This change makes the zooming issues better, but does not fix zooming of vector layers when rotated.

fnicollet commented 7 years ago

Wow, had so many headaches on this one, and you just did it :)

Can't test at the moment, but if it works with vector layers, all good to merge!

laobubu commented 7 years ago

Tested. Works well when map is not rotated. The current rotation of map shall be considered when transform the canvas.