-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathsynthvectors.html
44 lines (41 loc) · 1.87 KB
/
synthvectors.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, all" />
<title>Ol-Cesium | Synthetic vector layer example using several layers</title>
<link rel="stylesheet" href="../node_modules/ol/ol.css" type="text/css">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.0/css/all.min.css" crossorigin="anonymous">
</head>
<body>
<div style="text-align: right;">
<button id="sandbox-button"><i class="fab fa-codepen fa-lg"></i> Edit in sandbox</button>
<form method="POST" id="sandbox-form" target="_blank" action="https://codesandbox.io/api/v1/sandboxes/define">
<input id="sandbox-params" type="hidden" name="parameters">
</form>
</div>
<div id="example-html-source">
<div style="display: flex; flex-wrap: wrap; gap: 20px;">
<div>
<div class="clear-map-sandbox" id="mapCesium" style="width:600px;height:400px;float:left;"></div>
</div>
<div style="display: flex; flex-direction: column; gap: 5px;">
<div>
<input type="button" value="Add 1k Features" onclick="javascript:addFeatures()" />
<span id="total"></span>
</div>
<div id="created"></div>
<div id="added"></div>
<div><input type="button" value="Clear" onclick="javascript:clearFeatures()" /></div>
<div>Click to add a new layer of 1000 randomly colored circles.
<br />Other shapes or icons may be used in spite of the circles.
</div>
</div>
</div>
</div>
<script src="./inject_ol_cesium.js"></script>
<script type="module" src="./synthvectors.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lz-string@1.4.4/libs/lz-string.min.js"></script>
</body>
</html>