Metadata API: Support Button of Map Layer Asset
Map Layers API methods 'Create a custom map layer', 'Get a custom map layer', 'Populate a custom map layer' and 'Replace a custom map layer' are improved to support:
- Button of Map Layer hint
- Column 'Plugin/Form Field'. The value of this property is passed to an opened Plugin/Form.
Map Layer
Example of requests:
GET /rest/ofscMetadata/v1/mapLayers/{label}
Example for response with added fields:
Response Collapse source
{
"label": "port",
"type": "internal",
"status": "active",
"text": "port name",
"translations": [
{ "language": "en",
"name": "port",
"languageISO": "en-US"
}
],
"shapeHintColumns": [
{
"sourceColumn": "CARGOWHARF",
"defaultName": "cargo",
"pluginFormField": "cargofields"
}
],
"shapeHintButtonColumn": {
"actionType": "form",
"label": "mobile_inventory_request#24#"
},
"tableColumns" [
"ANCH_DEPTH",
"CARBCHMOOR",
"CARGMDMOOR",
"CARGODEPTH",
"CARGOWHARF",
"CARGO_ANCH",
"CARICEMOOR",
"CHAN_DEPTH",
"WATER"
],
"links": [
{
"rel": "canonical",
"href": "https://frontend.ofsc.team/rest/ofscMetadata/v1/mapLayers/port"
},
{
"rel": "describedby",
"href": "https://frontend.ofsc.team/rest/ofscMetadata/v1/metadata-catalog/mapLayers"
}
]
}
json
Support full integration with map layers via API.
Steps to Enable
You don't need to do anything to enable this feature.