minimumAllowedZoomLevel property
Get the minimum allowed zoom level.
Returns the minimum zoom level that the map view currently enforces.
Returns
- The minimum allowed zoom level as an integer.
Also see:
- GemMapController.minZoomLevel - The minimum zoom level from the map controller.
Implementation
int get minimumAllowedZoomLevel {
throw UnimplementedError(
'Unimplemented method: get minimumAllowedZoomLevel',
);
// try {
// final resultString = GemKitPlatform.instance.callObjectMethod(jsonEncode({
// 'id': _pointerId,
// 'MapViewExtensions',
// 'getMinimumAllowedZoomLevel',
// 'args': {}
// }));
//
// return resultString['result'];
// } catch (e) {
// rethrow;
// }
}
Set the minimum allowed zoom level.
Update the minimum 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 minimum allowed zoom level to set.
Also see:
- GemMapController.minZoomLevel — Get the current minimum allowed zoom level.
Implementation
set minimumAllowedZoomLevel(final int zoomLevel) {
throw UnimplementedError(
'Unimplemented method: set minimumAllowedZoomLevel',
);
// try {
// final result = GemKitPlatform.instance.callObjectMethod(jsonEncode({
// 'id': _pointerId,
// 'MapViewExtensions',
// 'setMinimumAllowedZoomLevel',
// 'args': zoomLevel
// }));
// final error = GemErrorExtension.fromCode(result['gemApiError'] as int);
// if(error != GemError.success) {
// throw error;
// }
// } catch (e) {
// rethrow;
// }
}