@tak-ps/node-cot 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v2.1.2
14
+
15
+ - :bug: Parse GeoJSON Point coords into COT
16
+
17
+ ### v2.1.1
18
+
19
+ - :bug: Parse GeoJSON Point coords into COT
20
+
13
21
  ### v2.1.0
14
22
 
15
23
  - :rocket: Allow setting `type` & `how` from GeoJSON
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "main": "index.js",
7
7
  "scripts": {
package/src/xml.js CHANGED
@@ -50,6 +50,9 @@ export default class XMLCot {
50
50
  if (feature.properties[key]) cot.event._attributes[key] = feature.properties[key];
51
51
  }
52
52
 
53
+ cot.event.point._attributes.lon = feature.geometry.coordinates[0];
54
+ cot.event.point._attributes.lat = feature.geometry.coordinates[1];
55
+
53
56
  return new XMLCot(cot);
54
57
  }
55
58