-
Notifications
You must be signed in to change notification settings - Fork 58
/
index.html
67 lines (65 loc) · 3.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<head>
<title>L.Path.Transform</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
<!--<script type="text/javascript"> var L_PREFER_CANVAS = true; </script>-->
<!--<script src="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet-src.js"></script>-->
<!-- <script src="../dist/Leaflet.Path.Drag.min.js"></script> -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.2.3/leaflet.draw.css" />
<link rel="stylesheet" type="text/css" href="example/css/topcoat-desktop-light.css" />
<link rel="stylesheet" href="example/css/style.css" />
</head>
<body>
<div id="map"></div>
<div id="controls">
<div class="wrapper">
<h2>L.Path.Transform</h2>
<a class="github-button" href="https://github.com/w8r/Leaflet.Path.Transform" data-count-href="/w8r/Leaflet.Path.Transform/stargazers" data-count-api="/repos/w8r/Leaflet.Path.Transform#stargazers_count">Star</a>
<a class="github-button" href="https://github.com/w8r/Leaflet.Path.Transform" data-count-href="/w8r/Leaflet.Path.Transform/network" data-count-api="/repos/w8r/Leaflet.Path.Transform#forks_count">Fork</a>
<p>
Drag handlers around to see it in action<br>
<em>Red polygon has ~13 000 points</em><br>
<ul>
<li>
<label class="topcoat-checkbox">
<input type="checkbox" id="scaling" checked />
<div class="topcoat-checkbox__checkmark"></div>
Scale
</label>
</li>
<li>
<label class="topcoat-checkbox">
<input type="checkbox" id="rotation" checked />
<div class="topcoat-checkbox__checkmark"></div>
Rotate
</label>
</li>
<li>
<label class="topcoat-checkbox">
<input type="checkbox" id="dragging" checked />
<div class="topcoat-checkbox__checkmark"></div>
Drag
</label>
</li>
<li><br></li>
<li>
<label class="topcoat-checkbox">
<input type="checkbox" id="uniform" checked />
<div class="topcoat-checkbox__checkmark"></div>
Uniform scaling
</label>
</li>
</ul>
<a href="//github.com/w8r/Leaflet.Path.Transform/">Documentation</a>
</p>
</div>
<div>
<script type="module" src="src/main.mjs"></script>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</body>
</html>