Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

The method "fitBounds" works incorrect. #27

Open
NekrasovSt opened this issue Jun 10, 2017 · 1 comment
Open

The method "fitBounds" works incorrect. #27

NekrasovSt opened this issue Jun 10, 2017 · 1 comment

Comments

@NekrasovSt
Copy link

NekrasovSt commented Jun 10, 2017

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants