Skip to content

Commit

Permalink
Add rendered props list
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 8, 2024
1 parent b1178d9 commit e431036
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api/web/src/stores/cots/cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e431036

Please sign in to comment.