Skip to content

Commit

Permalink
Update collection to return rendered features
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 8, 2024
1 parent 12744aa commit b1178d9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions api/web/src/stores/cots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ export const useCOTStore = defineStore('cots', {
collection(store: Map<string, COT>): FeatureCollection {
return {
type: 'FeatureCollection',
features: Array.from(store.values())
features: Array.from(store.values()).map((f: COT) => {
return f.as_rendered();
})
}
},

Expand Down Expand Up @@ -384,11 +386,6 @@ export const useCOTStore = defineStore('cots', {
const mapStore = useMapStore();
mapStore.updateMissionData(mission_guid);
} else {
/**
* Mission CoTs ideally go to the Mission Layer
* TODO: This will only work with existing CoTs in the mission
* New CoTs will not be added to the proper layer
*/
let mission_cot = false;
for (const [key, value] of this.subscriptions) {
if (value.has(cot.id)) {
Expand Down

0 comments on commit b1178d9

Please sign in to comment.