Viewpoint.fromCenter constructor
- ArcGISPoint center,
- {required double scale,
- double rotation = double.nan}
Creates a viewpoint with center point, scale, and rotation.
Parameters:
center
— The center of the visible area.scale
— The ratio between a distance on the map and the corresponding distance on the ground.rotation
— The rotation angle in degrees between 0 and 360.
Implementation
factory Viewpoint.fromCenter(ArcGISPoint center,
{required double scale, double rotation = double.nan}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Viewpoint_createWithCenterPointScaleRotation(
center._handle, scale, rotation, errorHandler);
});
return Viewpoint._withHandle(handle);
}