VIAMICHELIN JAVASCRIPT API


ComplexLayer

ComplexLayer aggregates graphic objects of Layer type. Launched via new and extends Layer.

Methods

MethodsReturn valueDescription
addLayer(layer:...Layer) - Adds a graphical object to the layer.
removeLayer(layer:...Layer) - Removes a graphical object from the layer.
removeLayers() - Removes all graphical objects from the layer.
getGeoBoundaries() [GeoPoint,GeoPoint] Returns the geographical coordinates of the layer boundaries as north-west and south-east corners.
getNumberOfLayers() - Returns the current number of layers within the complex layer.

Back to top