Form for editing properties of a feature.
- Source:
Example
<OlMapProps />
Methods
(computed) hasFeatureStatsButton() → {boolean}
Checks should we display feature stats button
- Source:
Returns:
True if the feature has a history button, false otherwise.
- Type
- boolean
(computed) isChanged() → {boolean}
Checks if any property has been changed.
- Source:
Returns:
True if any property has been changed, false otherwise.
- Type
- boolean
(computed) uploadURL() → {string}
Returns the upload URL for file picker.
- Source:
Returns:
The upload URL.
- Type
- string
(function) data()
- Source:
(method) add()
Adds a new item.
- Source:
(method) back()
Shows the previous time.
- Source:
(method) buildRules(p)
Builds validation rules based on the provided parameter.
Parameters:
Name | Type | Description |
---|---|---|
p |
any | The property on wich the rules are built |
- Source:
(method) buildType(p)
Builds the input type for the given property.
Parameters:
Name | Type | Description |
---|---|---|
p |
any | The parameter to build the type for. |
- Source:
(method) buttonColor() → {string}
Returns the color of the left/right (or add) button.
- Source:
Returns:
The color of the button.
- Type
- string
(method) cancelGeneral()
Cancels edits or closes popup.
- Source:
(method) cancelImage()
Cancels editing the properties of an image.
- Source:
(method) cancelTime()
Cancels changes for the selected time or closes the popup.
- Source:
(method) closePopup()
Closes properties window.
- Source:
(method) deleteFile(file) → {Promise}
Deletes a single attached file asynchronously.
Parameters:
Name | Type | Description |
---|---|---|
file |
Object | The file to be deleted. |
- Source:
Returns:
A promise that resolves when the file is successfully deleted.
- Type
- Promise
(async, method) deleteGeneral()
Deletes entire feature.
- Source:
(async, method) deleteTime() → {Promise.<void>}
Deletes properties for the selected time.
- Source:
Returns:
A promise that resolves when the time is deleted.
- Type
- Promise.<void>
(method) editImage(index)
Starts editing the properties of an image.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index of the image to edit. |
- Source:
(method) filesAdded(files)
Callback function that is called when files are added to the list. Adds compass and position values to files.
Parameters:
Name | Type | Description |
---|---|---|
files |
any | List of files added. |
- Source:
(method) filesFailed(info)
Handles the event when files fail to load.
Parameters:
Name | Type | Description |
---|---|---|
info |
Object | Information about the failed files. |
- Source:
(method) filesUploaded(response)
Callback function that is called when files are uploaded.
Parameters:
Name | Type | Description |
---|---|---|
response |
any | The response object returned after the files are uploaded. |
- Source:
(method) filesUrls() → {array}
Returns URLs of the files for download from server.
- Source:
Returns:
URLs of the files.
- Type
- array
(method) formFields() → {Array}
Creates array of additional atrributes to be uploaded with files
- Source:
Returns:
The form fields.
- Type
- Array
(method) forward()
Shows the next time.
- Source:
(method) getCompass(event) → {Compass}
Retrieves the compass value
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The event object. |
- Source:
Returns:
The compass value.
- Type
- Compass
(method) getGPSPosition()
Gets the GPS position.
- Source:
(method) getLocationPosition()
Gets the position of selected feature.
- Source:
(method) initGeneral()
Initializes the general properties of the feature.
- Source:
(method) req(p)
Appends asterisk to label if the field is required.
Parameters:
Name | Type | Description |
---|---|---|
p |
any | The field passed to the |
- Source:
(method) saveGeneral()
Save changes in general properties of a feature.
- Source:
(method) saveImage()
Save modified properties of an image.
- Source:
(method) saveTime() → {Promise.<void>}
Saves properties for the selected time.
- Source:
Returns:
A promise that resolves when the time is saved.
- Type
- Promise.<void>
(method) setGPSPosition()
Sets the coordinates of a file to GPS position.
- Source:
(method) setLocationPosition()
Sets the coordinates of a file to feature position.
- Source:
(method) showFeatureStats()
- Source:
(method) showImage(index)
Opens ImageViewer at a given index.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index of the image to show. |
- Source:
(method) showTime()
show properties for the selected time
- Source:
(method) tabChange(oldValue, newValue) → {boolean}
Checks if the tab has changed.
Parameters:
Name | Type | Description |
---|---|---|
oldValue |
string | The old value of the tab. |
newValue |
string | The new value of the tab. |
- Source:
Returns:
True if the tab has changed, false otherwise.
- Type
- boolean
(function) mounted()
Initializes the component
- Source:
(function) unmounted()
Removes event listener for deleteorientationabsolute.
- Source:
(watcher) isChanged(val)
Watches for changes in the isChanged
.
Parameters:
Name | Type | Description |
---|---|---|
val |
bool | The new value of the |
- Source:
(watcher) tabToShow(val)
Watches for changes in the tabToShow
Parameters:
Name | Type | Description |
---|---|---|
val |
any | The value to set the tab to show. |
- Source: