geometry.LineString.fromEncodedCoordinates
Static function.
Creates a geometry.LineString geometry based on a string of Base64-encoded coordinates.
Returns a geometry.
{ geometry.LineString } geometry.LineString.fromEncodedCoordinates(encodedCoordinates)
Parameters:
Parameter |
Default value |
Description |
ā |
Type: String Base64-encoded coordinates of polyline points. |
* Mandatory parameter/option.
Example:
var base64Coords = "gMPJAYDw-gJAQg8AQEIPAEBCDwBAQg8A";
var geometry = ymaps.geometry.LineString.fromEncodedCoordinates(base64Coords);
var polyline = new ymaps.Polyline(geometry);
Mandatory parameter/option.