@tak-ps/node-cot 14.20.0 → 14.20.1

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
@@ -12,6 +12,10 @@
12
12
 
13
13
  ### Pending Fixed
14
14
 
15
+ ### v14.21.0 - 2025-02-04
16
+
17
+ - :rocket: Include more properties from MOBAC Basemap.xml
18
+
15
19
  ### v14.20.0 - 2025-02-03
16
20
 
17
21
  - :rocket: Permissive changes to UID Schema
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Type Schema for Basemap Map Source Configuration
3
+ * Compatible with Mobile Atlas Creator (MOBAC) Custom XML Map Sources
4
+ * @link https://mobac.sourceforge.io/wiki/index.php/Custom_XML_Map_Sources
5
+ */
1
6
  export declare const BasemapMapSource: import("@sinclair/typebox").TObject<{
2
7
  name: import("@sinclair/typebox").TObject<{
3
8
  _text: import("@sinclair/typebox").TString;
@@ -17,9 +22,18 @@ export declare const BasemapMapSource: import("@sinclair/typebox").TObject<{
17
22
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
18
23
  _text: import("@sinclair/typebox").TString;
19
24
  }>>;
25
+ invertYCoordinate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
26
+ _text: import("@sinclair/typebox").TString;
27
+ }>>;
20
28
  backgroundColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
21
29
  _text: import("@sinclair/typebox").TString;
22
30
  }>>;
31
+ ignoreErrors: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
32
+ _text: import("@sinclair/typebox").TBoolean;
33
+ }>>;
34
+ serverParts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
35
+ _text: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36
+ }>>;
23
37
  }>;
24
38
  declare const _default: import("@sinclair/typebox").TObject<{
25
39
  customMapSource: import("@sinclair/typebox").TObject<{
@@ -41,9 +55,18 @@ declare const _default: import("@sinclair/typebox").TObject<{
41
55
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
42
56
  _text: import("@sinclair/typebox").TString;
43
57
  }>>;
58
+ invertYCoordinate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
59
+ _text: import("@sinclair/typebox").TString;
60
+ }>>;
44
61
  backgroundColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
45
62
  _text: import("@sinclair/typebox").TString;
46
63
  }>>;
64
+ ignoreErrors: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
65
+ _text: import("@sinclair/typebox").TBoolean;
66
+ }>>;
67
+ serverParts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
68
+ _text: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
69
+ }>>;
47
70
  }>;
48
71
  }>;
49
72
  export default _default;
@@ -1,28 +1,42 @@
1
1
  import { Type } from '@sinclair/typebox';
2
+ /**
3
+ * Type Schema for Basemap Map Source Configuration
4
+ * Compatible with Mobile Atlas Creator (MOBAC) Custom XML Map Sources
5
+ * @link https://mobac.sourceforge.io/wiki/index.php/Custom_XML_Map_Sources
6
+ */
2
7
  export const BasemapMapSource = Type.Object({
3
8
  name: Type.Object({
4
9
  _text: Type.String()
5
- }),
10
+ }, { description: 'The name of the map source' }),
6
11
  minZoom: Type.Object({
7
12
  _text: Type.Integer()
8
- }),
13
+ }, { description: 'The minimum zoom level provided by the map source' }),
9
14
  maxZoom: Type.Object({
10
15
  _text: Type.Integer()
11
- }),
16
+ }, { description: 'The maximum zoom level provided by the map source' }),
12
17
  tileType: Type.Object({
13
18
  _text: Type.String()
14
- }),
19
+ }, { description: 'The image type provided by the map source' }),
15
20
  tileUpdate: Type.Optional(Type.Object({
16
21
  _text: Type.String({
17
22
  default: 'None'
18
23
  })
19
- })),
24
+ }, { description: 'The server capabilities for conditional downloading of new/updated tiles' })),
20
25
  url: Type.Optional(Type.Object({
21
26
  _text: Type.String()
22
- })),
27
+ }, { description: 'The URL for the tiles of the map source' })),
28
+ invertYCoordinate: Type.Optional(Type.Object({
29
+ _text: Type.String()
30
+ }, { description: 'Inverts the y coordinate so that it starts south' })),
23
31
  backgroundColor: Type.Optional(Type.Object({
24
32
  _text: Type.String()
25
- })),
33
+ }, { description: 'The background color of a map' })),
34
+ ignoreErrors: Type.Optional(Type.Object({
35
+ _text: Type.Boolean()
36
+ }, { description: 'Handling of missing tiles' })),
37
+ serverParts: Type.Optional(Type.Object({
38
+ _text: Type.Optional(Type.String())
39
+ }, { description: 'Use multiple servers for the map source' }))
26
40
  });
