Home > @magiclane/maps-sdk > GemView > centerOnRouteInstruction
GemView.centerOnRouteInstruction() method
Center on the given route instruction.
The route instruction turn arrow will be visible on the map.
Signature:
centerOnRouteInstruction(routeInstruction: RouteInstruction, input?: {
zoomLevel?: number;
screenPosition?: Point | null;
viewAngle?: number | null;
animation?: GemAnimation | null;
}): void;Parameters
Parameter | Type | Description |
|---|---|---|
routeInstruction | Routing instruction | |
{ zoomLevel, screenPosition, viewAngle, animation, } | (not declared) | (Optional) |
input | { zoomLevel?: number; screenPosition?: Point | null; viewAngle?: number | null; animation?: GemAnimation | null; } | (Optional) |
input properties:
- Optional zoomLevel?: number
- Optional screenPosition?: Point | null
- Optional viewAngle?: number | null
- Optional animation?: GemAnimation | null
Returns:
void
Exceptions
An exception if it fails.