JS API
- Parameters
- Options
- Example
- Methods
- fitToBoundingBox
- getBoundingBox
- getInitialBoundingBox
- getLayers
- getMouseMode
- off
- on
- once
- refresh
- reset
- setMouseMode
- usingLayer
- usingNewLayer
- Events
- Parameters
- Example
- Methods
- addFeature
- addFeatureCollection
- bringForwards
- bufferGeometry
- changeProperties
- clearFilters
- clearFeatures
- clearStyle
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
- getFeatureCollection
- hide
- sendBackwards
- show
- style
- update
- usingFeature
getFeatureAt
Returns a GeoJSON feature at a given distance along a GeoJSON LineString or MultiLineString.
The properties of the feature also include the rotation angle of the LineString/MultiLineString at the given distance.
Parameters
Name | Required | Description |
---|---|---|
geometry | Yes | Any GeoJSON LineString or MultiLineString. |
distanceAlong | Yes | The distance along the GeoJSON LineString or MultiLineString at which to obtain the Feature. |