27
41
  export default Type.Object({
28
42
  customMapSource: BasemapMapSource
@@ -1 +1 @@
1
- {"version":3,"file":"basemap.js","sourceRoot":"","sources":["../../../lib/types/basemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;KACvB,CAAC;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;KACxB,CAAC;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;KACxB,CAAC;IACF,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;KACvB,CAAC;IACF,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAClC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;YACf,OAAO,EAAE,MAAM;SAClB,CAAC;KACL,CAAC,CAAC;IACH,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC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AC,CAAC;IAChG,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;KACvB,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE,CAAC,CAAC;IAC/D,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QACzC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;KACvB,EAAE,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC,CAAC;IACxE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QACvC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;KACvB,EAAE,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC,CAAC;IACrD,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;KACxB,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC,CAAC;IACjD,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;QACnC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;KACtC,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE,CAAC,CAAC;CAClE,CAAC,CAAA;AAEF,eAAe,IAAI,CAAC,MAAM,CAAC;IACvB,eAAe,EAAE,gBAAgB;CACpC,CAAC,CAAA"}
@@ -18,6 +18,7 @@ export declare class Basemap extends XMLDocument<BasemapType> {
18
18
  tileType: string | undefined;
19
19
  tileUpdate: string | undefined;
20
20
  backgroundColor: string | undefined;
21
+ serverParts: string | undefined;
21
22
  };
22
23
  }
23
24
  export {};
@@ -31,7 +31,8 @@ export class Basemap extends XMLDocument {
31
31
  maxZoom: this.raw.customMapSource.maxZoom ? Number(this.raw.customMapSource.maxZoom._text) : undefined,
32
32
  tileType: this.raw.customMapSource.tileType ? this.raw.customMapSource.tileType._text : undefined,
33
33
  tileUpdate: this.raw.customMapSource.tileUpdate ? this.raw.customMapSource.tileUpdate._text : undefined,
34
- backgroundColor: this.raw.customMapSource.backgroundColor ? this.raw.customMapSource.backgroundColor._text : undefined
34
+ backgroundColor: this.raw.customMapSource.backgroundColor ? this.raw.customMapSource.backgroundColor._text : undefined,
35
+ serverParts: this.raw.customMapSource.serverParts ? this.raw.customMapSource.serverParts._text : undefined,
35
36
  };
36
37
  }
37
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"basemap.js","sourceRoot":"","sources":["../../../lib/xml/basemap.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,MAAM,YAAY,GAAG,CAAC,IAAI,GAAG,CAAC;IAC1B,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;CACxB,CAAC,CAAC;KACE,OAAO,CAAC,aAAa,CAAC,CAAC;AAI5B;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAwB;IACjD;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAsB;QAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAc,MAAM,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,CAAC;QACtE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QASH,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe;YAAE,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,sBAAsB,CAAC,CAAC;QAChF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG;YAAE,MAAM,I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AK,CAAC,CAAC,CAAC,CAAC,SAAS;YACtG,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YACtG,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;YACjG,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;YACvG,eAAe,EAAE,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;YACtH,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;SAC7G,CAAA;IACL,CAAC;CACJ"}
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "14.20.0",
4
+ "version": "14.20.1",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "types": "index.ts",
@@ -1,29 +1,44 @@
1
1
  import { Type } from '@sinclair/typebox';
2
2
 
3
+ /**
4
+ * Type Schema for Basemap Map Source Configuration
5
+ * Compatible with Mobile Atlas Creator (MOBAC) Custom XML Map Sources
6
+ * @link https://mobac.sourceforge.io/wiki/index.php/Custom_XML_Map_Sources
7
+ */
8
+
3
9
  export const BasemapMapSource = Type.Object({
4
10
  name: Type.Object({
5
11
  _text: Type.String()
6
- }),
12
+ }, { description: 'The name of the map source' }),
7
13
  minZoom: Type.Object({
8
14
  _text: Type.Integer()
9
- }),
15
+ }, { description: 'The minimum zoom level provided by the map source' }),
10
16
  maxZoom: Type.Object({
11
17
  _text: Type.Integer()
12
- }),
18
+ }, { description: 'The maximum zoom level provided by the map source' }),
13
19
  tileType: Type.Object({
14
20
  _text: Type.String()
15
- }),
21
+ }, { description: 'The image type provided by the map source' }),
16
22
  tileUpdate: Type.Optional(Type.Object({
17
23
  _text: Type.String({
18
24
  default: 'None'
19
25
  })
20
- })),
26
+ }, { description: 'The server capabilities for conditional downloading of new/updated tiles' })),
21
27
  url: Type.Optional(Type.Object({
22
28
  _text: Type.String()
23
- })),
29
+ }, { description: 'The URL for the tiles of the map source' })),
30
+ invertYCoordinate: Type.Optional(Type.Object({
31
+ _text: Type.String()
32
+ }, { description: 'Inverts the y coordinate so that it starts south' })),
24
33
  backgroundColor: Type.Optional(Type.Object({
25
34
  _text: Type.String()
26
- })),
35
+ }, { description: 'The background color of a map' })),
36
+ ignoreErrors: Type.Optional(Type.Object({
37
+ _text: Type.Boolean()
38
+ }, { description: 'Handling of missing tiles' })),
39
+ serverParts: Type.Optional(Type.Object({
40
+ _text: Type.Optional(Type.String())
41
+ }, { description: 'Use multiple servers for the map source' }))
27
42
  })
