-
Notifications
You must be signed in to change notification settings - Fork 7
/
3dtaipei4347-2.html
39 lines (34 loc) · 1.02 KB
/
3dtaipei4347-2.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>信義區3D建築 (地籍輪廓+建築使用執照高度)</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.03336808477225,121.51590765996], 17); // Barcelona
new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { maxNativeZoom: 19, maxZoom: 21 }).addTo(map);
$.get('geojsons/4347.json', function(geojson){
var osmb = new OSMBuildings(map).set(geojson);
});
</script>
</body>
</html>