Hello,
I use the flyTo and zoomTo functions with multiple billboards, which is really nice on the 3D globe (especially the animation of flyTo). However, the same code fails if the user has selected 2D view. Instead of ending at a viewpoint that includes all of the billboards, it seems to pick a viewpoint that shows some area inside the bounding box of the billboards (which can leave none of them visible).
To reproduce, use this sandcastle:
-
Select “Add multiple billboards” and in 3D view the flyTo animation works to show all billboards (though the bottom one is cut off)
-
Rerun example and select “2D” map
-
Now select “Add multiple billboards” and the camera zooms past all of the billboards, leaving none of them visible
Thanks,
Jacob