fix missing countries overlay when starting disconnected
This commit is contained in:
parent
942186035d
commit
17b83b1180
@ -1,5 +1,6 @@
|
|||||||
### Change Log for Node-RED Worldmap
|
### Change Log for Node-RED Worldmap
|
||||||
|
|
||||||
|
- v2.40.1 - Fix missing countries overlay when starting disconnected.
|
||||||
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
||||||
- v2.39.0 - Add client timezone to connect message. PR #245
|
- v2.39.0 - Add client timezone to connect message. PR #245
|
||||||
- v2.38.3 - Better fix for geojson multipoint icons.
|
- v2.38.3 - Better fix for geojson multipoint icons.
|
||||||
|
@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
|
|||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
|
- v2.40.1 - Fix missing countries overlay when starting disconnected.
|
||||||
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
- v2.40.0 - Add handling for TAK event points from TAK ingest node.
|
||||||
- v2.39.0 - Add client timezone to connect message. PR #245
|
- v2.39.0 - Add client timezone to connect message. PR #245
|
||||||
- v2.38.3 - Better fix for geojson multipoint icons.
|
- v2.38.3 - Better fix for geojson multipoint icons.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"name": "node-red-contrib-web-worldmap",
|
||||||
"version": "2.40.0",
|
"version": "2.40.1",
|
||||||
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@turf/bezier-spline": "~6.5.0",
|
"@turf/bezier-spline": "~6.5.0",
|
||||||
|
@ -147,7 +147,13 @@ var handleData = function(data) {
|
|||||||
|
|
||||||
window.onunload = function() { if (ws) ws.close(); }
|
window.onunload = function() { if (ws) ws.close(); }
|
||||||
|
|
||||||
var onoffline = function() { if (!navigator.onLine) { map.addLayer(layers["_countries"]); } }
|
var customTopoLayer = L.geoJson(null, {clickable:false, style: {color:"blue", weight:2, fillColor:"#cf6", fillOpacity:0.04}});
|
||||||
|
layers["_countries"] = omnivore.topojson('images/world-50m-flat.json',null,customTopoLayer);
|
||||||
|
overlays["countries"] = layers["_countries"];
|
||||||
|
|
||||||
|
var onoffline = function() { if (!navigator.onLine) {
|
||||||
|
map.addLayer(overlays["countries"]);
|
||||||
|
} }
|
||||||
|
|
||||||
document.addEventListener ("keydown", function (ev) {
|
document.addEventListener ("keydown", function (ev) {
|
||||||
// Set Ctl-Alt-3 to switch to 3d view
|
// Set Ctl-Alt-3 to switch to 3d view
|
||||||
@ -1216,7 +1222,6 @@ var addOverlays = function(overlist) {
|
|||||||
sendDrawing(n);
|
sendDrawing(n);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the countries (world-110m) for offline use
|
// Add the countries (world-110m) for offline use
|
||||||
|
Loading…
Reference in New Issue
Block a user