Filter function to display point coordinates or null to don't use any filter.
Style.
Options.
Export features using a given format to a specific filename and download
the result to the browser. The projection of the exported features is:
EPSG:4326
.
Array of vector features.
Format
Name of the file.
Optional
opt_mimeType: stringMime type. Defaults to 'text/plain'.
This methods will try to fit a feature into a map view.
If the feature is already visible, then the map will be zoomed out if the feature is too big for the current view.
If the feature is not visible but would fit in the map view, the map is panned to the center of the feature.
If the feature is not visible and would not fit in the map view, the map is fix to the feature's extent.
Feature.
Map.
Optional
opt_duration: numberAimation duration. Defaults to 250
.
Style Arrows style for the line.
Feature with linestring geometry.
An ArrowDirections value.
An ArrowPositions value.
an hex Color.
Loop in the given coordinates and look one that hits an other given coordinate using a buffer. If one does, return its index.
Index of the coordinate that hits. If none did, -1 is returned.
Coordinates in which to loop to find the one that hits the other given coordinate.
Coordinate that has to hit.
Minimum number of coordinates required to look for the one that hits.
Buffer, in map view units, to extend the extent with.
Get the measure of the given feature as a string. For points, you can format the result by setting a filter to apply on the coordinate with the function import('ngeo/misc/FeatureHelper').setPointFilterFn.
Measure.
Feature.
This method generates a line string geometry that represents the radius for a given azimut. It expects the input geometry to be a circle.
The line geometry.
Feature.
Azimut in degrees.
For a given feature, if its geometry supports vertice that can be removed on click, then check if there is a vertex a the given coordinate. The map current map view resolution is used to calculate a buffer of the size of the vertex (using its style).
If a vertex hits, then return its information, i.e. its indexes among the coordinates of the geometry of the feature, as an array. For example, if the geometry is a LineString, then the coordinates are an array of ol.Coordinate, so a single index is required. For a polygon, coordinates are an array of array of coordinates, so 2 indexes are required.
If removing a vertex would make the geometry invalid, then the vertex info is not returned.
The indexes of the vertex (coordinate) that hits.
Feature.
Coordinate.
Current map view resolution.
Create and return a style object to be used for vertex.
Style.
Optional
opt_incGeomFunc: booleanWhether to include the geometry function
or not. One wants to use the geometry function when you want to draw
the vertex of features that don't have point geometries. One doesn't
want to include the geometry function if you just want to have the
style object itself to be used to draw features that have point
geometries. Defaults to true
.
Set the style of a feature using its inner properties and depending on its geometry type.
Feature.
Optional
opt_select: booleanWhether the feature should be rendered as selected, which includes additional vertex and halo styles.
Generated using TypeDoc
Arguments to apply to the point filter function.