-
Notifications
You must be signed in to change notification settings - Fork 24
/
ExtrudePolygonProperties.html
70 lines (65 loc) · 2.84 KB
/
ExtrudePolygonProperties.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
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ExtrudePolygonProperties</title>
<script src="https://resource.mapray.com/mapray-js/v0.9.5/mapray.min.js"></script>
<link rel="stylesheet" href="https://resource.mapray.com/styles/v1/mapray.css">
<style>
html, body {
height: 100%;
margin: 0;
}
div#mapray-container {
position: relative;
height: calc(100vh - 120px);
}
div#mapInfo{
width: 90%;
margin: auto;
align-items: center;
}
.cambutton {
position: absolute;
bottom: 130px;
right: 2px
}
.btn-flat-simple {
position: relative;
display: inline-block;
font-weight: bold;
padding: 0.25em 0.5em;
text-decoration: none;
color: #00BCD4;
background: #ECECEC;
transition: .4s;
}
.btn-flat-simple:hover {
background: #00bcd4;
color: white;
}
</style>
</head>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="USGSImageProvider.js"></script>
<script src="ExtrudePolygonProperties.js"></script>
<body>
<div id="mapray-container">
<div class="cambutton">
<button href="#" class="btn-flat-simple" onclick="extrude.moveCamera()">
Change Camera Position
</button>
</div>
</div>
<div id="mapInfo">
<p style="font-size: 9px">Base map:<a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer" style="font-size: 9px">© USGS The National Map: National Boundaries Dataset, 3DEP Elevation Program, Geographic Names Information System, National Hydrography Dataset, National Land Cover Database, National Structures Dataset, and National Transportation Dataset; USGS Global Ecosystems; U.S. Census Bureau TIGER/Line data; USFS Road Data; Natural Earth Data; U.S. Department of State Humanitarian Information Unit; and NOAA National Centers for Environmental Information, U.S. Coastal Relief Model. Data refreshed August, 2019.</a></p>
<p style="font-size: 9px">Data source: <a href="https://vancouver.ca/your-government/open-data-catalogue.aspx" style="font-size: 9px">City of Vancouver</a></p>
<p style="font-size: 9px">GeoJSON: <a href="https://github.com/uber/deck.gl" style="font-size: 9px">Deck.gl</a></p>
</div>
</body>
<script>
window.onload = function(){
extrude = new ExtrudePolygonProperties('mapray-container');
};
</script>
</html>