Methods
_applyGeometryToEditing(geometry)
Apply copied geometry to current editing feature
Parameters:
| Name | Type | Description |
|---|---|---|
geometry |
object | Geometry to apply |
- Source:
_convertToOL6Feature(ol2Feature) → {object|null}
Convert OL2 feature to OL6 format
Parameters:
| Name | Type | Description |
|---|---|---|
ol2Feature |
object | OpenLayers 2 feature |
- Source:
Returns:
OpenLayers 6 feature or null
- Type
- object | null
_geometryTypesMatch(geomType1, geomType2) → {boolean}
Check if two geometry types are compatible
Parameters:
| Name | Type | Description |
|---|---|---|
geomType1 |
string | First geometry type |
geomType2 |
string | Second geometry type |
- Source:
Returns:
True if compatible
- Type
- boolean
_getEditingGeometryType() → {string|null}
Get the geometry type of the current editing layer
- Source:
Returns:
Geometry type or null
- Type
- string | null
_getFeatureLabel(feature) → {string}
Get feature label for display
Parameters:
| Name | Type | Description |
|---|---|---|
feature |
object | Feature object |
- Source:
Returns:
Feature label
- Type
- string
_getGeometryType(geometry) → {string}
Get geometry type name
Parameters:
| Name | Type | Description |
|---|---|---|
geometry |
object | Geometry object |
- Source:
Returns:
Geometry type name
- Type
- string
_handleWMSResponse(htmlResponse, pixelPosition)
Handle WMS GetFeatureInfo HTML response
Parameters:
| Name | Type | Description |
|---|---|---|
htmlResponse |
string | HTML response from WMS GetFeatureInfo |
pixelPosition |
object | Pixel position where user clicked |
- Source:
_onFeatureSelected(featureData)
Handle feature selection from popup
Parameters:
| Name | Type | Description |
|---|---|---|
featureData |
object | Selected feature data |
- Source:
_onMapClick(event)
Handle map click
Parameters:
| Name | Type | Description |
|---|---|---|
event |
object | Map click event |
- Source:
_queryFeaturesAtPosition(coordinate, pixelPosition)
Query all visible layers for features at position via WMS GetFeatureInfo
Parameters:
| Name | Type | Description |
|---|---|---|
coordinate |
object | Lon/lat coordinate |
pixelPosition |
object | Pixel position |
- Source:
_showFeaturePicker(features, pixelPosition)
Show feature picker popup
Parameters:
| Name | Type | Description |
|---|---|---|
features |
Array | Array of features |
pixelPosition |
object | Pixel position |
- Source:
activate()
Activate copy mode
- Source:
deactivate()
Deactivate copy mode
- Source:
isActive() → {boolean}
Check if copy mode is active
- Source:
Returns:
True if active
- Type
- boolean