getPositions

fun getPositions(result: JsAny? = definedExternally)(source)

Returns an array view of this polyline's vertex positions. If 'result' argument is given, vertex positions are written to that array and returned. Otherwise, returns an ArrayView on collection memory — changes to this array will not trigger render updates, which requires .setPositions().

Parameters

result

return {TypedArray}

See also