node-red-contrib-web-worldmap 4.6.3 → 4.6.4
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 +1 -0
- package/README.md +1 -8
- package/node_modules/hasown/CHANGELOG.md +12 -0
- package/node_modules/hasown/index.d.ts +2 -2
- package/node_modules/hasown/package.json +5 -2
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/set-function-length/CHANGELOG.md +11 -0
- package/node_modules/set-function-length/env.d.ts +9 -6
- package/node_modules/set-function-length/env.js +1 -0
- package/node_modules/set-function-length/index.d.ts +6 -6
- package/node_modules/set-function-length/index.js +1 -3
- package/node_modules/set-function-length/package.json +11 -13
- package/node_modules/set-function-length/tsconfig.json +7 -57
- package/package.json +1 -1
- package/worldmap/worldmap.js +4 -0
- package/worldmap.js +30 -2
- package/node_modules/set-function-length/env.d.ts.map +0 -1
- package/node_modules/set-function-length/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v4.6.4 - Fix deletion of layers logic to actually fully remove points.
|
|
3
4
|
- v4.6.3 - Fix sending of layer events when not wanted. Issue #262
|
|
4
5
|
- v4.6.2 - Fix multiple use of contextmenu feedback. Issue #259
|
|
5
6
|
- v4.6.1 - let default pmtiles be light/dark or monocolored.
|
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ Feel free to [
|
|
43
|
-
- v2.40.1 - Fix missing countries overlay when starting disconnected.
|
|
44
|
-
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
|
45
38
|
|
|
46
39
|
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes.
|
|
47
40
|
|
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
|
|
13
|
+
- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
|
|
14
|
+
- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
|
|
15
|
+
- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
|
|
16
|
+
- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
|
|
17
|
+
- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
|
|
18
|
+
- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
|
|
19
|
+
|
|
8
20
|
## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
|
|
9
21
|
|
|
10
22
|
### Commits
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function hasOwn<
|
|
1
|
+
declare function hasOwn<O, K extends PropertyKey, V = unknown>(o: O, p: K): o is O & Record<K, V>;
|
|
2
2
|
|
|
3
|
-
export = hasOwn;
|
|
3
|
+
export = hasOwn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hasown",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A robust, ES3 compatible, \"has own property\" predicate.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"postlint": "npm run tsc",
|
|
19
19
|
"pretest": "npm run lint",
|
|
20
20
|
"tsc": "tsc -p .",
|
|
21
|
+
"posttsc": "attw -P",
|
|
21
22
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
23
|
"test": "npm run tests-only",
|
|
23
24
|
"posttest": "aud --production",
|
|
@@ -50,7 +51,9 @@
|
|
|
50
51
|
"function-bind": "^1.1.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/cli": "^0.15.1",
|
|
53
55
|
"@ljharb/eslint-config": "^21.1.0",
|
|
56
|
+
"@ljharb/tsconfig": "^0.2.0",
|
|
54
57
|
"@types/function-bind": "^1.1.10",
|
|
55
58
|
"@types/mock-property": "^1.0.2",
|
|
56
59
|
"@types/tape": "^5.6.4",
|
|
@@ -63,7 +66,7 @@
|
|
|
63
66
|
"npmignore": "^0.3.1",
|
|
64
67
|
"nyc": "^10.3.2",
|
|
65
68
|
"safe-publish-latest": "^2.0.0",
|
|
66
|
-
"tape": "^5.7.
|
|
69
|
+
"tape": "^5.7.5",
|
|
67
70
|
"typescript": "next"
|
|
68
71
|
},
|
|
69
72
|
"engines": {
|
|
@@ -1,49 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
|
|
7
|
-
/* Language and Environment */
|
|
8
|
-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
9
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
-
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
-
|
|
14
|
-
/* Modules */
|
|
15
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
-
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
-
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
24
|
-
|
|
25
|
-
/* JavaScript Support */
|
|
26
|
-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
27
|
-
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
28
|
-
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
29
|
-
|
|
30
|
-
/* Emit */
|
|
31
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
32
|
-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
33
|
-
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
-
|
|
35
|
-
/* Interop Constraints */
|
|
36
|
-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
-
|
|
40
|
-
/* Type Checking */
|
|
41
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
-
|
|
43
|
-
/* Completeness */
|
|
44
|
-
//"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
45
|
-
},
|
|
2
|
+
"extends": "@ljharb/tsconfig",
|
|
46
3
|
"exclude": [
|
|
47
|
-
"coverage"
|
|
48
|
-
]
|
|
4
|
+
"coverage",
|
|
5
|
+
],
|
|
49
6
|
}
|
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v1.2.2](https://github.com/ljharb/set-function-length/compare/v1.2.1...v1.2.2) - 2024-03-09
|
|
9
|
+
|
|
10
|
+
### Commits
|
|
11
|
+
|
|
12
|
+
- [types] use shared config [`027032f`](https://github.com/ljharb/set-function-length/commit/027032fe9cc439644a07248ea6a8d813fcc767cb)
|
|
13
|
+
- [actions] remove redundant finisher; use reusable workflow [`1fd4fb1`](https://github.com/ljharb/set-function-length/commit/1fd4fb1c58bd5170f0dcff7e320077c0aa2ffdeb)
|
|
14
|
+
- [types] use a handwritten d.ts file instead of emit [`01b9761`](https://github.com/ljharb/set-function-length/commit/01b9761742c95e1118e8c2d153ce2ae43d9731aa)
|
|
15
|
+
- [Deps] update `define-data-property`, `get-intrinsic`, `has-property-descriptors` [`bee8eaf`](https://github.com/ljharb/set-function-length/commit/bee8eaf7749f325357ade85cffeaeef679e513d4)
|
|
16
|
+
- [Dev Deps] update `call-bind`, `tape` [`5dae579`](https://github.com/ljharb/set-function-length/commit/5dae579fdc3aab91b14ebb58f9c19ee3f509d434)
|
|
17
|
+
- [Tests] use `@arethetypeswrong/cli` [`7e22425`](https://github.com/ljharb/set-function-length/commit/7e22425d15957fd3d6da0b6bca4afc0c8d255d2d)
|
|
18
|
+
|
|
8
19
|
## [v1.2.1](https://github.com/ljharb/set-function-length/compare/v1.2.0...v1.2.1) - 2024-02-06
|
|
9
20
|
|
|
10
21
|
### Commits
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
declare const env: {
|
|
2
|
+
__proto__: null,
|
|
3
|
+
boundFnsHaveConfigurableLengths: boolean;
|
|
4
|
+
boundFnsHaveWritableLengths: boolean;
|
|
5
|
+
functionsHaveConfigurableLengths: boolean;
|
|
6
|
+
functionsHaveWritableLengths: boolean;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export = env;
|
|
@@ -15,6 +15,7 @@ var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
|
|
|
15
15
|
|
|
16
16
|
var boundFnsHaveWritableLengths = !!(bound && bound.writable);
|
|
17
17
|
|
|
18
|
+
/** @type {import('./env')} */
|
|
18
19
|
module.exports = {
|
|
19
20
|
__proto__: null,
|
|
20
21
|
boundFnsHaveConfigurableLengths: boundFnsHaveConfigurableLengths,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare namespace
|
|
2
|
-
|
|
1
|
+
declare namespace setFunctionLength {
|
|
2
|
+
type Func = (...args: unknown[]) => unknown;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
|
|
5
|
+
declare function setFunctionLength<T extends setFunctionLength.Func = setFunctionLength.Func>(fn: T, length: number, loose?: boolean): T;
|
|
6
|
+
|
|
7
|
+
export = setFunctionLength;
|
|
@@ -8,9 +8,7 @@ var gOPD = require('gopd');
|
|
|
8
8
|
var $TypeError = require('es-errors/type');
|
|
9
9
|
var $floor = GetIntrinsic('%Math.floor%');
|
|
10
10
|
|
|
11
|
-
/** @
|
|
12
|
-
|
|
13
|
-
/** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
|
|
11
|
+
/** @type {import('.')} */
|
|
14
12
|
module.exports = function setFunctionLength(fn, length) {
|
|
15
13
|
if (typeof fn !== 'function') {
|
|
16
14
|
throw new $TypeError('`fn` is not a function');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "set-function-length",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Set a function's length property",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -13,13 +13,11 @@
|
|
|
13
13
|
"test": "test"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"prepack": "npmignore --auto --commentLines=autogenerated
|
|
16
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
17
17
|
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
18
18
|
"prepublishOnly": "safe-publish-latest",
|
|
19
19
|
"tsc": "tsc -p .",
|
|
20
|
-
"
|
|
21
|
-
"emit": "npm run tsc -- --noEmit false --emitDeclarationOnly",
|
|
22
|
-
"postemit": "rm test/*.ts test/*.ts.map",
|
|
20
|
+
"posttsc": "attw -P",
|
|
23
21
|
"prelint": "evalmd README.md",
|
|
24
22
|
"lint": "eslint --ext=js,mjs .",
|
|
25
23
|
"postlint": "npm run tsc",
|
|
@@ -49,15 +47,17 @@
|
|
|
49
47
|
},
|
|
50
48
|
"homepage": "https://github.com/ljharb/set-function-length#readme",
|
|
51
49
|
"dependencies": {
|
|
52
|
-
"define-data-property": "^1.1.
|
|
50
|
+
"define-data-property": "^1.1.4",
|
|
53
51
|
"es-errors": "^1.3.0",
|
|
54
52
|
"function-bind": "^1.1.2",
|
|
55
|
-
"get-intrinsic": "^1.2.
|
|
53
|
+
"get-intrinsic": "^1.2.4",
|
|
56
54
|
"gopd": "^1.0.1",
|
|
57
|
-
"has-property-descriptors": "^1.0.
|
|
55
|
+
"has-property-descriptors": "^1.0.2"
|
|
58
56
|
},
|
|
59
57
|
"devDependencies": {
|
|
58
|
+
"@arethetypeswrong/cli": "^0.15.1",
|
|
60
59
|
"@ljharb/eslint-config": "^21.1.0",
|
|
60
|
+
"@ljharb/tsconfig": "^0.1.1",
|
|
61
61
|
"@types/call-bind": "^1.0.5",
|
|
62
62
|
"@types/define-properties": "^1.1.5",
|
|
63
63
|
"@types/es-value-fixtures": "^1.4.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@types/tape": "^5.6.4",
|
|
70
70
|
"aud": "^2.0.4",
|
|
71
71
|
"auto-changelog": "^2.4.0",
|
|
72
|
-
"call-bind": "^1.0.
|
|
72
|
+
"call-bind": "^1.0.7",
|
|
73
73
|
"es-value-fixtures": "^1.4.2",
|
|
74
74
|
"eslint": "=8.8.0",
|
|
75
75
|
"evalmd": "^0.0.19",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"nyc": "^10.3.2",
|
|
80
80
|
"object-inspect": "^1.13.1",
|
|
81
81
|
"safe-publish-latest": "^2.0.0",
|
|
82
|
-
"tape": "^5.7.
|
|
82
|
+
"tape": "^5.7.5",
|
|
83
83
|
"typescript": "next"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
@@ -96,9 +96,7 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"ignore": [
|
|
98
98
|
".github/workflows",
|
|
99
|
-
"test"
|
|
100
|
-
"!*.d.ts",
|
|
101
|
-
"!*.d.ts.map"
|
|
99
|
+
"test"
|
|
102
100
|
]
|
|
103
101
|
}
|
|
104
102
|
}
|
|
@@ -1,59 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
10
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
11
|
-
"useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
12
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
13
|
-
|
|
14
|
-
/* Modules */
|
|
15
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
16
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
17
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
18
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
19
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
20
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
21
|
-
"typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
22
|
-
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
23
|
-
|
|
24
|
-
/* JavaScript Support */
|
|
25
|
-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
26
|
-
"checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
27
|
-
"maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
28
|
-
|
|
29
|
-
/* Emit */
|
|
30
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
31
|
-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
32
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
33
|
-
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
34
|
-
|
|
35
|
-
/* Interop Constraints */
|
|
36
|
-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
37
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
38
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
39
|
-
|
|
40
|
-
/* Type Checking */
|
|
41
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
42
|
-
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
43
|
-
"noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
44
|
-
"useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
45
|
-
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
46
|
-
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
47
|
-
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
48
|
-
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
49
|
-
"noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
50
|
-
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
51
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
52
|
-
|
|
53
|
-
/* Completeness */
|
|
54
|
-
// "skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
55
|
-
},
|
|
56
|
-
"exclude": [
|
|
57
|
-
"coverage"
|
|
58
|
-
]
|
|
2
|
+
"extends": "@ljharb/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
},
|
|
6
|
+
"exclude": [
|
|
7
|
+
"coverage",
|
|
8
|
+
],
|
|
59
9
|
}
|
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -545,13 +545,16 @@ function doTidyUp(l) {
|
|
|
545
545
|
if (typeof polygons[m+"_"] != "undefined") {
|
|
546
546
|
layers[polygons[m+"_"].lay].removeLayer(polygons[m+"_"]);
|
|
547
547
|
delete polygons[m+"_"];
|
|
548
|
+
delete allData[m+"_"];
|
|
548
549
|
}
|
|
549
550
|
if (typeof polygons[m] != "undefined") {
|
|
550
551
|
layers[markers[m].lay].removeLayer(polygons[m]);
|
|
551
552
|
delete polygons[m];
|
|
553
|
+
delete allData[m];
|
|
552
554
|
}
|
|
553
555
|
layers[markers[m].lay].removeLayer(markers[m]);
|
|
554
556
|
delete markers[m];
|
|
557
|
+
delete allData[m];
|
|
555
558
|
}
|
|
556
559
|
}
|
|
557
560
|
}
|
|
@@ -2645,6 +2648,7 @@ function doCommand(cmd) {
|
|
|
2645
2648
|
for (var a=0; a < cmd.map.delete.length; a++) {
|
|
2646
2649
|
if (basemaps.hasOwnProperty(cmd.map.delete[a])) { delete basemaps[cmd.map.delete[a]]; }
|
|
2647
2650
|
if (overlays.hasOwnProperty(cmd.map.delete[a])) { delete overlays[cmd.map.delete[a]]; }
|
|
2651
|
+
doTidyUp(cmd.map.delete[a]);
|
|
2648
2652
|
}
|
|
2649
2653
|
if (showLayerMenu) {
|
|
2650
2654
|
map.removeControl(layercontrol);
|
package/worldmap.js
CHANGED
|
@@ -200,6 +200,21 @@ module.exports = function(RED) {
|
|
|
200
200
|
if (msg.payload.ttl && msg.payload.ttl < t) { t = msg.payload.ttl; }
|
|
201
201
|
allPoints[msg.payload.name].tout = setTimeout( function() { delete allPoints[msg.payload.name] }, t * 1000 );
|
|
202
202
|
}
|
|
203
|
+
|
|
204
|
+
if (msg?.payload?.command?.map?.delete) {
|
|
205
|
+
var ddd = msg.payload.command.map.delete;
|
|
206
|
+
if (!Array.isArray(ddd)) { ddd = [cmd.map.delete]; }
|
|
207
|
+
for (let a=0; a < ddd.length; a++) {
|
|
208
|
+
for (let p in allPoints) {
|
|
209
|
+
if (allPoints.hasOwnProperty(p)) {
|
|
210
|
+
if (allPoints[p].layer === ddd[a]) {
|
|
211
|
+
delete allPoints[p];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
203
218
|
});
|
|
204
219
|
node.on("close", function() {
|
|
205
220
|
for (var c in clients) {
|
|
@@ -463,8 +478,21 @@ module.exports = function(RED) {
|
|
|
463
478
|
node.send(newmsg); // send the track
|
|
464
479
|
}
|
|
465
480
|
}
|
|
466
|
-
if (msg
|
|
467
|
-
|
|
481
|
+
if (msg?.payload?.command?.map?.delete) {
|
|
482
|
+
var ddd = msg.payload.command.map.delete;
|
|
483
|
+
if (!Array.isArray(ddd)) { ddd = [cmd.map.delete]; }
|
|
484
|
+
for (let a=0; a < ddd.length; a++) {
|
|
485
|
+
for (let p in node.pointsarray) {
|
|
486
|
+
if (node.pointsarray.hasOwnProperty(p)) {
|
|
487
|
+
if (node.pointsarray[p][0].layer === ddd[a]) {
|
|
488
|
+
delete node.pointsarray[p];
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
if (msg?.payload?.command?.clear) {
|
|
495
|
+
for (let p in node.pointsarray) {
|
|
468
496
|
if (node.pointsarray.hasOwnProperty(p)) {
|
|
469
497
|
if (node.pointsarray[p][0].layer === msg.payload.command.clear) {
|
|
470
498
|
delete node.pointsarray[p];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["env.js"],"names":[],"mappings":"AAaA,oDAAsE;AAEtE,gDAA8D;AAN9D,qDAA2E;AAE3E,iDAAmE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;+DAYkD,MAAM,UAAU,OAAO;;sBAFjD,OAAO,EAAE,KAAK,OAAO"}
|