New aspect "preview-map-settings" to provide dataset / distribution level controls over UI functionality
Currently, we have config options available for both web-server & magda-preview-map. However, those config options only allow us to config the preview map global behaviour rather than the behaviour for each individual map.
This ticket proposes a new aspect, "preview-map-settings":
{
"$schema": "http://json-schema.org/schema#",
"title": "Preview Map Settings",
"description": "Provides extra preview map configuration options at dataset/distribution level.",
"type": "object",
"properties": {
"enable": {
"title": "Whether the preview map UI feature should be enabled for the attached dataset/distribution.",
"type": "boolean",
"default": true
}
}
}
We can manually attach this aspect to any dataset/distribution records to indicate whether the whole dataset (all distributions in the dataset) or the attached distribution record should not be used for preview map purposes in UI.
The default value of the enable field is true. For all datasets or distributions that don't have this aspect attached, we assume they are allowed to be previewed in the map by default.
At this stage, we will not provide any UI / tool to create this aspect. Users can create the aspect data for a particular dataset or distribution record via API when required.
New aspect "preview-map-settings" to provide dataset / distribution level controls over UI functionality
Currently, we have config options available for both web-server & magda-preview-map. However, those config options only allow us to config the preview map global behaviour rather than the behaviour for each individual map.
This ticket proposes a new aspect, "preview-map-settings":
We can manually attach this aspect to any dataset/distribution records to indicate whether the whole dataset (all distributions in the dataset) or the attached distribution record should not be used for preview map purposes in UI.
enable
field istrue
. For all datasets or distributions that don't have this aspect attached, we assume they are allowed to be previewed in the map by default.At this stage, we will not provide any UI / tool to create this aspect. Users can create the aspect data for a particular dataset or distribution record via API when required.