diff --git a/package.json b/package.json index da50733..dffd39e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.8.1", + "version": "2.8.2", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "cgi": "0.3.1", diff --git a/worldmap/css/worldmap.css b/worldmap/css/worldmap.css index 3207bcf..3e22b06 100644 --- a/worldmap/css/worldmap.css +++ b/worldmap/css/worldmap.css @@ -1,3 +1,4 @@ + body { width:100%; height:100%; diff --git a/worldmap/index.html b/worldmap/index.html index 10550af..d350fbc 100644 --- a/worldmap/index.html +++ b/worldmap/index.html @@ -18,9 +18,9 @@ Node-RED map all the things - - - + + + diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index a79bc01..c2272b5 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -2344,11 +2344,13 @@ function doCommand(cmd) { if (map.doubleClickZoom.enabled()) { map.removeControl(map.zoomControl); } map.doubleClickZoom.disable(); map.scrollWheelZoom.disable(); + map.touchZoom.disable(); } else { if (!map.doubleClickZoom.enabled()) { map.addControl(map.zoomControl); } map.doubleClickZoom.enable(); map.scrollWheelZoom.enable(); + map.touchZoom.enable(); } } }