toggle touchzoom more correctly
This commit is contained in:
parent
bfe0c49a4d
commit
0ce0f87aed
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"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.",
|
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cgi": "0.3.1",
|
"cgi": "0.3.1",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
width:100%;
|
width:100%;
|
||||||
height:100%;
|
height:100%;
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Node-RED map all the things</title>
|
<title>Node-RED map all the things</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name='viewport' content='width=device-width, initial-scale:1, user-scalable=no'/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||||
<link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
|
<link rel="shortcut icon" type="image/ico" href="favicon.ico"/>
|
||||||
|
|
||||||
<!-- <link rel="import" href="worldmaphead.html"> -->
|
<!-- <link rel="import" href="worldmaphead.html"> -->
|
||||||
|
@ -2344,11 +2344,13 @@ function doCommand(cmd) {
|
|||||||
if (map.doubleClickZoom.enabled()) { map.removeControl(map.zoomControl); }
|
if (map.doubleClickZoom.enabled()) { map.removeControl(map.zoomControl); }
|
||||||
map.doubleClickZoom.disable();
|
map.doubleClickZoom.disable();
|
||||||
map.scrollWheelZoom.disable();
|
map.scrollWheelZoom.disable();
|
||||||
|
map.touchZoom.disable();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!map.doubleClickZoom.enabled()) { map.addControl(map.zoomControl); }
|
if (!map.doubleClickZoom.enabled()) { map.addControl(map.zoomControl); }
|
||||||
map.doubleClickZoom.enable();
|
map.doubleClickZoom.enable();
|
||||||
map.scrollWheelZoom.enable();
|
map.scrollWheelZoom.enable();
|
||||||
|
map.touchZoom.enable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user