getCurrentViewpoint method
- ViewpointType viewpointType
Retrieves the current Viewpoint of the GeoViewController.
This takes into account the attribution bar if it is visible. See GeoViewController.isAttributionTextVisible.
Parameters:
viewpointType
— The type of Viewpoint.
Return Value: A Viewpoint.
Implementation
Viewpoint? getCurrentViewpoint(
ViewpointType viewpointType,
) {
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeoView_getCurrentViewpoint(
_handle,
viewpointType.coreValue,
errorHandler,
);
});
return Viewpoint._fromHandle(
objectHandle,
);
}