node-red-contrib-web-worldmap 2.37.2 → 2.37.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 +1 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/worldmap/worldmap.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v2.37.3 - Fix hang on layer change
|
|
3
4
|
- v2.37.2 - If custom layer is only layer then show it automatically. Issue #230
|
|
4
5
|
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
|
5
6
|
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ map web page for plotting "things" on.
|
|
|
11
11
|
|
|
12
12
|
### Updates
|
|
13
13
|
|
|
14
|
+
- v2.37.3 - Fix hang on layer change
|
|
14
15
|
- v2.37.2 - If custom layer is only layer then show it automatically. Issue #230
|
|
15
16
|
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
|
16
17
|
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -389,7 +389,7 @@ var edgeAware = function() {
|
|
|
389
389
|
|
|
390
390
|
var viewBounds = L.latLngBounds(map.options.crs.pointToLatLng(L.point(pSW.x - (pCenter.x - pSW.x ), pSW.y - (pCenter.y - pSW.y )), map.getZoom()) , map.options.crs.pointToLatLng(L.point(pNE.x + (pNE.x - pCenter.x) , pNE.y + (pNE.y - pCenter.y) ), map.getZoom()) );
|
|
391
391
|
for (var id in markers) {
|
|
392
|
-
if (allData[id].hasOwnProperty("SIDC")) {
|
|
392
|
+
if (allData[id] && allData[id].hasOwnProperty("SIDC")) {
|
|
393
393
|
markerLatLng = markers[id].getLatLng();
|
|
394
394
|
if ( viewBounds.contains(markerLatLng) && !mapBounds.contains(markerLatLng) ) {
|
|
395
395
|
var k = (markerLatLng.lat - mapBoundsCenter.lat) / (markerLatLng.lng - mapBoundsCenter.lng);
|