Network Locator uses an internal MongoDB database as primary storage of the locate requests. To enable querying this data with an ArcGIS-based web client (for example, VertiGIS Studio Web), you can optionally synchronize the MongoDB database with an Esri Feature Layer. This synchronization is handled by the synchronization service.
The Synchronization service monitors changes to the Network Locator request data on a message queue and synchronizes these changes with an ArcGIS Feature layer by creating and updating features accordingly.
Setting |
Type |
Description |
vertigis.synchronization.enabled |
Boolean |
Enable/disable the configuration. |
vertigis.synchronization.feature-layer |
String |
The absolute REST endpoint of the feature-layer where the requests should be stored to. |
vertigis.synchronization.layer-info-cache-duration |
Duration |
The length of time that the feature-layer metadata is cached. Set to 0 for infinite caching, or leave empty to disable caching. |
vertigis.synchronization.auto-map-field |
Boolean |
If set to true, the service will attempt to automatically map all source fields to the corresponding feature-service fields with the same name. |
vertigis.synchronization.operation-type-filter |
List<OperationType> |
All operation-types for which a synchronization should be triggered. Currently only insert and update are implemented |
vertigis.synchronization.field-mappings |
List<FieldMapping> |
Contains all explicit field-mappings |
vertigis.synchronization.geometry-field-mapping |
A field-mapping that will be used for writing the geometry of a feature |
Setting |
Type |
Description |
source-field |
String |
The name of the source field (the field in the RabbitMq Message). Either constant-value or source-field must be configured. |
constant-value |
String |
A constant value, that should be used for the target-field in the feature. Either constant-value or source-field must be configured. |
target-field |
String |
The field name in the target feature-layer. Leave this blank to disable synchronization for the source-field |
converter |
Class |
A Converter class, that should be used for transforming the source-data to the feature-layer field value. This Converter must exist as a bean in the current application. Default: com.vertigis.networklocator.converter.PrintPageListToGeometryConverter |
operation-type-filter |
List<OperationType> |
All operation-types for which this field should be synchronized. Currently only insert, update are supported |
{
"auto-map-fields": true,
"feature-layer": "https://<ARCGIS-SERVER-BASE-URL>/server/rest/services/Hosted/LocatorData/FeatureServer/0",
"field-mappings": [
{
"constant-value": "1.0.0-20240415.5",
"target-field": "Network Locator Version"
}
],
"geometry-field-mapping": {
"converter": "com.vertigis.networklocator.converter.PrintPageListToGeometryConverter",
"operation-type-filter": [
"insert"
],
"source-field": "print_pages"
},
"layer-info-cache-duration": "8h"
}