new FeatureTxn(options)
A class that persists features using a GeoServer WFST
Parameters:
| Name | Type | Description |
|---|---|---|
options |
nyc.ol.geoserver.FeatureTxn.Options | Constructor options |
- Source:
- See:
Methods
add(feature)
Insert a new feature in the layer
Parameters:
| Name | Type | Description |
|---|---|---|
feature |
ol.Feature | The feature to insert |
- Source:
remove(feature)
Delete a feature from the layer
Parameters:
| Name | Type | Description |
|---|---|---|
feature |
ol.Feature | The feature to delete |
- Source:
update(feature)
Modify a feature of the layer
Parameters:
| Name | Type | Description |
|---|---|---|
feature |
ol.Feature | The feature to update |
- Source:
Type Definitions
Options
Object type to hold constructor options for nyc.ol.geoserver.GetFeature
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
wfsUrl |
string | A GeoServer WFS-T URL (i.e. http://localhost/geoserver/wfs) |
namespace |
string | The namespace URI of the layer to which features will be written |
typeName |
string | The type name of the layer from which to retrieve features |
geomColumn |
string | The name of the layer's geometry column that will be queried |
projection |
string | The projection |
success |
function | A success callback |
error |
function | An error callback that receives a WFS exception |
- Source: