Classes
Methods
-
module:ol/format/Polyline.decodeDeltas(encoded, stride, opt_factor){Array.<number>}
format/Polyline.js, line 178 -
import {decodeDeltas} from 'ol/format/Polyline';Decode a list of n-dimensional points from an encoded string
Name Type Description encodedstring An encoded string.
stridenumber The number of dimension of the points in the encoded string.
factornumber The factor by which the resulting numbers will be divided. Default is
1e5.Returns:
A list of n-dimensional points.
-
module:ol/format/Polyline.decodeFloats(encoded, opt_factor){Array.<number>}
format/Polyline.js, line 233 -
import {decodeFloats} from 'ol/format/Polyline';Decode a list of floating point numbers from an encoded string
Name Type Description encodedstring An encoded string.
factornumber The factor by which the result will be divided. Default is
1e5.Returns:
A list of floating point numbers.
-
module:ol/format/Polyline.encodeDeltas(numbers, stride, opt_factor){string}
format/Polyline.js, line 144 -
import {encodeDeltas} from 'ol/format/Polyline';Encode a list of n-dimensional points and return an encoded string
Attention: This function will modify the passed array!
Name Type Description numbersArray.<number> A list of n-dimensional points.
stridenumber The number of dimension of the points in the list.
factornumber The factor by which the numbers will be multiplied. The remaining decimal places will get rounded away. Default is
1e5.Returns:
The encoded string.
-
module:ol/format/Polyline.encodeFloats(numbers, opt_factor){string}
format/Polyline.js, line 214 -
import {encodeFloats} from 'ol/format/Polyline';Encode a list of floating point numbers and return an encoded string
Attention: This function will modify the passed array!
Name Type Description numbersArray.<number> A list of floating point numbers.
factornumber The factor by which the numbers will be multiplied. The remaining decimal places will get rounded away. Default is
1e5.Returns:
The encoded string.
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description factornumber <optional>
1e5 The factor by which the coordinates values will be scaled.
geometryLayoutmodule:ol/geom/GeometryLayout <optional>
'XY' Layout of the feature geometries created by the format reader.
OpenLayers