forked from sheethub/tpe3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3dtaipei4352.html
39 lines (34 loc) · 1.01 KB
/
3dtaipei4352.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
<!DOCTYPE html>
<html>
<head>
<title>OSM Buildings - GeometryCollection</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
html, body {
border: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#map {
height: 100%;
}
</style>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<script src="OSMBuildings-Leaflet.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
</head>
<body>
<div id="map"></div>
<script>
var map = new L.Map('map').setView([25.1013329101511,121.519546169599], 17); // Barcelona
new L.TileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg', { maxNativeZoom: 19, maxZoom: 21 }).addTo(map);
$.get('geojsons/4352.json', function(geojson){
var osmb = new OSMBuildings(map).set(geojson);
});
</script>
</body>
</html>