You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
My application has two pages, an Interactive Map and a Reports page. When users switch between pages, the map should look the same as how they left it.
To do this, I track the pitch, bearing, and bounds as the user interacts with the map.
Unfortunately, I am having trouble reconstructing their map, particularly when pitch or bearing are non-zero.
Steps to Trigger Behavior
Instantiate a map, call fitBounds and easeTo to set the viewport.
Instantiate another map, call fitBounds and easeTo with the first map's values.
For a pitched map, the result of getBounds() is only approximate, because it's not possible to represent the bounds of a pitched map with a rectangular box. (#2112).
mapbox-gl-js version:
0.45.0
Background
My application has two pages, an Interactive Map and a Reports page. When users switch between pages, the map should look the same as how they left it.
To do this, I track the
pitch
,bearing
, andbounds
as the user interacts with the map.Unfortunately, I am having trouble reconstructing their map, particularly when pitch or bearing are non-zero.
Steps to Trigger Behavior
fitBounds
andeaseTo
to set the viewport.fitBounds
andeaseTo
with the first map's values.Link to Demonstration
http://jsbin.com/vipofiyaco/1/edit?html,output
Expected Behavior
Both maps should look identical.
Actual Behavior
The new map looks drastically different.
The text was updated successfully, but these errors were encountered: