node-red-contrib-web-worldmap 2.23.3 → 2.23.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 +26 -1
- package/README.md +2 -20
- package/package.json +1 -1
- package/worldmap/worldmap.js +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
-
- v2.23.
|
|
3
|
+
- v2.23.4 - Fix opacity of area borders
|
|
4
|
+
- v2.23.3 - Fix initial load of maps
|
|
4
5
|
- v2.23.2 - Add convex-hull example
|
|
5
6
|
- v2.23.1 - Fix saving of custom map layer
|
|
6
7
|
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.
|
|
8
|
+
|
|
7
9
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
8
10
|
- v2.22.2 - Be more tolerant of speed string types
|
|
9
11
|
- v2.22.0 - Separate out layer events in worldmap in
|
|
12
|
+
|
|
10
13
|
- v2.21.9 - Unbreak Drawing layer that I must have broken recently
|
|
11
14
|
- v2.21.8 - Let SIDC/icon short code be only 4 chars long
|
|
12
15
|
- v2.21.5 - Fix handling of "old" ship nav to ship navigation
|
|
@@ -15,34 +18,47 @@
|
|
|
15
18
|
- v2.21.2 - Expand ship nav to ship navigation.
|
|
16
19
|
- v2.21.1 - Fix ui check callback to not use .
|
|
17
20
|
- v2.21.0 - Let config panel select maps to show, default map and choice of overlays.
|
|
21
|
+
|
|
18
22
|
- v2.20.0 - Add support of .pbf map layers. Issue #123.
|
|
23
|
+
|
|
19
24
|
- v2.19.0 - Bump leaflet to latest. v1.7
|
|
25
|
+
|
|
20
26
|
- v2.18.1 - Let fillOpacity be 0.
|
|
21
27
|
- v2.18.0 - Add bounds event onzoom or drag.
|
|
28
|
+
|
|
22
29
|
- v2.17.3 - Yet more better feedback on clicks, moves.
|
|
23
30
|
- v2.17.2 - Add smallplane icon.
|
|
24
31
|
- v2.17.1 - More complete feedback on click, better popup image sizing.
|
|
32
|
+
|
|
25
33
|
- v2.16.3 - Ensure polygons can be deleted.
|
|
26
34
|
- v2.16.2 - Better handling of unpacked kmz objects.
|
|
27
35
|
- v2.16.0 - Allow specifying custom base map server.
|
|
36
|
+
|
|
28
37
|
- v2.15.8 - Adjust ui check timing for UI worldmap.
|
|
29
38
|
- v2.15.7 - Tidy up geoJson handling a bit more.
|
|
30
39
|
- v2.15.5 - Fix SIDC icons to accept unicoded icons as labels.
|
|
31
40
|
- v2.15.4 - Let clear heatmap command do what it says.
|
|
32
41
|
- v2.15.3 - Fix panit command to work, try to use alt units, popup alignments.
|
|
33
42
|
- v2.15.0 - Let speed be text and specify units if required (kt,kn,knots,mph,kmh,kph) default m/s.
|
|
43
|
+
|
|
34
44
|
- v2.14.0 - Let geojson features be clickable if added as overlay.
|
|
45
|
+
|
|
35
46
|
- v2.13.4 - Fix list of map choices to be in sync. Fix popup auto sizing.
|
|
36
47
|
- v2.13.3 - Fix unchanged layer propagation.
|
|
37
48
|
- v2.13.2 - Add mayflower icon.
|
|
38
49
|
- v2.13.0 - Tidy velocity layer. Feedback any url parameters.
|
|
50
|
+
|
|
39
51
|
- v2.12.1 - Only show online layer options if we are online.
|
|
40
52
|
- v2.12.0 - Add live rainfall radar data layer. Remove some non-loading overlays.
|
|
53
|
+
|
|
41
54
|
- v2.11.2 - Allow thicknesss of arc to be specified by weight
|
|
42
55
|
- v2.11.1 - Better handle KML point info - add popup.
|
|
43
56
|
- v2.11.0 - Add option to smooth tracks using bezier curves.
|
|
57
|
+
|
|
44
58
|
- v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels.
|
|
59
|
+
|
|
45
60
|
- v2.9.0 - Let weblinks be an array of links. Add more info to readme about Mapservers.
|
|
61
|
+
|
|
46
62
|
- v2.8.9 - Only load cgi module if we have a local mapserv file
|
|
47
63
|
- v2.8.8 - Change length of speed leader to show where you will be in 1 min if speed in m/s
|
|
48
64
|
- v2.8.7 - Delay start of ui widget.
|
|
@@ -52,10 +68,13 @@
|
|
|
52
68
|
- v2.8.2 - Improve direction handling of 3d objects.
|
|
53
69
|
- v2.8.1 - Fix old tracks re-appearing afer hide/show. Issue #135
|
|
54
70
|
- v2.8.0 - Align vector with `track`, prioritise hdg and heading over bearing. Add old location to move action.
|
|
71
|
+
|
|
55
72
|
- v2.7.1 - Also allow geojson files to be dropped, and better png handling
|
|
56
73
|
- v2.7.0 - Allow track and image files to be dragged onto the map, if enabled
|
|
74
|
+
|
|
57
75
|
- v2.6.1 - Better fit for worldmap when in ui_template
|
|
58
76
|
- v2.6.0 - Add route capability to draw line when online
|
|
77
|
+
|
|
59
78
|
- v2.5.9 - Fix handling of multiple hulls, tidy contextmenu handling
|
|
60
79
|
- v2.5.8 - Let node name be the full page map title
|
|
61
80
|
- v2.5.7 - Let fillColor set color of hulls
|
|
@@ -66,8 +85,10 @@
|
|
|
66
85
|
- 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
86
|
- v2.5.1 - Add lat, lng and layer to feedback function.
|
|
68
87
|
- v2.5.0 - Add minimap capability.
|
|
88
|
+
|
|
69
89
|
- v2.4.2 - Fix editing injected shapes.
|
|
70
90
|
- v2.4.1 - Add convex-hull node for grouping objects.
|
|
91
|
+
|
|
71
92
|
- v2.3.16 - Add heading to default addMarker, allow custom http icon size.
|
|
72
93
|
- v2.3.13 - Fix geoson feature properties fill color, and better marker handling
|
|
73
94
|
- v2.3.11 - Better editing of drawing layer, add OpenTopoMap, and better Esri satellite
|
|
@@ -81,8 +102,10 @@
|
|
|
81
102
|
- v2.3.2 - Add better geojson support - name plus geojson properties
|
|
82
103
|
- v2.3.1 - Stop adding point when you add a circle
|
|
83
104
|
- v2.3.0 - Add colour options for drawing layer
|
|
105
|
+
|
|
84
106
|
- v2.2.1 - Better implementation of legend create/show/hide
|
|
85
107
|
- v2.2.0 - Add range rings and arcs function
|
|
108
|
+
|
|
86
109
|
- v2.1.6 - Add legend command to allow inserting an html legend
|
|
87
110
|
- v2.1.5 - Fix squawk icon color handling
|
|
88
111
|
- v2.1.4 - Fix alt and speed as strings
|
|
@@ -90,6 +113,7 @@
|
|
|
90
113
|
- v2.1.2 - Fix layercontrol remove bug. Issue #116
|
|
91
114
|
- v2.1.1 - Fix bug in repeated add with polygon
|
|
92
115
|
- v2.1.0 - Add ui-worldmap node to make embedding in Dashboard easier. Let -in node specify connection actions only.
|
|
116
|
+
|
|
93
117
|
- v2.0.22 - fix SIDC missing property
|
|
94
118
|
- v2.0.21 - allow adding overlays without making them visible (visible:false). Issue #108
|
|
95
119
|
- v2.0.20 - ensure `fit` option is boolean, Issue #109. Fix track layers, Issue #110.
|
|
@@ -108,6 +132,7 @@
|
|
|
108
132
|
- v2.0.2-beta - Let lines and areas also have popups
|
|
109
133
|
- v2.0.1-beta - Add optional graticule.
|
|
110
134
|
- v2.0.0-beta - Move to leaflet 1.4.x plus all plugins updated
|
|
135
|
+
|
|
111
136
|
- v1.5.40 - Only enable on.location function when not in an iframe. Issue #89. Tidy html.
|
|
112
137
|
- v1.5.39 - Add weather-lite icons
|
|
113
138
|
- v1.5.38 - Add Esri dark grey and ocean, re-add hikebike, layers
|
package/README.md
CHANGED
|
@@ -11,32 +11,14 @@ map web page for plotting "things" on.
|
|
|
11
11
|
|
|
12
12
|
### Updates
|
|
13
13
|
|
|
14
|
-
- v2.23.
|
|
14
|
+
- v2.23.4 - Fix opacity of area borders
|
|
15
|
+
- v2.23.3 - Fix initial load of maps
|
|
15
16
|
- v2.23.2 - Add convex-hull example
|
|
16
17
|
- v2.23.1 - Fix saving of custom map layer
|
|
17
18
|
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.
|
|
18
19
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
19
20
|
- v2.22.2 - Be more tolerant of speed string types
|
|
20
21
|
- 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
22
|
|
|
41
23
|
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes.
|
|
42
24
|
|
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -1351,13 +1351,15 @@ function setMarker(data) {
|
|
|
1351
1351
|
opt.color = data.color || data.lineColor || "#910000";
|
|
1352
1352
|
opt.fillColor = data.fillColor || "#910000";
|
|
1353
1353
|
opt.stroke = (data.hasOwnProperty("stroke")) ? data.stroke : true;
|
|
1354
|
-
opt.weight = data.weight
|
|
1355
|
-
opt.opacity = data.opacity
|
|
1354
|
+
opt.weight = data.weight;
|
|
1355
|
+
opt.opacity = data.opacity;
|
|
1356
1356
|
opt.fillOpacity = data.fillOpacity;
|
|
1357
1357
|
opt.clickable = (data.hasOwnProperty("clickable")) ? data.clickable : false;
|
|
1358
1358
|
opt.fill = (data.hasOwnProperty("fill")) ? data.fill : true;
|
|
1359
1359
|
if (data.hasOwnProperty("dashArray")) { opt.dashArray = data.dashArray; }
|
|
1360
1360
|
if (opt.fillOpacity === undefined) { opt.fillOpacity = 0.2; }
|
|
1361
|
+
if (opt.opacity === undefined) { opt.opacity = 1; }
|
|
1362
|
+
if (opt.weight === undefined) { opt.weight = 2; }
|
|
1361
1363
|
|
|
1362
1364
|
// Replace building
|
|
1363
1365
|
if (data.hasOwnProperty("building")) {
|
|
@@ -1432,6 +1434,9 @@ function setMarker(data) {
|
|
|
1432
1434
|
if (data.area.length === 2) { polyarea = L.rectangle(data.area, opt); }
|
|
1433
1435
|
else { polyarea = L.polygon(data.area, opt); }
|
|
1434
1436
|
polygons[data.name] = rightmenu(polyarea);
|
|
1437
|
+
if (data.hasOwnProperty("fit") && data.fit === true) {
|
|
1438
|
+
map.fitBounds(polygons[data.name].getBounds(),{padding:[50,50]})
|
|
1439
|
+
}
|
|
1435
1440
|
}
|
|
1436
1441
|
else if (data.hasOwnProperty("sdlat") && data.hasOwnProperty("sdlon")) {
|
|
1437
1442
|
if (!data.hasOwnProperty("iconColor")) { opt.color = "blue"; } //different standard Color Settings
|