-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathosm-features-wdc.html
59 lines (51 loc) · 3.13 KB
/
osm-features-wdc.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
<html>
<head>
<title>OSM Features Connector</title>
<meta http-equiv="Cache-Control" content="no-store" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.2.3/leaflet.draw.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.2.3/leaflet.draw.js"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.0-beta.js" type="text/javascript"></script>
<script src="osm-features-wdc.js" type="text/javascript"></script>
</head>
<body>
<div class="container container-table">
<div class="row vertical-center-row">
<div>
<h4 class="text-center">Get OpenStreetMap Data for a Feature</h4>
<br>
<div class="dropdown" id="dropdown-container" style="z-index:1001;">
<button class="btn btn-default dropdown-toggle" type="button" id="feature-button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span id="feature-button-text">Select a feature</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="feature-menu">
<li><a href="#">atm</a></li>
<li><a href="#">bank</a></li>
<li><a href="#">bar</a></li>
<li><a href="#">bicycle_parking</a></li>
<li><a href="#">bicycle_rental</a></li>
<li><a href="#">cafe</a></li>
<li><a href="#">cinema</a></li>
<li><a href="#">fire_station</a></li>
<li><a href="#">fuel</a></li>
<li><a href="#">library</a></li>
<li><a href="#">post_box</a></li>
<li><a href="#">restaurant</a></li>
<li><a href="#">school</a></li>
<li><a href="#">theatre</a></li>
</ul>
</div>
<br /> Click the rectangle icon to select an area for which you want data.
<div id="map" style="width:100%; height: 300px; margin: 10px 0px;"></div>
<button type="button" id="submitButton" class="btn btn-success" style="margin: 10px 0px;">Get Feature Data!</button>
</div>
</div>
</div>
<script src="map.js"></script>
</body>
</html>