Home > @magiclane/maps-sdk > GemView > centerOnMapRoutes
GemView.centerOnMapRoutes() method
Center on the routes visible on the map.
Signature:
centerOnMapRoutes(input?: {
displayMode?: RouteDisplayMode | null;
screenRect?: RectType<number> | null;
animation?: GemAnimation | null;
}): void;Parameters
Parameter | Type | Description |
|---|---|---|
{ displayMode, screenRect, animation, } | (not declared) | (Optional) |
input | { displayMode?: RouteDisplayMode | null; screenRect?: RectType<number> | null; animation?: GemAnimation | null; } | (Optional) |
input properties:
- Optional displayMode?: RouteDisplayMode | null
- Optional screenRect?: RectType
| null - Optional animation?: GemAnimation | null
Returns:
void
Exceptions
An exception if it fails.