Hi,
I have few polygons created and rendered on cesium, all i want is which ever polygon is selected from the parent page the cesium should flyto that polygon with camera orientation of 45 degree, and the camera zoomed to that polygon
While using -85 degree, the cesium do fly to the polygon with polygon in center and highlighted but the view is from top view. where as when i change it to -45 degree the polygon get highlighted but the polygon is not in the view, the camera point some where else far. The code i have used is below. where highlight is the polygon.
cesiumViewer.flyTo(highlight, {
offset : new Cesium.HeadingPitchRange(Cesium.Math.toRadians(0),
Cesium.Math.toRadians(-85.0),20)
}).then(function(){
viewer.selectedEntity= highlight;
});
i want same functionality but the camera orientation should be 45 degree. camera facing the polygon and polygon in center of view.