28
43
 
29
44
  export default Type.Object({
@@ -33,10 +33,11 @@ export class Basemap extends XMLDocument<BasemapType> {
33
33
  tileType: string | undefined;
34
34
  tileUpdate: string | undefined;
35
35
  backgroundColor: string | undefined;
36
+ serverParts: string | undefined;
36
37
  } {
37
38
  if (!this.raw.customMapSource) throw new Err(400, null, 'Unknown Basemap Type');
38
39
  if (!this.raw.customMapSource.url) throw new Err(400, null, 'Unknown Basemap Type - Missing URL');
39
-
40
+
40
41
  return {
41
42
  name: this.raw.customMapSource.name ? this.raw.customMapSource.name._text : undefined,
42
43
  url: this.raw.customMapSource.url._text,
@@ -44,7 +45,8 @@ export class Basemap extends XMLDocument<BasemapType> {
44
45
  maxZoom: this.raw.customMapSource.maxZoom ? Number(this.raw.customMapSource.maxZoom._text) : undefined,
45
46
  tileType: this.raw.customMapSource.tileType ? this.raw.customMapSource.tileType._text : undefined,
46
47
  tileUpdate: this.raw.customMapSource.tileUpdate ? this.raw.customMapSource.tileUpdate._text : undefined,
47
- backgroundColor: this.raw.customMapSource.backgroundColor ? this.raw.customMapSource.backgroundColor._text : undefined
48
+ backgroundColor: this.raw.customMapSource.backgroundColor ? this.raw.customMapSource.backgroundColor._text : undefined,
49
+ serverParts: this.raw.customMapSource.serverParts ? this.raw.customMapSource.serverParts._text : undefined,
48
50
  }
49
51
  }
50
52
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-cot",
3
3
  "type": "module",
4
- "version": "14.20.0",
4
+ "version": "14.20.1",
5
5
  "description": "Lightweight JavaScript library for parsing and manipulating TAK messages",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "types": "index.ts",