fnicollet / Leaflet

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

The method "fitBounds" works incorrect. #27

Open NekrasovSt opened 7 years ago

NekrasovSt commented 7 years ago

if i use bearing = 0 everything is ok. map.fitBounds(bounds, { //padding: [500, 50] paddingTopLeft: [width, 50], paddingBottomRight: [50, 50], }); 1_1

but bearing <> 0 has a problem. 2_2

It seems to me this method does not take into account the rotation of the coordinate system. Must be. 3_3

Could you fix it?

brunocarneiro commented 3 years ago

I'm facing the same problem. Has anyone fixed it?