node-red-contrib-web-worldmap 2.24.1 → 2.24.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
@@ -1,5 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v2.24.2 - Changes to drawing colours to be more visible.
3
4
  - v2.24.1 - Fix ellipse accuracy.
4
5
  - v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
5
6
  - v2.23.5 - Fix addtoheatmap. Issue #192
package/README.md CHANGED
@@ -11,6 +11,7 @@ map web page for plotting "things" on.
11
11
 
12
12
  ### Updates
13
13
 
14
+ - v2.24.2 - Changes to drawing colours to be more visible.
14
15
  - v2.24.1 - Fix ellipse accuracy
15
16
  - v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
16
17
  - v2.23.5 - Fix addtoheatmap. Issue #192
@@ -1,3 +1,8 @@
1
+ 3.1.1 / 2021-11-15
2
+ ==================
3
+
4
+ * Fix "thousandsSeparator" incorrecting formatting fractional part
5
+
1
6
  3.1.0 / 2019-01-22
2
7
  ==================
3
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM Version][npm-image]][npm-url]
4
4
  [![NPM Downloads][downloads-image]][downloads-url]
5
- [![Build Status][travis-image]][travis-url]
5
+ [![Build Status][ci-image]][ci-url]
6
6
  [![Test Coverage][coveralls-image]][coveralls-url]
7
7
 
8
8
  Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
@@ -23,6 +23,33 @@ $ npm install bytes
23
23
  var bytes = require('bytes');
24
24
  ```
25
25
 
26
+ #### bytes(number|string value, [options]): number|string|null
27
+
28
+ Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`.
29
+
30
+ **Arguments**
31
+
32
+ | Name | Type | Description |
33
+ |---------|----------|--------------------|
34
+ | value | `number`|`string` | Number value to format or string value to parse |
35
+ | options | `Object` | Conversion options for `format` |
36
+
37
+ **Returns**
38
+
39
+ | Name | Type | Description |
40
+ |---------|------------------|-------------------------------------------------|
41
+ | results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. |
42
+
43
+ **Example**
44
+
45
+ ```js
46
+ bytes(1024);
47
+ // output: '1KB'
48
+
49
+ bytes('1KB');
50
+ // output: 1024
51
+ ```
52
+
26
53
  #### bytes.format(number value, [options]): string|null
27
54
 
28
55
  Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
@@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k
41
68
  |-------------------|--------|-----------------------------------------------------------------------------------------|
42
69
  | decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
43
70
  | fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
44
- | thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `.`... Default value to `''`. |
71
+ | thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. |
45
72
  | unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
46
73
  | unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
47
74
 
@@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k
54
81
  **Example**
55
82
 
56
83
  ```js
57
- bytes(1024);
84
+ bytes.format(1024);
58
85
  // output: '1KB'
59
86
 
60
- bytes(1000);
87
+ bytes.format(1000);
61
88
  // output: '1000B'
62
89
 
63
- bytes(1000, {thousandsSeparator: ' '});
90
+ bytes.format(1000, {thousandsSeparator: ' '});
64
91
  // output: '1 000B'
65
92
 
66
- bytes(1024 * 1.7, {decimalPlaces: 0});
93
+ bytes.format(1024 * 1.7, {decimalPlaces: 0});
67
94
  // output: '2KB'
68
95
 
69
- bytes(1024, {unitSeparator: ' '});
96
+ bytes.format(1024, {unitSeparator: ' '});
70
97
  // output: '1 KB'
71
-
72
98
  ```
73
99
 
74
100
  #### bytes.parse(string|number value): number|null
@@ -102,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi
102
128
  **Example**
103
129
 
104
130
  ```js
105
- bytes('1KB');
131
+ bytes.parse('1KB');
106
132
  // output: 1024
107
133
 
108
- bytes('1024');
134
+ bytes.parse('1024');
109
135
  // output: 1024
110
136
 
111
- bytes(1024);
112
- // output: 1KB
137
+ bytes.parse(1024);
138
+ // output: 1024
113
139
  ```
114
140
 
115
- ## License
141
+ ## License
116
142
 
