diff --git a/api/web/src/stores/cots/cot.ts b/api/web/src/stores/cots/cot.ts index 2bcc260df..c877dd5b4 100644 --- a/api/web/src/stores/cots/cot.ts +++ b/api/web/src/stores/cots/cot.ts @@ -9,6 +9,24 @@ import type { Geometry as GeoJSONGeometry, } from 'geojson' +export const RENDERED_PROPERTIES = [ + 'callsign', + 'fill', + 'fill-opacity', + 'stroke', + 'group', + 'icon', + 'course', + 'icon-opacity', + 'stroke-opacity', + 'marker-color', + 'marker-radius', + 'marker-opacity', + 'circle-color', + 'circle-radius', + 'circle-opacity' +] + export default class COT implements Feature { id: string; path: string; @@ -41,6 +59,8 @@ export default class COT implements Feature { if (!feat.properties) feat.properties = {}; + + if (this.properties.fill !== undefined) feat.properties.fill = this.properties.fill; if (this.properties['fill-opacity'] !== undefined)