maximumAllowedZoomLevel property
Get the maximum allowed zoom level.
Returns the maximum zoom level that the map view currently allows. The value is provided by the native map view implementation.
Returns
- The maximum allowed zoom level as an integer.
Also see:
- GemMapController.maxZoomLevel - The maximum zoom level from the map controller.
Implementation
int get maximumAllowedZoomLevel {
throw UnimplementedError(
'Unimplemented method: get maximumAllowedZoomLevel',
);
// try {
// final resultString = GemKitPlatform.instance.callObjectMethod(jsonEncode({
// 'id': _pointerId,
// 'MapViewExtensions',
// 'getMaximumAllowedZoomLevel',
// 'args': {}
// }));
//
// return resultString['result'];
// } catch (e) {
// rethrow;
// }
}
Set the maximum allowed zoom level.
Update the maximum zoom level that the map view will accept. The change is applied to the underlying native view and may affect rendering and interaction.
Parameters
zoomLevel: The maximum allowed zoom level to set.
Also see:
- GemMapController.maxZoomLevel — Get the current maximum allowed zoom level.
Implementation
set maximumAllowedZoomLevel(final int zoomLevel) {
throw UnimplementedError(
'Unimplemented method: set maximumAllowedZoomLevel',
);
// try {
// final result = GemKitPlatform.instance.callObjectMethod(jsonEncode({
// 'id': _pointerId,
// 'MapViewExtensions',
// 'setMaximumAllowedZoomLevel',
// 'args': zoomLevel
// }));
// final error = GemErrorExtension.fromCode(result['gemApiError'] as int);
// if(error != GemError.success) {
// throw error;
// }
// } catch (e) {
// rethrow;
// }
}