Home > @magiclane/maps-sdk > MapViewRoutesCollection

MapViewRoutesCollection class

Signature:

export declare class MapViewRoutesCollection extends GemList<Route> 

Extends: GemList<Route>

Constructors

Constructor

Modifiers

Description

(constructor)(id, mapId)

Constructs a new instance of the MapViewRoutesCollection class

Properties

Property

Modifiers

Type

Description

mainRoute

Route | null

Methods

Method

Modifiers

Description

add(route, bMainRoute, options)

addMapViewRoute(route)

clear()

clearAllButMainRoute()

create()

static

Creates a new instance of MapViewRoutesCollection. Utilizes the GemKitPlatform to request the creation of a new object and parses the resulting JSON to instantiate the collection.

getLabel(route)

getMapViewRoute(index)

getRenderSettings(route)

getRoute(index)

hideLabel(route)

indexOf(route)

isMainRoute(route)

remove(route)

setLabel(route, text)

setRenderSettings(route, settings)