based on this answer on android. I have tried in flutter and it worked.
GeoBox target = GeoBox.containingGeoCoordinates(geoCoordinateList);
_hereMapController.camera
.lookAtAreaWithOrientation(target, MapCameraOrientationUpdate(20, 0));
geoCoordinateList
is a list of GeoCoordinates
of MapMarker
visible on HERE map
if you are using it on button click then use it directly. if you are using it directly after adding geocoordinates to geoCoordinateList then use it with delay
Future.delayed(Duration(milliseconds: 10)).then((value) {
GeoBox target = GeoBox.containingGeoCoordinates(geoCooList);
_hereMapController.camera
.lookAtAreaWithOrientation(target, MapCameraOrientationUpdate(20, 0));
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…