Leaflet icon indicating copy to clipboard operation
Leaflet copied to clipboard

The method "fitBounds" works incorrect.

Open NekrasovSt opened this issue 7 years ago • 1 comments

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?

NekrasovSt avatar Jun 10 '17 10:06 NekrasovSt

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

brunocarneiro avatar Aug 23 '21 11:08 brunocarneiro