靜態encodeEncode a list of n-dimensional points and return an encoded string
Attention: This function will modify the passed array!
A list of n-dimensional points.
The number of dimension of the points in the list.
可選opt_factor: numberThe factor by which the numbers will be
multiplied. The remaining decimal places will get rounded away.
Default is 1e5.
The encoded string.
靜態decodeDecode a list of n-dimensional points from an encoded string
An encoded string.
The number of dimension of the points in the encoded string.
可選opt_factor: numberThe factor by which the resulting numbers will
be divided. Default is 1e5.
A list of n-dimensional points.
靜態encodeEncode a list of floating point numbers and return an encoded string
Attention: This function will modify the passed array!
A list of floating point numbers.
可選opt_factor: numberThe factor by which the numbers will be
multiplied. The remaining decimal places will get rounded away.
Default is 1e5.
The encoded string.
靜態decode函數Read the projection from a Polyline source.
Source.
Projection.
Classdesc
Feature format for reading and writing data in the Encoded Polyline Algorithm Format.
參數: opt_options
Optional configuration object.
Api
stable