117
143
  [MIT](LICENSE)
118
144
 
145
+ [ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci
146
+ [ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci
119
147
  [coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
120
148
  [coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
121
149
  [downloads-image]: https://badgen.net/npm/dm/bytes
122
150
  [downloads-url]: https://npmjs.org/package/bytes
123
- [npm-image]: https://badgen.net/npm/node/bytes
151
+ [npm-image]: https://badgen.net/npm/v/bytes
124
152
  [npm-url]: https://npmjs.org/package/bytes
125
- [travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
126
- [travis-url]: https://travis-ci.org/visionmedia/bytes.js
@@ -117,7 +117,11 @@ function format(value, options) {
117
117
  }
118
118
 
119
119
  if (thousandsSeparator) {
120
- str = str.replace(formatThousandsRegExp, thousandsSeparator);
120
+ str = str.split('.').map(function (s, i) {
121
+ return i === 0
122
+ ? s.replace(formatThousandsRegExp, thousandsSeparator)
123
+ : s
124
+ }).join('.');
121
125
  }
122
126
 
123
127
  return str + unitSeparator + unit;
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "bytes@3.1.0",
5
- "/Users/conway/.node-red"
6
- ]
7
- ],
8
- "_from": "bytes@3.1.0",
9
- "_id": "bytes@3.1.0",
2
+ "_from": "bytes@3.1.1",
3
+ "_id": "bytes@3.1.1",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
5
+ "_integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",
12
6
  "_location": "/node-red-contrib-web-worldmap/body-parser/bytes",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
9
  "type": "version",
16
10
  "registry": true,
17
- "raw": "bytes@3.1.0",
11
+ "raw": "bytes@3.1.1",
18
12
  "name": "bytes",
19
13
  "escapedName": "bytes",
20
- "rawSpec": "3.1.0",
14
+ "rawSpec": "3.1.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "3.1.0"
16
+ "fetchSpec": "3.1.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/node-red-contrib-web-worldmap/body-parser"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
28
- "_spec": "3.1.0",
29
- "_where": "/Users/conway/.node-red",
21
+ "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",
22
+ "_shasum": "3f018291cb4cbad9accb6e6970bca9c8889e879a",
23
+ "_spec": "bytes@3.1.1",
24
+ "_where": "/Users/conway/Projects/worldmap/node_modules/body-parser",
30
25
  "author": {
31
26
  "name": "TJ Holowaychuk",
32
27
  "email": "tj@vision-media.ca",
@@ -35,6 +30,7 @@
35
30
  "bugs": {
36
31
  "url": "https://github.com/visionmedia/bytes.js/issues"
37
32
  },
33
+ "bundleDependencies": false,
38
34
  "contributors": [
39
35
  {
40
36
  "name": "Jed Watson",
@@ -45,11 +41,13 @@
45
41
  "email": "theo.fidry@gmail.com"
46
42
  }
47
43
  ],
44
+ "deprecated": false,
48
45
  "description": "Utility to parse a string bytes to bytes and vice-versa",
49
46
  "devDependencies": {
50
- "eslint": "5.12.1",
51
- "mocha": "5.2.0",
52
- "nyc": "13.1.0"
47
+ "eslint": "7.32.0",
48
+ "eslint-plugin-markdown": "2.2.1",
49
+ "mocha": "9.1.3",
50
+ "nyc": "15.1.0"
53
51
  },
54
52
  "engines": {
55
53
  "node": ">= 0.8"
@@ -79,8 +77,8 @@
79
77
  "scripts": {
80
78
  "lint": "eslint .",
81
79
  "test": "mocha --check-leaks --reporter spec",
82
- "test-ci": "nyc --reporter=text npm test",
80
+ "test-ci": "nyc --reporter=lcov --reporter=text npm test",
83
81
  "test-cov": "nyc --reporter=html --reporter=text npm test"
84
82
  },
85
- "version": "3.1.0"
83
+ "version": "3.1.1"
86
84
  }
@@ -1,3 +1,8 @@
1
+ 3.1.1 / 2021-11-15
2
+ ==================
3
+
4
+ * Fix "thousandsSeparator" incorrecting formatting fractional part
5
+
1
6
  3.1.0 / 2019-01-22
2
7
  ==================
3
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM Version][npm-image]][npm-url]
4
4
  [![NPM Downloads][downloads-image]][downloads-url]
5
- [![Build Status][travis-image]][travis-url]
5
+ [![Build Status][ci-image]][ci-url]
6
6
  [![Test Coverage][coveralls-image]][coveralls-url]
7
7
 
8
8
  Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
@@ -23,6 +23,33 @@ $ npm install bytes
23
23
  var bytes = require('bytes');
24
24
  ```
25
25
 
26
+ #### bytes(number|string value, [options]): number|string|null
27
+
28
+ Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`.
29
+
30
+ **Arguments**
31
+
32
+ | Name | Type | Description |
33
+ |---------|----------|--------------------|
34
+ | value | `number`|`string` | Number value to format or string value to parse |
35
+ | options | `Object` | Conversion options for `format` |
36
+
37
+ **Returns**
38
+
39
+ | Name | Type | Description |
40
+ |---------|------------------|-------------------------------------------------|
41
+ | results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. |
42
+
43
+ **Example**
44
+
45
+ ```js
46
+ bytes(1024);
47
+ // output: '1KB'
48
+
49
+ bytes('1KB');
50
+ // output: 1024
51
+ ```
52
+
26
53
  #### bytes.format(number value, [options]): string|null
27
54
 
28
55
  Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
@@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k
41
68
  |-------------------|--------|-----------------------------------------------------------------------------------------|
42
69
  | decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
43
70
  | fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
44
- | thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `.`... Default value to `''`. |
71
+ | thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. |
45
72
  | unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
46
73
  | unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
47
74
 
@@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k
54
81
  **Example**
55
82
 
56
83
  ```js
57
- bytes(1024);
84
+ bytes.format(1024);
58
85
  // output: '1KB'
59
86
 
60
- bytes(1000);
87
+ bytes.format(1000);
61
88
  // output: '1000B'
62
89
 
63
- bytes(1000, {thousandsSeparator: ' '});
90
+ bytes.format(1000, {thousandsSeparator: ' '});
64
91
  // output: '1 000B'
65
92
 
66
- bytes(1024 * 1.7, {decimalPlaces: 0});
93
+ bytes.format(1024 * 1.7, {decimalPlaces: 0});
67
94
  // output: '2KB'
68
95
 
69
- bytes(1024, {unitSeparator: ' '});
96
+ bytes.format(1024, {unitSeparator: ' '});
70
97
  // output: '1 KB'
71
-
72
98
  ```
73
99
 
74
100
  #### bytes.parse(string|number value): number|null
@@ -102,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi
102
128
  **Example**
103
129
 
104
130
  ```js
105
- bytes('1KB');
131
+ bytes.parse('1KB');
106
132
  // output: 1024
107
133
 
108
- bytes('1024');
134
+ bytes.parse('1024');
109
135
  // output: 1024
110
136
 
111
- bytes(1024);
112
- // output: 1KB
137
+ bytes.parse(1024);
138
+ // output: 1024
113
139
  ```
114
140
 
115
- ## License
141
+ ## License
116
142
 
117
143
  [MIT](LICENSE)
118
144
 
145
+ [ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci
146
+ [ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci
119
147
  [coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
120
148
  [coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
121
149
  [downloads-image]: https://badgen.net/npm/dm/bytes
122
150
  [downloads-url]: https://npmjs.org/package/bytes
123
- [npm-image]: https://badgen.net/npm/node/bytes
151
+ [npm-image]: https://badgen.net/npm/v/bytes
124
152
  [npm-url]: https://npmjs.org/package/bytes
125
- [travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
126
- [travis-url]: https://travis-ci.org/visionmedia/bytes.js
@@ -117,7 +117,11 @@ function format(value, options) {
117
117
  }
118
118
 
119
119
  if (thousandsSeparator) {
120
- str = str.replace(formatThousandsRegExp, thousandsSeparator);
120
+ str = str.split('.').map(function (s, i) {
121
+ return i === 0
122
+ ? s.replace(formatThousandsRegExp, thousandsSeparator)
123
+ : s
124
+ }).join('.');
121
125
  }
122
126
 
123
127
  return str + unitSeparator + unit;
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "bytes@3.1.0",
5
- "/Users/conway/.node-red"
6
- ]
7
- ],
8
- "_from": "bytes@3.1.0",
9
- "_id": "bytes@3.1.0",
2
+ "_from": "bytes@3.1.1",
3
+ "_id": "bytes@3.1.1",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
5
+ "_integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",
12
6
  "_location": "/node-red-contrib-web-worldmap/raw-body/bytes",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
9
  "type": "version",
16
10
  "registry": true,
17
- "raw": "bytes@3.1.0",
11
+ "raw": "bytes@3.1.1",
18
12
  "name": "bytes",
19
13
  "escapedName": "bytes",
20
- "rawSpec": "3.1.0",
14
+ "rawSpec": "3.1.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "3.1.0"
16
+ "fetchSpec": "3.1.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/node-red-contrib-web-worldmap/raw-body"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
28
- "_spec": "3.1.0",
29
- "_where": "/Users/conway/.node-red",
21
+ "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",
22
+ "_shasum": "3f018291cb4cbad9accb6e6970bca9c8889e879a",
23
+ "_spec": "bytes@3.1.1",
24
+ "_where": "/Users/conway/Projects/worldmap/node_modules/raw-body",
30
25
  "author": {
31
26
  "name": "TJ Holowaychuk",
32
27
  "email": "tj@vision-media.ca",
@@ -35,6 +30,7 @@
35
30
  "bugs": {
36
31
  "url": "https://github.com/visionmedia/bytes.js/issues"
37
32
  },
33
+ "bundleDependencies": false,
38
34
  "contributors": [
39
35
  {
40
36
  "name": "Jed Watson",
@@ -45,11 +41,13 @@
45
41
  "email": "theo.fidry@gmail.com"
46
42
  }
47
43
  ],
44
+ "deprecated": false,
48
45
  "description": "Utility to parse a string bytes to bytes and vice-versa",
49
46
  "devDependencies": {
50
- "eslint": "5.12.1",
51
- "mocha": "5.2.0",
52
- "nyc": "13.1.0"
47
+ "eslint": "7.32.0",
48
+ "eslint-plugin-markdown": "2.2.1",
49
+ "mocha": "9.1.3",
50
+ "nyc": "15.1.0"
53
51
  },
54
52
  "engines": {
55
53
  "node": ">= 0.8"
@@ -79,8 +77,8 @@
79
77
  "scripts": {
80
78
  "lint": "eslint .",
81
79
  "test": "mocha --check-leaks --reporter spec",
82
- "test-ci": "nyc --reporter=text npm test",
80
+ "test-ci": "nyc --reporter=lcov --reporter=text npm test",
83
81
  "test-cov": "nyc --reporter=html --reporter=text npm test"
84
82
  },
85
- "version": "3.1.0"
83
+ "version": "3.1.1"
86
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
@@ -207,12 +207,13 @@ a {
207
207
  transform-origin:0 100%;
208
208
  }
209
209
 
210
- .wm-red { color: #F56361; }
211
- .wm-blue { color: #96CCE1; }
212
- .wm-green { color: #ADD5A6; }
213
- .wm-yellow { color: #F5EF91; }
214
- .wm-black { color: #444444; }
210
+ .wm-red { color: #FF4040; }
211
+ .wm-blue { color: #4040F0; }
212
+ .wm-green { color: #40D040; }
213
+ .wm-yellow { color: #FFFF40; }
214
+ .wm-black { color: #333333; }
215
215
  .wm-white { color: #EEEEEE; }
216
+ .wm-magenta { color: #F020F0; }
216
217
 
217
218
  .legend {
218
219
  padding: 6px 8px;
@@ -565,8 +565,8 @@ map.on('overlayadd', function(e) {
565
565
  }
566
566
  if (e.name == "drawing") {
567
567
  overlays["drawing"].bringToFront();
568
- map.addControl(drawControl);
569
568
  map.addControl(colorControl);
569
+ map.addControl(drawControl);
570
570
  }
571
571
  ws.send(JSON.stringify({action:"addlayer", name:e.name}));
572
572
  });
@@ -579,8 +579,8 @@ map.on('overlayremove', function(e) {
579
579
  layers["_daynight"].clearLayers();
580
580
  }
581
581
  if (e.name == "drawing") {
582
- map.removeControl(colorControl);
583
582
  map.removeControl(drawControl);
583
+ map.removeControl(colorControl);
584
584
  }
585
585
  ws.send(JSON.stringify({action:"dellayer", name:e.name}));
586
586
  });
@@ -922,13 +922,14 @@ var addOverlays = function(overlist) {
922
922
  // Add the drawing layer...
923
923
  if (overlist.indexOf("DR")!==-1) {
924
924
  //var colorPickButton = L.easyButton({states:[{icon:'fa-tint fa-lg', onClick:function() { console.log("PICK"); }, title:'Pick Colour'}]});
925
- var redButton = L.easyButton('fa-square wm-red', function(btn) { changeDrawColour("#E7827F"); })
926
- var blueButton = L.easyButton('fa-square wm-blue', function(btn) { changeDrawColour("#94CCE2"); })
927
- var greenButton = L.easyButton('fa-square wm-green', function(btn) { changeDrawColour("#ACD6A4"); })
928
- var yellowButton = L.easyButton('fa-square wm-yellow', function(btn) { changeDrawColour("#F5F08B"); })
929
- var blackButton = L.easyButton('fa-square wm-black', function(btn) { changeDrawColour("#444444"); })
925
+ var redButton = L.easyButton('fa-square wm-red', function(btn) { changeDrawColour("#FF4040"); })
926
+ var blueButton = L.easyButton('fa-square wm-blue', function(btn) { changeDrawColour("#4040F0"); })
927
+ var greenButton = L.easyButton('fa-square wm-green', function(btn) { changeDrawColour("#40D040"); })
928
+ var yellowButton = L.easyButton('fa-square wm-yellow', function(btn) { changeDrawColour("#FFFF40"); })
929
+ var magentaButton = L.easyButton('fa-square wm-magenta', function(btn) { changeDrawColour("#F020F0"); })
930
+ var blackButton = L.easyButton('fa-square wm-black', function(btn) { changeDrawColour("#000000"); })
930
931
  var whiteButton = L.easyButton('fa-square wm-white', function(btn) { changeDrawColour("#EEEEEE"); })
931
- colorControl = L.easyBar([redButton,blueButton,greenButton,yellowButton,blackButton,whiteButton]);
932
+ colorControl = L.easyBar([redButton,blueButton,greenButton,yellowButton,magentaButton,blackButton,whiteButton]);
932
933
 
933
934
  layers["_drawing"] = new L.FeatureGroup();
934
935
  overlays["drawing"] = layers["_drawing"];
@@ -953,7 +954,7 @@ var addOverlays = function(overlist) {
953
954
  });
954
955
  var changeDrawColour = function(col) {
955
956
  drawingColour = col;
956
- console.log("COL",col)
957
+ console.log("COLOR",col)
957
958
  drawControl.setDrawingOptions({
958
959
  polyline: { shapeOptions: { color:drawingColour } },
959
960
  circle: { shapeOptions: { color:drawingColour } },
@@ -2085,7 +2086,7 @@ function setMarker(data) {
2085
2086
  function doCommand(cmd) {
2086
2087
  // console.log("COMMAND",cmd);
2087
2088
  if (cmd.init && cmd.hasOwnProperty("maplist")) {
2088
- basemaps = [];
2089
+ //basemaps = {};
2089
2090
  addBaseMaps(cmd.maplist,cmd.layer);
2090
2091
  }
2091
2092
  if (cmd.init && cmd.hasOwnProperty("overlist")) {