toggle touchzoom more correctly

pull/163/head
Dave Conway-Jones 4 years ago
parent bfe0c49a4d
commit 0ce0f87aed
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

@ -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",

@ -1,3 +1,4 @@
body {
width:100%;
height:100%;

@ -18,9 +18,9 @@
<head>
<title>Node-RED map all the things</title>
<meta charset="UTF-8">
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="mobile-web-app-capable" content="yes"/>
<meta name='viewport' content='width=device-width, initial-scale:1, user-scalable=no'/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
<!-- <link rel="import" href="worldmaphead.html"> -->

@ -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();
}
}
}

Loading…
Cancel
Save