Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/renderer/components/feature-descriptors.json
Original file line number Diff line number Diff line change
Expand Up @@ -22281,5 +22281,53 @@
"maxPoints": 2,
"minPoints": 2
}
},
{
"standard": "NATO ATP-112",
"sidc": "G*T*ZC----*****",
"scope": "CONTROL",
"geometry": "MultiPoint",
"dimension": "TASK",
"hierarchy": [
"TACTICAL GRAPHICS",
"TASKS",
"CAPTURE"
],
"parameters": {
"arc": "90",
"layout": "seize"
}
},
{
"standard": "NATO ATP-112",
"sidc": "G*T*ZR----*****",
"scope": "CONTROL",
"geometry": "MultiPoint",
"dimension": "TASK",
"hierarchy": [
"TACTICAL GRAPHICS",
"TASKS",
"RECOVER"
],
"parameters": {
"arc": "90",
"layout": "seize"
}
},
{
"standard": "NATO ATP-112",
"sidc": "G*T*ZE----*****",
"scope": "CONTROL",
"geometry": "MultiPoint",
"dimension": "TASK",
"hierarchy": [
"TACTICAL GRAPHICS",
"TASKS",
"EVACUATE"
],
"parameters": {
"arc": "90",
"layout": "seize"
}
}
]
39 changes: 39 additions & 0 deletions src/renderer/components/milsymbol/symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,33 @@
}
]
},
"EXT_TASKS_CAPTURE_TEXT": {
"texts": [
{
"text": "C",
"x": 120,
"y": 90
}
]
},
"EXT_TASKS_RECOVER_TEXT": {
"texts": [
{
"text": "R",
"x": 120,
"y": 90
}
]
},
"EXT_TASKS_EVACUATE_TEXT": {
"texts": [
{
"text": "E",
"x": 120,
"y": 90
}
]
},
"EXT_TASKS_DELAY_TEXT": {
"texts": [
{
Expand Down Expand Up @@ -3845,6 +3872,18 @@
"EXT_TASKS_SEIZE",
"EXT_TASKS_SEIZE_TEXT"
],
"G-T-ZC----": [
"EXT_TASKS_SEIZE",
"EXT_TASKS_CAPTURE_TEXT"
],
"G-T-ZR----": [
"EXT_TASKS_SEIZE",
"EXT_TASKS_RECOVER_TEXT"
],
"G-T-ZE----": [
"EXT_TASKS_SEIZE",
"EXT_TASKS_EVACUATE_TEXT"
],
"G-T-L-----": [
"EXT_TASKS_CURVED_ARROW",
"EXT_TASKS_DELAY_TEXT"
Expand Down
41 changes: 32 additions & 9 deletions src/renderer/map/style/multipoint-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,8 @@ geometries['G*M*NM----'] = ({ feature, styles, points }) => {
]
}

/**
* TACGRP.TSK.SZE
* TASKS / SEIZE
*/
geometries['G*T*Z-----'] = ({ styles, points, resolution }) => {
const seizelike = label => options => {
const { styles, points, resolution } = options
const [C, O, S] = TS.coordinates(points)
const segmentO = TS.segment([C, O])
const segmentS = TS.segment([C, S])
Expand All @@ -408,6 +405,11 @@ geometries['G*T*Z-----'] = ({ styles, points, resolution }) => {
[0.1, -0.1], [0, 0], [0.1, 0.1]
])

const text = segment => styles.text(TS.point(arcCoords[Math.floor(arcCoords.length / 2)]), {
text: label,
flip: true
})

return [
styles.solidLine(TS.collect([
arc,
Expand All @@ -418,13 +420,34 @@ geometries['G*T*Z-----'] = ({ styles, points, resolution }) => {
TS.lineString(segmentO),
TS.lineString(segmentS)
])),
styles.text(textAnchor, {
text: 'S',
flip: false
})
...(label ? [TS.point(arcCoords[Math.floor(arcCoords.length / 2)])].map(text) : [])
]
}

/**
* TACGRP.TSK.SZE
* TASKS / SEIZE
*/
geometries['G*T*Z-----'] = seizelike('S')

/**
* TACGRP.TSK.CAP
* TASKS / CAPTURE
*/
geometries['G*T*ZC----'] = seizelike('C')

/**
* TACGRP.TSK.RCV
* TASKS / RECOVER
*/
geometries['G*T*ZR----'] = seizelike('R')

/**
* TACGRP.TSK.EVA
* TASKS / EVACUATE
*/
geometries['G*T*ZE----'] = seizelike('E')

/**
* TACGRP.MOBSU.OBST.OBSEFT.TUR
* OBSTACLE EFFECT / TURN
Expand Down