Polyline | MapGL | Urbi Documentation
MapGL JS API

Polyline

Class for creating a polyline on the map

new constructor(map, options)

Example:

const polyline = new mapgl.Polyline(map, {
    coordinates: [
        [82.878543, 54.975937],
        [82.903049, 54.981333],
        [82.929373, 54.973391],
    ],
});
Parameters
map
Map

The map instance

options
PolylineOptions

Polyline options

Returns
Methods