Home > @magiclane/maps-sdk > GemView > canZoom
GemView.canZoom() method
Check if zooming to the given level is possible.
Signature:
canZoom(zoomLevel: number, input?: {
screenPosition?: Point | null;
}): boolean;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
zoomLevel |
number |
Target zoom level. |
|
{ screenPosition } |
(not declared) |
(Optional) |
|
input |
{ screenPosition?: Point | null; } |
(Optional) |
Returns:
boolean
True if zooming is possible.
Exceptions
An exception if it fails.