fix: remove redundant MAP annotation type

This commit is contained in:
Mazzella, Jesse D. (ARC-TI)[KBR Wyle Services, LLC] 2023-06-01 09:37:02 -07:00
parent c530c2998a
commit 8d8dd34853
2 changed files with 2 additions and 4 deletions

View File

@ -32,15 +32,13 @@ import _ from 'lodash';
* @property {String} PIXEL_SPATIAL The pixel-spatial annotation type
* @property {String} TEMPORAL The temporal annotation type
* @property {String} PLOT_SPATIAL The plot-spatial annotation type
* @property {String} MAP The map annotation type
*/
const ANNOTATION_TYPES = Object.freeze({
NOTEBOOK: 'NOTEBOOK',
GEOSPATIAL: 'GEOSPATIAL',
PIXEL_SPATIAL: 'PIXEL_SPATIAL',
TEMPORAL: 'TEMPORAL',
PLOT_SPATIAL: 'PLOT_SPATIAL',
MAP: 'MAP'
PLOT_SPATIAL: 'PLOT_SPATIAL'
});
const ANNOTATION_TYPE = 'annotation';

View File

@ -98,7 +98,7 @@ export default {
}
return 'Could not find any matching Notebook entries';
} else if (this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.MAP) {
} else if (this.result.annotationType === this.openmct.annotation.ANNOTATION_TYPES.GEOSPATIAL) {
const targetID = Object.keys(this.result.targets)[0];
const { layerName, name } = this.result.targets[targetID];