node-red-contrib-web-worldmap 2.23.3 → 2.24.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 +29 -1
- package/README.md +16 -24
- package/node_modules/body-parser/HISTORY.md +15 -0
- package/node_modules/body-parser/README.md +25 -12
- package/node_modules/body-parser/node_modules/bytes/package.json +4 -4
- package/node_modules/body-parser/package.json +34 -37
- package/node_modules/content-disposition/HISTORY.md +5 -0
- package/node_modules/content-disposition/README.md +3 -9
- package/node_modules/content-disposition/index.js +1 -1
- package/node_modules/content-disposition/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/content-disposition/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/content-disposition/package.json +27 -30
- package/node_modules/cookie/HISTORY.md +5 -0
- package/node_modules/cookie/README.md +4 -0
- package/node_modules/cookie/index.js +5 -1
- package/node_modules/cookie/package.json +22 -25
- package/node_modules/express/History.md +33 -0
- package/node_modules/express/Readme.md +8 -5
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +1 -1
- package/node_modules/express/lib/response.js +16 -11
- package/node_modules/express/lib/router/index.js +6 -0
- package/node_modules/express/lib/utils.js +2 -6
- package/node_modules/express/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/express/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/express/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/express/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/express/node_modules/safe-buffer/package.json +76 -0
- package/node_modules/express/package.json +37 -39
- package/node_modules/faye-websocket/CHANGELOG.md +5 -0
- package/node_modules/faye-websocket/LICENSE.md +1 -1
- package/node_modules/faye-websocket/README.md +13 -13
- package/node_modules/faye-websocket/lib/faye/websocket/api.js +10 -8
- package/node_modules/faye-websocket/lib/faye/websocket/client.js +4 -4
- package/node_modules/faye-websocket/lib/faye/websocket.js +1 -1
- package/node_modules/faye-websocket/package.json +16 -19
- package/node_modules/forwarded/HISTORY.md +5 -0
- package/node_modules/forwarded/README.md +3 -3
- package/node_modules/forwarded/index.js +15 -1
- package/node_modules/forwarded/package.json +27 -28
- package/node_modules/http-errors/HISTORY.md +16 -0
- package/node_modules/http-errors/README.md +12 -6
- package/node_modules/http-errors/index.js +35 -2
- package/node_modules/http-errors/package.json +32 -35
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +17 -20
- package/node_modules/ipaddr.js/README.md +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +6 -9
- package/node_modules/ipaddr.js/package.json +17 -19
- package/node_modules/proxy-addr/HISTORY.md +11 -0
- package/node_modules/proxy-addr/README.md +3 -19
- package/node_modules/proxy-addr/index.js +1 -1
- package/node_modules/proxy-addr/package.json +30 -33
- package/node_modules/qs/.editorconfig +9 -0
- package/node_modules/qs/.eslintignore +2 -1
- package/node_modules/qs/.eslintrc +15 -1
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +103 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +34 -0
- package/node_modules/qs/dist/qs.js +117 -67
- package/node_modules/qs/lib/formats.js +9 -4
- package/node_modules/qs/lib/parse.js +29 -14
- package/node_modules/qs/lib/stringify.js +55 -46
- package/node_modules/qs/lib/utils.js +23 -2
- package/node_modules/qs/package.json +42 -34
- package/node_modules/qs/test/parse.js +97 -1
- package/node_modules/qs/test/stringify.js +115 -1
- package/node_modules/qs/test/utils.js +1 -1
- package/node_modules/raw-body/HISTORY.md +14 -0
- package/node_modules/raw-body/README.md +3 -5
- package/node_modules/raw-body/node_modules/bytes/package.json +4 -4
- package/node_modules/raw-body/package.json +32 -35
- package/node_modules/send/HISTORY.md +10 -0
- package/node_modules/send/README.md +4 -6
- package/node_modules/send/index.js +7 -3
- package/node_modules/send/node_modules/ms/index.js +3 -3
- package/node_modules/send/node_modules/ms/license.md +1 -1
- package/node_modules/send/node_modules/ms/package.json +21 -23
- package/node_modules/send/node_modules/ms/readme.md +1 -2
- package/node_modules/send/package.json +31 -34
- package/node_modules/serve-static/HISTORY.md +8 -0
- package/node_modules/serve-static/README.md +9 -11
- package/node_modules/serve-static/package.json +30 -33
- package/node_modules/setprototypeof/README.md +1 -1
- package/node_modules/setprototypeof/index.js +1 -1
- package/node_modules/setprototypeof/package.json +20 -21
- package/node_modules/sockjs/Changelog +12 -0
- package/node_modules/sockjs/lib/transport.js +1 -1
- package/node_modules/sockjs/package.json +16 -19
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/README.md +3 -3
- package/node_modules/toidentifier/index.js +2 -0
- package/node_modules/toidentifier/package.json +30 -29
- package/node_modules/uuid/CHANGELOG.md +154 -44
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +4 -16
- package/node_modules/uuid/README.md +384 -155
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/{lib/md5-browser.js → dist/esm-browser/md5.js} +70 -71
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/{v1.js → dist/esm-browser/v1.js} +36 -50
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +118 -57
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +4 -4
- package/package.json +3 -3
- package/worldmap/index.html +1 -0
- package/worldmap/leaflet/leaflet-arc.min.js +1 -0
- package/worldmap/worldmap.js +49 -26
- package/worldmap.html +1 -1
- package/worldmap.js +2 -2
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -17
- package/node_modules/qs/test/index.js +0 -7
- package/node_modules/uuid/AUTHORS +0 -5
- package/node_modules/uuid/bin/uuid +0 -65
- package/node_modules/uuid/index.js +0 -8
- package/node_modules/uuid/lib/bytesToUuid.js +0 -26
- package/node_modules/uuid/lib/md5.js +0 -25
- package/node_modules/uuid/lib/rng-browser.js +0 -34
- package/node_modules/uuid/lib/rng.js +0 -8
- package/node_modules/uuid/lib/sha1-browser.js +0 -89
- package/node_modules/uuid/lib/sha1.js +0 -25
- package/node_modules/uuid/lib/v35.js +0 -57
- package/node_modules/uuid/v3.js +0 -4
- package/node_modules/uuid/v4.js +0 -29
- package/node_modules/uuid/v5.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
-
- v2.
|
|
3
|
+
- v2.24.1 - Fix ellipse accuracy.
|
|
4
|
+
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
5
|
+
- v2.23.5 - Fix addtoheatmap. Issue #192
|
|
6
|
+
- v2.23.4 - Fix opacity of area borders
|
|
7
|
+
- v2.23.3 - Fix initial load of maps
|
|
4
8
|
- v2.23.2 - Add convex-hull example
|
|
5
9
|
- v2.23.1 - Fix saving of custom map layer
|
|
6
10
|
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.
|
|
11
|
+
|
|
7
12
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
8
13
|
- v2.22.2 - Be more tolerant of speed string types
|
|
9
14
|
- v2.22.0 - Separate out layer events in worldmap in
|
|
15
|
+
|
|
10
16
|
- v2.21.9 - Unbreak Drawing layer that I must have broken recently
|
|
11
17
|
- v2.21.8 - Let SIDC/icon short code be only 4 chars long
|
|
12
18
|
- v2.21.5 - Fix handling of "old" ship nav to ship navigation
|
|
@@ -15,34 +21,47 @@
|
|
|
15
21
|
- v2.21.2 - Expand ship nav to ship navigation.
|
|
16
22
|
- v2.21.1 - Fix ui check callback to not use .
|
|
17
23
|
- v2.21.0 - Let config panel select maps to show, default map and choice of overlays.
|
|
24
|
+
|
|
18
25
|
- v2.20.0 - Add support of .pbf map layers. Issue #123.
|
|
26
|
+
|
|
19
27
|
- v2.19.0 - Bump leaflet to latest. v1.7
|
|
28
|
+
|
|
20
29
|
- v2.18.1 - Let fillOpacity be 0.
|
|
21
30
|
- v2.18.0 - Add bounds event onzoom or drag.
|
|
31
|
+
|
|
22
32
|
- v2.17.3 - Yet more better feedback on clicks, moves.
|
|
23
33
|
- v2.17.2 - Add smallplane icon.
|
|
24
34
|
- v2.17.1 - More complete feedback on click, better popup image sizing.
|
|
35
|
+
|
|
25
36
|
- v2.16.3 - Ensure polygons can be deleted.
|
|
26
37
|
- v2.16.2 - Better handling of unpacked kmz objects.
|
|
27
38
|
- v2.16.0 - Allow specifying custom base map server.
|
|
39
|
+
|
|
28
40
|
- v2.15.8 - Adjust ui check timing for UI worldmap.
|
|
29
41
|
- v2.15.7 - Tidy up geoJson handling a bit more.
|
|
30
42
|
- v2.15.5 - Fix SIDC icons to accept unicoded icons as labels.
|
|
31
43
|
- v2.15.4 - Let clear heatmap command do what it says.
|
|
32
44
|
- v2.15.3 - Fix panit command to work, try to use alt units, popup alignments.
|
|
33
45
|
- v2.15.0 - Let speed be text and specify units if required (kt,kn,knots,mph,kmh,kph) default m/s.
|
|
46
|
+
|
|
34
47
|
- v2.14.0 - Let geojson features be clickable if added as overlay.
|
|
48
|
+
|
|
35
49
|
- v2.13.4 - Fix list of map choices to be in sync. Fix popup auto sizing.
|
|
36
50
|
- v2.13.3 - Fix unchanged layer propagation.
|
|
37
51
|
- v2.13.2 - Add mayflower icon.
|
|
38
52
|
- v2.13.0 - Tidy velocity layer. Feedback any url parameters.
|
|
53
|
+
|
|
39
54
|
- v2.12.1 - Only show online layer options if we are online.
|
|
40
55
|
- v2.12.0 - Add live rainfall radar data layer. Remove some non-loading overlays.
|
|
56
|
+
|
|
41
57
|
- v2.11.2 - Allow thicknesss of arc to be specified by weight
|
|
42
58
|
- v2.11.1 - Better handle KML point info - add popup.
|
|
43
59
|
- v2.11.0 - Add option to smooth tracks using bezier curves.
|
|
60
|
+
|
|
44
61
|
- v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels.
|
|
62
|
+
|
|
45
63
|
- v2.9.0 - Let weblinks be an array of links. Add more info to readme about Mapservers.
|
|
64
|
+
|
|
46
65
|
- v2.8.9 - Only load cgi module if we have a local mapserv file
|
|
47
66
|
- v2.8.8 - Change length of speed leader to show where you will be in 1 min if speed in m/s
|
|
48
67
|
- v2.8.7 - Delay start of ui widget.
|
|
@@ -52,10 +71,13 @@
|
|
|
52
71
|
- v2.8.2 - Improve direction handling of 3d objects.
|
|
53
72
|
- v2.8.1 - Fix old tracks re-appearing afer hide/show. Issue #135
|
|
54
73
|
- v2.8.0 - Align vector with `track`, prioritise hdg and heading over bearing. Add old location to move action.
|
|
74
|
+
|
|
55
75
|
- v2.7.1 - Also allow geojson files to be dropped, and better png handling
|
|
56
76
|
- v2.7.0 - Allow track and image files to be dragged onto the map, if enabled
|
|
77
|
+
|
|
57
78
|
- v2.6.1 - Better fit for worldmap when in ui_template
|
|
58
79
|
- v2.6.0 - Add route capability to draw line when online
|
|
80
|
+
|
|
59
81
|
- v2.5.9 - Fix handling of multiple hulls, tidy contextmenu handling
|
|
60
82
|
- v2.5.8 - Let node name be the full page map title
|
|
61
83
|
- v2.5.7 - Let fillColor set color of hulls
|
|
@@ -66,8 +88,10 @@
|
|
|
66
88
|
- v2.5.2 - Add boolean parameter to feedback call to allow auto close of popup on click. Set Esc key to close all open popups. Issue #146
|
|
67
89
|
- v2.5.1 - Add lat, lng and layer to feedback function.
|
|
68
90
|
- v2.5.0 - Add minimap capability.
|
|
91
|
+
|
|
69
92
|
- v2.4.2 - Fix editing injected shapes.
|
|
70
93
|
- v2.4.1 - Add convex-hull node for grouping objects.
|
|
94
|
+
|
|
71
95
|
- v2.3.16 - Add heading to default addMarker, allow custom http icon size.
|
|
72
96
|
- v2.3.13 - Fix geoson feature properties fill color, and better marker handling
|
|
73
97
|
- v2.3.11 - Better editing of drawing layer, add OpenTopoMap, and better Esri satellite
|
|
@@ -81,8 +105,10 @@
|
|
|
81
105
|
- v2.3.2 - Add better geojson support - name plus geojson properties
|
|
82
106
|
- v2.3.1 - Stop adding point when you add a circle
|
|
83
107
|
- v2.3.0 - Add colour options for drawing layer
|
|
108
|
+
|
|
84
109
|
- v2.2.1 - Better implementation of legend create/show/hide
|
|
85
110
|
- v2.2.0 - Add range rings and arcs function
|
|
111
|
+
|
|
86
112
|
- v2.1.6 - Add legend command to allow inserting an html legend
|
|
87
113
|
- v2.1.5 - Fix squawk icon color handling
|
|
88
114
|
- v2.1.4 - Fix alt and speed as strings
|
|
@@ -90,6 +116,7 @@
|
|
|
90
116
|
- v2.1.2 - Fix layercontrol remove bug. Issue #116
|
|
91
117
|
- v2.1.1 - Fix bug in repeated add with polygon
|
|
92
118
|
- v2.1.0 - Add ui-worldmap node to make embedding in Dashboard easier. Let -in node specify connection actions only.
|
|
119
|
+
|
|
93
120
|
- v2.0.22 - fix SIDC missing property
|
|
94
121
|
- v2.0.21 - allow adding overlays without making them visible (visible:false). Issue #108
|
|
95
122
|
- v2.0.20 - ensure `fit` option is boolean, Issue #109. Fix track layers, Issue #110.
|
|
@@ -108,6 +135,7 @@
|
|
|
108
135
|
- v2.0.2-beta - Let lines and areas also have popups
|
|
109
136
|
- v2.0.1-beta - Add optional graticule.
|
|
110
137
|
- v2.0.0-beta - Move to leaflet 1.4.x plus all plugins updated
|
|
138
|
+
|
|
111
139
|
- v1.5.40 - Only enable on.location function when not in an iframe. Issue #89. Tidy html.
|
|
112
140
|
- v1.5.39 - Add weather-lite icons
|
|
113
141
|
- v1.5.38 - Add Esri dark grey and ocean, re-add hikebike, layers
|
package/README.md
CHANGED
|
@@ -11,32 +11,17 @@ map web page for plotting "things" on.
|
|
|
11
11
|
|
|
12
12
|
### Updates
|
|
13
13
|
|
|
14
|
-
- v2.
|
|
14
|
+
- v2.24.1 - Fix ellipse accuracy
|
|
15
|
+
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
16
|
+
- v2.23.5 - Fix addtoheatmap. Issue #192
|
|
17
|
+
- v2.23.4 - Fix opacity of area borders
|
|
18
|
+
- v2.23.3 - Fix initial load of maps
|
|
15
19
|
- v2.23.2 - Add convex-hull example
|
|
16
20
|
- v2.23.1 - Fix saving of custom map layer
|
|
17
21
|
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.
|
|
18
22
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
19
23
|
- v2.22.2 - Be more tolerant of speed string types
|
|
20
24
|
- v2.22.0 - Separate out layer events in worldmap in
|
|
21
|
-
- v2.21.9 - Unbreak Drawing layer that I must have broken recently
|
|
22
|
-
- v2.21.8 - Let SIDC/icon short code be only 4 chars long
|
|
23
|
-
- v2.21.5 - Fix handling of "old" ship nav to ship navigation
|
|
24
|
-
- v2.21.4 - Fix speed leader length. Add transparentPixels option..
|
|
25
|
-
- v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels.
|
|
26
|
-
- v2.21.2 - Expand ship nav to ship navigation.
|
|
27
|
-
- v2.21.1 - Fix ui check callback to not use .
|
|
28
|
-
- v2.21.0 - Let config panel select maps to show, default map and choice of overlays.
|
|
29
|
-
- v2.20.0 - Add support of .pbf map layers. Issue 123.
|
|
30
|
-
- v2.19.1 - Add filter for bounds events only.
|
|
31
|
-
- v2.19.0 - Bump leaflet to latest. v1.7
|
|
32
|
-
- v2.18.1 - Let fillOpacity be 0.
|
|
33
|
-
- v2.18.0 - Add bounds event onzoom or drag.
|
|
34
|
-
- v2.17.3 - Yet more better feedback on clicks, moves.
|
|
35
|
-
- v2.17.2 - Add smallplane icon.
|
|
36
|
-
- v2.17.1 - More complete feedback on click, better popup image sizing.
|
|
37
|
-
- v2.16.3 - Ensure polygons can be deleted.
|
|
38
|
-
- v2.16.2 - Better handling of unpacked kmz objects.
|
|
39
|
-
- v2.16.0 - Allow specifying custom base map server.
|
|
40
25
|
|
|
41
26
|
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes.
|
|
42
27
|
|
|
@@ -135,7 +120,7 @@ SIDC codes can be generated using the online tool - https://spatialillusions.com
|
|
|
135
120
|
|
|
136
121
|
There are lots of extra options you can specify as `msg.payload.options` - see the <a href="https://spatialillusions.com/milsymbol/documentation.html" target="mapinfo">milsymbol docs here</a>.
|
|
137
122
|
|
|
138
|
-
### Areas, Lines and
|
|
123
|
+
### Areas, Rectangles, Lines, and GreatCircles
|
|
139
124
|
|
|
140
125
|
If the msg.payload contains an **area** property - that is an array of co-ordinates, e.g.
|
|
141
126
|
|
|
@@ -145,6 +130,12 @@ then rather than draw a point and icon it draws the polygon. If the "area" array
|
|
|
145
130
|
elements, then it assumes this is a bounding box for a rectangle and draws a rectangle.
|
|
146
131
|
|
|
147
132
|
Likewise if it contains a **line** property it will draw the polyline.
|
|
133
|
+
If the payload also includes a property `fit:true` the map will zoom to fit the line or area.
|
|
134
|
+
|
|
135
|
+
Finally if a **greatcircle** property is set containing an array of two coordinates then an arc
|
|
136
|
+
following the great circle between the two co-ordinates is plotted.
|
|
137
|
+
|
|
138
|
+
msg.payload = {name:"GC1", color:"#ff00ff", greatcircle:[ [51.464,0], [25.76,-80.18] ] }
|
|
148
139
|
|
|
149
140
|
There are extra optional properties you can specify - see Options below.
|
|
150
141
|
|
|
@@ -248,14 +239,15 @@ Areas, Rectangles, Lines, Circles and Ellipses can also specify more optional pr
|
|
|
248
239
|
|
|
249
240
|
- **layer** : declares which layer you put it on.
|
|
250
241
|
- **color** : can set the colour of the polygon or line.
|
|
242
|
+
- **opacity** : the opacity of the line or outline.
|
|
251
243
|
- **fillColor** : can set the fill colour of the polygon.
|
|
252
244
|
- **fillOpacity** : can set the opacity of the polygon fill colour.
|
|
253
245
|
- **dashArray** : optional dash array for polyline.
|
|
254
246
|
- **clickable** : boolean - set to true to allow click to show popup.
|
|
255
247
|
- **popup** : html string to display in popup (as well as name).
|
|
256
|
-
- **editable** : boolean - set to true to allow simple edit/delete right click contextmenu
|
|
257
|
-
- **contextmenu** : html string to display a more complex right click contextmenu
|
|
258
|
-
- **weight** : the width of the line
|
|
248
|
+
- **editable** : boolean - set to true to allow simple edit/delete right click contextmenu.
|
|
249
|
+
- **contextmenu** : html string to display a more complex right click contextmenu.
|
|
250
|
+
- **weight** : the width of the line or outline.
|
|
259
251
|
|
|
260
252
|
Other properties can be found in the leaflet documentation.
|
|
261
253
|
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
1.19.1 / 2021-12-10
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* deps: bytes@3.1.1
|
|
5
|
+
* deps: http-errors@1.8.1
|
|
6
|
+
- deps: inherits@2.0.4
|
|
7
|
+
- deps: toidentifier@1.0.1
|
|
8
|
+
- deps: setprototypeof@1.2.0
|
|
9
|
+
* deps: qs@6.9.6
|
|
10
|
+
* deps: raw-body@2.4.2
|
|
11
|
+
- deps: bytes@3.1.1
|
|
12
|
+
- deps: http-errors@1.8.1
|
|
13
|
+
* deps: safe-buffer@5.2.1
|
|
14
|
+
* deps: type-is@~1.6.18
|
|
15
|
+
|
|
1
16
|
1.19.0 / 2019-04-25
|
|
2
17
|
===================
|
|
3
18
|
|
|
@@ -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][
|
|
5
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
6
6
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
7
|
|
|
8
8
|
Node.js body parsing middleware.
|
|
@@ -49,8 +49,6 @@ $ npm install body-parser
|
|
|
49
49
|
|
|
50
50
|
## API
|
|
51
51
|
|
|
52
|
-
<!-- eslint-disable no-unused-vars -->
|
|
53
|
-
|
|
54
52
|
```js
|
|
55
53
|
var bodyParser = require('body-parser')
|
|
56
54
|
```
|
|
@@ -281,14 +279,15 @@ encoding of the request. The parsing can be aborted by throwing an error.
|
|
|
281
279
|
|
|
282
280
|
## Errors
|
|
283
281
|
|
|
284
|
-
The middlewares provided by this module create errors
|
|
285
|
-
|
|
286
|
-
property that contains the suggested
|
|
287
|
-
|
|
288
|
-
`type` property to determine the type of
|
|
289
|
-
`message`, and a `body` property containing
|
|
282
|
+
The middlewares provided by this module create errors using the
|
|
283
|
+
[`http-errors` module](https://www.npmjs.com/package/http-errors). The errors
|
|
284
|
+
will typically have a `status`/`statusCode` property that contains the suggested
|
|
285
|
+
HTTP response code, an `expose` property to determine if the `message` property
|
|
286
|
+
should be displayed to the client, a `type` property to determine the type of
|
|
287
|
+
error without matching against the `message`, and a `body` property containing
|
|
288
|
+
the read body, if available.
|
|
290
289
|
|
|
291
|
-
The following are the common errors
|
|
290
|
+
The following are the common errors created, though any error can come through
|
|
292
291
|
for various reasons.
|
|
293
292
|
|
|
294
293
|
### content encoding unsupported
|
|
@@ -299,6 +298,20 @@ contained an encoding but the "inflation" option was set to `false`. The
|
|
|
299
298
|
`'encoding.unsupported'`, and the `charset` property will be set to the
|
|
300
299
|
encoding that is unsupported.
|
|
301
300
|
|
|
301
|
+
### entity parse failed
|
|
302
|
+
|
|
303
|
+
This error will occur when the request contained an entity that could not be
|
|
304
|
+
parsed by the middleware. The `status` property is set to `400`, the `type`
|
|
305
|
+
property is set to `'entity.parse.failed'`, and the `body` property is set to
|
|
306
|
+
the entity value that failed parsing.
|
|
307
|
+
|
|
308
|
+
### entity verify failed
|
|
309
|
+
|
|
310
|
+
This error will occur when the request contained an entity that could not be
|
|
311
|
+
failed verification by the defined `verify` option. The `status` property is
|
|
312
|
+
set to `403`, the `type` property is set to `'entity.verify.failed'`, and the
|
|
313
|
+
`body` property is set to the entity value that failed verification.
|
|
314
|
+
|
|
302
315
|
### request aborted
|
|
303
316
|
|
|
304
317
|
This error will occur when the request is aborted by the client before reading
|
|
@@ -435,9 +448,9 @@ app.use(bodyParser.text({ type: 'text/html' }))
|
|
|
435
448
|
|
|
436
449
|
[npm-image]: https://img.shields.io/npm/v/body-parser.svg
|
|
437
450
|
[npm-url]: https://npmjs.org/package/body-parser
|
|
438
|
-
[travis-image]: https://img.shields.io/travis/expressjs/body-parser/master.svg
|
|
439
|
-
[travis-url]: https://travis-ci.org/expressjs/body-parser
|
|
440
451
|
[coveralls-image]: https://img.shields.io/coveralls/expressjs/body-parser/master.svg
|
|
441
452
|
[coveralls-url]: https://coveralls.io/r/expressjs/body-parser?branch=master
|
|
442
453
|
[downloads-image]: https://img.shields.io/npm/dm/body-parser.svg
|
|
443
454
|
[downloads-url]: https://npmjs.org/package/body-parser
|
|
455
|
+
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/expressjs/body-parser/ci/master?label=ci
|
|
456
|
+
[github-actions-ci-url]: https://github.com/expressjs/body-parser?query=workflow%3Aci
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"_args": [
|
|
3
3
|
[
|
|
4
4
|
"bytes@3.1.0",
|
|
5
|
-
"/Users/conway
|
|
5
|
+
"/Users/conway/.node-red"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
8
|
"_from": "bytes@3.1.0",
|
|
9
9
|
"_id": "bytes@3.1.0",
|
|
10
10
|
"_inBundle": false,
|
|
11
11
|
"_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
|
|
12
|
-
"_location": "/body-parser/bytes",
|
|
12
|
+
"_location": "/node-red-contrib-web-worldmap/body-parser/bytes",
|
|
13
13
|
"_phantomChildren": {},
|
|
14
14
|
"_requested": {
|
|
15
15
|
"type": "version",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"fetchSpec": "3.1.0"
|
|
23
23
|
},
|
|
24
24
|
"_requiredBy": [
|
|
25
|
-
"/body-parser"
|
|
25
|
+
"/node-red-contrib-web-worldmap/body-parser"
|
|
26
26
|
],
|
|
27
27
|
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
|
|
28
28
|
"_spec": "3.1.0",
|
|
29
|
-
"_where": "/Users/conway
|
|
29
|
+
"_where": "/Users/conway/.node-red",
|
|
30
30
|
"author": {
|
|
31
31
|
"name": "TJ Holowaychuk",
|
|
32
32
|
"email": "tj@vision-media.ca",
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"body-parser@1.19.0",
|
|
5
|
-
"/Users/conway/Projects/worldmap"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "body-parser@1.19.0",
|
|
9
|
-
"_id": "body-parser@1.19.0",
|
|
2
|
+
"_from": "body-parser@1.19.1",
|
|
3
|
+
"_id": "body-parser@1.19.1",
|
|
10
4
|
"_inBundle": false,
|
|
11
|
-
"_integrity": "sha512-
|
|
12
|
-
"_location": "/body-parser",
|
|
5
|
+
"_integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==",
|
|
6
|
+
"_location": "/node-red-contrib-web-worldmap/body-parser",
|
|
13
7
|
"_phantomChildren": {},
|
|
14
8
|
"_requested": {
|
|
15
9
|
"type": "version",
|
|
16
10
|
"registry": true,
|
|
17
|
-
"raw": "body-parser@1.19.
|
|
11
|
+
"raw": "body-parser@1.19.1",
|
|
18
12
|
"name": "body-parser",
|
|
19
13
|
"escapedName": "body-parser",
|
|
20
|
-
"rawSpec": "1.19.
|
|
14
|
+
"rawSpec": "1.19.1",
|
|
21
15
|
"saveSpec": null,
|
|
22
|
-
"fetchSpec": "1.19.
|
|
16
|
+
"fetchSpec": "1.19.1"
|
|
23
17
|
},
|
|
24
18
|
"_requiredBy": [
|
|
25
|
-
"/express"
|
|
19
|
+
"/node-red-contrib-web-worldmap/express"
|
|
26
20
|
],
|
|
27
|
-
"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz",
|
|
22
|
+
"_shasum": "1499abbaa9274af3ecc9f6f10396c995943e31d4",
|
|
23
|
+
"_spec": "body-parser@1.19.1",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/express",
|
|
30
25
|
"bugs": {
|
|
31
26
|
"url": "https://github.com/expressjs/body-parser/issues"
|
|
32
27
|
},
|
|
28
|
+
"bundleDependencies": false,
|
|
33
29
|
"contributors": [
|
|
34
30
|
{
|
|
35
31
|
"name": "Douglas Christopher Wilson",
|
|
@@ -42,31 +38,32 @@
|
|
|
42
38
|
}
|
|
43
39
|
],
|
|
44
40
|
"dependencies": {
|
|
45
|
-
"bytes": "3.1.
|
|
41
|
+
"bytes": "3.1.1",
|
|
46
42
|
"content-type": "~1.0.4",
|
|
47
43
|
"debug": "2.6.9",
|
|
48
44
|
"depd": "~1.1.2",
|
|
49
|
-
"http-errors": "1.
|
|
45
|
+
"http-errors": "1.8.1",
|
|
50
46
|
"iconv-lite": "0.4.24",
|
|
51
47
|
"on-finished": "~2.3.0",
|
|
52
|
-
"qs": "6.
|
|
53
|
-
"raw-body": "2.4.
|
|
54
|
-
"type-is": "~1.6.
|
|
48
|
+
"qs": "6.9.6",
|
|
49
|
+
"raw-body": "2.4.2",
|
|
50
|
+
"type-is": "~1.6.18"
|
|
55
51
|
},
|
|
52
|
+
"deprecated": false,
|
|
56
53
|
"description": "Node.js body parsing middleware",
|
|
57
54
|
"devDependencies": {
|
|
58
|
-
"eslint": "
|
|
59
|
-
"eslint-config-standard": "
|
|
60
|
-
"eslint-plugin-import": "2.
|
|
61
|
-
"eslint-plugin-markdown": "
|
|
62
|
-
"eslint-plugin-node": "
|
|
63
|
-
"eslint-plugin-promise": "
|
|
64
|
-
"eslint-plugin-standard": "4.
|
|
65
|
-
"istanbul": "0.4.5",
|
|
55
|
+
"eslint": "7.32.0",
|
|
56
|
+
"eslint-config-standard": "14.1.1",
|
|
57
|
+
"eslint-plugin-import": "2.25.3",
|
|
58
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
59
|
+
"eslint-plugin-node": "11.1.0",
|
|
60
|
+
"eslint-plugin-promise": "5.2.0",
|
|
61
|
+
"eslint-plugin-standard": "4.1.0",
|
|
66
62
|
"methods": "1.1.2",
|
|
67
|
-
"mocha": "
|
|
68
|
-
"
|
|
69
|
-
"
|
|
63
|
+
"mocha": "9.1.3",
|
|
64
|
+
"nyc": "15.1.0",
|
|
65
|
+
"safe-buffer": "5.2.1",
|
|
66
|
+
"supertest": "6.1.6"
|
|
70
67
|
},
|
|
71
68
|
"engines": {
|
|
72
69
|
"node": ">= 0.8"
|
|
@@ -85,10 +82,10 @@
|
|
|
85
82
|
"url": "git+https://github.com/expressjs/body-parser.git"
|
|
86
83
|
},
|
|
87
84
|
"scripts": {
|
|
88
|
-
"lint": "eslint
|
|
85
|
+
"lint": "eslint .",
|
|
89
86
|
"test": "mocha --require test/support/env --reporter spec --check-leaks --bail test/",
|
|
90
|
-
"test-
|
|
91
|
-
"test-
|
|
87
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
88
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
92
89
|
},
|
|
93
|
-
"version": "1.19.
|
|
90
|
+
"version": "1.19.1"
|
|
94
91
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
5
|
[![Node.js Version][node-version-image]][node-version-url]
|
|
6
|
-
[![Build Status][
|
|
6
|
+
[![Build Status][github-actions-ci-image]][github-actions-ci-url]
|
|
7
7
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
8
|
|
|
9
9
|
Create and parse HTTP `Content-Disposition` header
|
|
@@ -16,8 +16,6 @@ $ npm install content-disposition
|
|
|
16
16
|
|
|
17
17
|
## API
|
|
18
18
|
|
|
19
|
-
<!-- eslint-disable no-unused-vars -->
|
|
20
|
-
|
|
21
19
|
```js
|
|
22
20
|
var contentDisposition = require('content-disposition')
|
|
23
21
|
```
|
|
@@ -28,8 +26,6 @@ Create an attachment `Content-Disposition` header value using the given file nam
|
|
|
28
26
|
if supplied. The `filename` is optional and if no file name is desired, but you
|
|
29
27
|
want to specify `options`, set `filename` to `undefined`.
|
|
30
28
|
|
|
31
|
-
<!-- eslint-disable no-undef -->
|
|
32
|
-
|
|
33
29
|
```js
|
|
34
30
|
res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf'))
|
|
35
31
|
```
|
|
@@ -70,8 +66,6 @@ it). The type is normalized to lower-case.
|
|
|
70
66
|
|
|
71
67
|
### contentDisposition.parse(string)
|
|
72
68
|
|
|
73
|
-
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
74
|
-
|
|
75
69
|
```js
|
|
76
70
|
var disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
|
|
77
71
|
```
|
|
@@ -140,9 +134,9 @@ $ npm test
|
|
|
140
134
|
[npm-url]: https://npmjs.org/package/content-disposition
|
|
141
135
|
[node-version-image]: https://img.shields.io/node/v/content-disposition.svg
|
|
142
136
|
[node-version-url]: https://nodejs.org/en/download
|
|
143
|
-
[travis-image]: https://img.shields.io/travis/jshttp/content-disposition.svg
|
|
144
|
-
[travis-url]: https://travis-ci.org/jshttp/content-disposition
|
|
145
137
|
[coveralls-image]: https://img.shields.io/coveralls/jshttp/content-disposition.svg
|
|
146
138
|
[coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master
|
|
147
139
|
[downloads-image]: https://img.shields.io/npm/dm/content-disposition.svg
|
|
148
140
|
[downloads-url]: https://npmjs.org/package/content-disposition
|
|
141
|
+
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/content-disposition/ci/master?label=ci
|
|
142
|
+
[github-actions-ci-url]: https://github.com/jshttp/content-disposition?query=workflow%3Aci
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Feross Aboukhadijeh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|