getMapViewRoute method
- int index
Get map view route in collection by route.
Parameters
- IN index The map view route index in collection.
The main route in the collection
Returns
- MapViewRoute object if a route with the given index exists, null otherwise
Throws
- An exception if it fails.
Implementation
MapViewRoute? getMapViewRoute(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewRouteCollection',
'getMapViewRoute',
args: index,
);
if (resultString['gemApiError'] == -11) {
return null;
}
return MapViewRoute.init(resultString['result'], mapId, this);
}