/location/create
- Source
Methods
(inner) createLocation(feature, interaction, layer)
The createLocation method creates a location from a JSON feature and stores the new Location in the layer data at rest.
The layer will be reloaded to show the new location in the mapview.
Dynamic tile generation for MVT layer may lag and not represent recently inserted rows. The feature will be checked for inclusion and the tile generation will be attempted at a 1 second interval until the feature is included in the generated tiles.
The method will attempt to get the location from the layer data at rest.
Name | Type | Description |
---|---|---|
feature | Object | JSON feature. |
interaction | Object | Mapview drawing interaction. |
layer | layer | Decorated Mapp Layer. |
Name | Type | Attributes | Description |
---|---|---|---|
feature.geometry | Object | GeoJSON geometry for new location. | |
interaction.defaults | Object | <optional> | defaults{} object properties are stored as field columns in the location record. |
interaction.default_fields | Object | <optional> | default_fields{} object keys are assigned as interaction.defaults properties with the values used to lookup interaction object properties values. |
- Source