Viewpoint.withLatLongScale constructor
Creates a viewpoint with latitude, longitude, and scale.
The spatial reference for the defined point is WGS84.
Parameters:
latitude
— The latitude coordinate for the viewpoint. Negative values are south of the equator.longitude
— The longitude coordinate for the viewpoint. Negative values are west of the prime meridian.scale
— The ratio between a distance on the map and the corresponding distance on the ground.
Implementation
factory Viewpoint.withLatLongScale({
required double latitude,
required double longitude,
required double scale,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Viewpoint_createWithLatLongScale(
latitude,
longitude,
scale,
errorHandler,
);
});
return Viewpoint._withHandle(handle);
}