node-red-contrib-web-worldmap 2.24.2 → 2.24.3
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 +2 -1
- package/README.md +2 -1
- package/package.json +1 -1
- package/worldmap/css/worldmap.css +2 -1
- package/worldmap/worldmap.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v2.24.3 - Fix geojson incorrect fill.
|
|
3
4
|
- v2.24.2 - Changes to drawing colours to be more visible.
|
|
4
5
|
- v2.24.1 - Fix ellipse accuracy.
|
|
5
6
|
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
- v2.23.3 - Fix initial load of maps
|
|
9
10
|
- v2.23.2 - Add convex-hull example
|
|
10
11
|
- v2.23.1 - Fix saving of custom map layer
|
|
11
|
-
- v2.23.0 - Give logo
|
|
12
|
+
- v2.23.0 - Give logo an id so it can be overridden by toplogo command. PR #188.
|
|
12
13
|
|
|
13
14
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
14
15
|
- v2.22.2 - Be more tolerant of speed string types
|
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.3 - Fix geojson incorrect fill.
|
|
14
15
|
- v2.24.2 - Changes to drawing colours to be more visible.
|
|
15
16
|
- v2.24.1 - Fix ellipse accuracy
|
|
16
17
|
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
@@ -19,7 +20,7 @@ map web page for plotting "things" on.
|
|
|
19
20
|
- v2.23.3 - Fix initial load of maps
|
|
20
21
|
- v2.23.2 - Add convex-hull example
|
|
21
22
|
- v2.23.1 - Fix saving of custom map layer
|
|
22
|
-
- v2.23.0 - Give logo
|
|
23
|
+
- v2.23.0 - Give logo an id so it can be overridden by toplogo command. PR #188.
|
|
23
24
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
24
25
|
- v2.22.2 - Be more tolerant of speed string types
|
|
25
26
|
- v2.22.0 - Separate out layer events in worldmap in
|
package/package.json
CHANGED
|
@@ -213,7 +213,8 @@ a {
|
|
|
213
213
|
.wm-yellow { color: #FFFF40; }
|
|
214
214
|
.wm-black { color: #333333; }
|
|
215
215
|
.wm-white { color: #EEEEEE; }
|
|
216
|
-
.wm-magenta { color: #
|
|
216
|
+
.wm-magenta { color: #F040F0; }
|
|
217
|
+
.wm-cyan { color: #40F0F0; }
|
|
217
218
|
|
|
218
219
|
.legend {
|
|
219
220
|
padding: 6px 8px;
|
package/worldmap/worldmap.js
CHANGED
|
@@ -926,10 +926,11 @@ var addOverlays = function(overlist) {
|
|
|
926
926
|
var blueButton = L.easyButton('fa-square wm-blue', function(btn) { changeDrawColour("#4040F0"); })
|
|
927
927
|
var greenButton = L.easyButton('fa-square wm-green', function(btn) { changeDrawColour("#40D040"); })
|
|
928
928
|
var yellowButton = L.easyButton('fa-square wm-yellow', function(btn) { changeDrawColour("#FFFF40"); })
|
|
929
|
-
var
|
|
929
|
+
var cyanButton = L.easyButton('fa-square wm-cyan', function(btn) { changeDrawColour("#40F0F0"); })
|
|
930
|
+
var magentaButton = L.easyButton('fa-square wm-magenta', function(btn) { changeDrawColour("#F040F0"); })
|
|
930
931
|
var blackButton = L.easyButton('fa-square wm-black', function(btn) { changeDrawColour("#000000"); })
|
|
931
932
|
var whiteButton = L.easyButton('fa-square wm-white', function(btn) { changeDrawColour("#EEEEEE"); })
|
|
932
|
-
colorControl = L.easyBar([redButton,blueButton,greenButton,yellowButton,magentaButton,blackButton,whiteButton]);
|
|
933
|
+
colorControl = L.easyBar([redButton,blueButton,greenButton,yellowButton,cyanButton,magentaButton,blackButton,whiteButton]);
|
|
933
934
|
|
|
934
935
|
layers["_drawing"] = new L.FeatureGroup();
|
|
935
936
|
overlays["drawing"] = layers["_drawing"];
|
|
@@ -2651,7 +2652,7 @@ function doGeojson(n,g,l,o) {
|
|
|
2651
2652
|
st.fillColor = feature.style["fill-color"] || feature.style["fill"] || st.fillColor;
|
|
2652
2653
|
st.fillOpacity = feature.style["fill-opacity"] || st.fillOpacity;
|
|
2653
2654
|
}
|
|
2654
|
-
if (feature.hasOwnProperty("geometry") && feature.geometry.hasOwnProperty("type") && feature.geometry.type === "LineString") {
|
|
2655
|
+
if (feature.hasOwnProperty("geometry") && feature.geometry.hasOwnProperty("type") && (feature.geometry.type === "LineString" || feature.geometry.type === "MultiLineString") ) {
|
|
2655
2656
|
st.fill = false;
|
|
2656
2657
|
}
|
|
2657
2658
|
return st;
|