-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
54 lines (48 loc) · 2.55 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
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Canvas render</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="vendor/leaflet.css" />
<style>
html, body, #map { padding: 0; margin: 0;}
form > div { display: inline-block; width: 150px; }
#map { height: 800px; width: 700px;}
.leaflet-popup-content { max-height: 300px; overflow: auto; }
</style>
<script src="vendor/leaflet-src.js"></script>
<script src="vendor/lodash.js"></script>
<script src="./CanvasLayer.js"></script>
<script src="./QuadTree.js"></script>
</head>
<body>
<h2><span id="nbResults">-</span> visible elements</h2>
<div id="map"></div>
<form>
<div>FILTER COLOR :</div>
<label><input type="radio" name="color" autocomplete="off" onChange="canvasLayer.filterColor(null)" checked>All</label>
<label><input type="radio" name="color" autocomplete="off" onChange="canvasLayer.filterColor('red')">Red</label>
<label><input type="radio" name="color" autocomplete="off" onChange="canvasLayer.filterColor('blue')">Blue</label>
<label><input type="radio" name="color" autocomplete="off" onChange="canvasLayer.filterColor('yellow')">Yellow</label>
</form>
<form>
<div>FILTER TYPE :</div>
<label><input type="radio" name="type" autocomplete="off" onChange="canvasLayer.filterType(null)" checked>All</label>
<label><input type="radio" name="type" autocomplete="off" onChange="canvasLayer.filterType('PT')">Point</label>
<label><input type="radio" name="type" autocomplete="off" onChange="canvasLayer.filterType('CI')">Circle</label>
<label><input type="radio" name="type" autocomplete="off" onChange="canvasLayer.filterType('EL')">Ellipse</label>
</form>
<form>
<div>POINT VIZ :</div>
<label><input type="radio" name="viz" autocomplete="off" onChange="canvasLayer.setPointViz('RECT')" checked>Draw rect</label>
<label><input type="radio" name="viz" autocomplete="off" onChange="canvasLayer.setPointViz('PICT')">Picto image</label>
</form>
<form>
<div>DRAW ON DRAG :</div>
<label><input type="radio" name="draw" autocomplete="off" onChange="canvasLayer.setDrawOnDrag(true)" checked>Enable</label>
<label><input type="radio" name="draw" autocomplete="off" onChange="canvasLayer.setDrawOnDrag(false)">Disable</label>
</form>
<script src="./app.js"></script>
</body>
</html>