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
GeoJson Editing
appendPointToLineString
Adds the coordinates of a GeoJSON Point object to the end of a GeoJSON LineString object.
Parameters
Name | Required | Description |
---|---|---|
line | Yes | The LineString object to which the Point will be appended. |
point | Yes | The Point object that will be appended to the LineString. |
appendPointToPolygon
Adds the coordinates of a GeoJSON Point object to the end of the shell of a GeoJSON Polygon object.
Parameters
Name | Required | Description |
---|---|---|
poly | Yes | The Polygon object to which the Point will be appended. |
point | Yes | The Point object that will be appended to the shell of the Polygon. |
merge
Merges either a Feature, an array of Features or a FeatureCollection to an existing FeatureCollection.
Parameters
Name | Required | Description |
---|---|---|
source | Yes | A FeatureCollection, an array of Features or a single Feature. |
destination | Yes | A FeatureCollection. |