|
1 | | -<!doctype html> |
2 | | -<html> |
3 | | -<head> |
4 | | - <meta name="referrer" content="no-referrer"> |
5 | | - <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> |
6 | | - <title>Leaflet.DoubleTouchDragZoom</title> |
7 | | - <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" /> |
8 | | -</head> |
9 | | -<body> |
10 | | - <style> |
11 | | - .leaflet-double-touch { |
12 | | - -webkit-user-select: none; |
13 | | - -moz-user-select: none; |
14 | | - -ms-user-select: none; |
15 | | - user-select: none; |
16 | | - } |
17 | | - .leaflet-double-touch-drag { |
18 | | - cursor: move; |
19 | | - cursor: -webkit-grabbing; |
20 | | - cursor: -moz-grabbing; |
21 | | - cursor: row-resize; |
22 | | - } |
23 | | - </style> |
24 | | - <div id="map" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></div> |
25 | | - <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script> |
26 | | - <script src="../src/leaflet-double-touch-drag-zoom.js"></script> |
27 | | - <script> |
28 | | - var map = L.map('map', { |
29 | | - center: [48.6726, 19.6994], |
30 | | - zoom: 7, |
31 | | - zoomControl: true, |
32 | | - doubleTouchDragZoom: true |
33 | | - }); |
34 | | - L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
35 | | - attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' |
36 | | - }).addTo(map); |
37 | | - </script> |
38 | | -</body> |
39 | | -</html> |
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta name="referrer" content="no-referrer"> |
| 5 | + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> |
| 6 | + <title>Leaflet.DoubleTouchDragZoom</title> |
| 7 | + <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" /> |
| 8 | + <link rel="stylesheet" href="../src/leaflet-double-touch-drag-zoom.css" /> |
| 9 | +</head> |
| 10 | +<body> |
| 11 | + <div id="map" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></div> |
| 12 | + <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script> |
| 13 | + <script src="../src/leaflet-double-touch-drag-zoom.js"></script> |
| 14 | + <script> |
| 15 | + var map = L.map('map', { |
| 16 | + center: [48.6726, 19.6994], |
| 17 | + zoom: 7, |
| 18 | + doubleTouchDragZoom: true |
| 19 | + }); |
| 20 | + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
| 21 | + attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' |
| 22 | + }).addTo(map); |
| 23 | + </script> |
| 24 | +</body> |
| 25 | +</html> |
0 commit comments