centerOnAreaRect method
- RectangleGeographicArea area, {
- required RectType<
int> viewRc, - int zoomLevel = -1,
- GemAnimation? animation,
Center the on the given WGS area.
Parameters
- IN area Geographic area
- IN zoomLevel Zoom level. When -1 is used, the zoom level is automatically selected so that the entire area is visible on the map.
- IN viewRc Screen rectangle where area should be centered. The coordinates are relative to view parent screen.
- IN animation Specifies the animation to be used by the operation.
Throws
- An exception if it fails.
Implementation
void centerOnAreaRect(
final RectangleGeographicArea area, {
required final RectType<int> viewRc,
final int zoomLevel = -1,
final GemAnimation? animation,
}) {
objectMethod(
_pointerId,
'MapView',
'centerOnAreaRect',
args: <String, Object?>{
'area': area,
'zoomLevel': zoomLevel,
'viewRc': viewRc,
if (animation != null) 'animation': animation,
},
);
}