Geomap: Update language to match documentation and remove beta (#53703)

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
Drew Slobodnjak 2022-08-12 18:33:30 -07:00 committed by GitHub
parent 0362ab131e
commit e9e5c97807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 13 deletions

View File

@ -458,7 +458,7 @@
"hasUpdate": false,
"defaultNavUrl": "/plugins/geomap/",
"category": "",
"state": "beta",
"state": "",
"signature": "internal",
"signatureType": "",
"signatureOrg": ""

View File

@ -44,8 +44,10 @@ export const plugin = new PanelPlugin<GeomapPanelOptions>(GeomapPanel)
if (!state?.layers) {
// TODO? show spinner?
} else {
const layersCategory = ['Map layers'];
const basemapCategory = ['Basemap layer'];
builder.addCustomEditor({
category: ['Data layer'],
category: layersCategory,
id: 'layers',
path: '',
name: '',
@ -57,7 +59,7 @@ export const plugin = new PanelPlugin<GeomapPanelOptions>(GeomapPanel)
builder.addNestedOptions(
getLayerEditor({
state: selected,
category: ['Data layer'],
category: layersCategory,
basemaps: false,
})
);
@ -66,18 +68,18 @@ export const plugin = new PanelPlugin<GeomapPanelOptions>(GeomapPanel)
const baselayer = state.layers[0];
if (config.geomapDisableCustomBaseLayer) {
builder.addCustomEditor({
category: ['Base layer'],
category: basemapCategory,
id: 'layers',
path: '',
name: '',
// eslint-disable-next-line react/display-name
editor: () => <div>The base layer is configured by the server admin.</div>,
editor: () => <div>The basemap layer is configured by the server admin.</div>,
});
} else if (baselayer) {
builder.addNestedOptions(
getLayerEditor({
state: baselayer,
category: ['Base layer'],
category: basemapCategory,
basemaps: true,
})
);
@ -117,16 +119,16 @@ export const plugin = new PanelPlugin<GeomapPanelOptions>(GeomapPanel)
})
.addBooleanSwitch({
category,
path: 'controls.showDebug',
name: 'Show debug',
description: 'Show map info',
path: 'controls.showMeasure',
name: 'Show measure tools',
description: 'Show tools for making measurements on the map',
defaultValue: false,
})
.addBooleanSwitch({
category,
path: 'controls.showMeasure',
name: 'Show measure tools',
description: 'Show tools for making measurements on the map',
path: 'controls.showDebug',
name: 'Show debug',
description: 'Show map info',
defaultValue: false,
})
.addRadio({

View File

@ -2,7 +2,6 @@
"type": "panel",
"name": "Geomap",
"id": "geomap",
"state": "beta",
"info": {
"description": "Geomap panel",