-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathlocal-leaflet.html
46 lines (40 loc) · 1.34 KB
/
local-leaflet.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
<!DOCTYPE html><html lang="ja">
<head>
<meta charset='utf-8'/>
<meta property="og:image" content="">
<link rel="apple-touch-icon" href=""/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<!--
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-QVftwZFqvtRNi0ZyCtsznlKSWOStnDORoefr1enyq5mVL4tmKB3S/EnC3rRJcxCPavG10IcrVGSmPh6Qw5lwrg==" crossorigin=""></script>
-->
<link rel="stylesheet" href="leaflet.css"/>
<script src="leaflet.js"></script>
<script>"use strict"
window.onload = function() {
var map = L.map('mapid')
L.tileLayer("https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png", {
attribution: '<a href="https://maps.gsi.go.jp/development/ichiran.html">国土地理院</a>"',
maxZoom: 18,
}).addTo(map);
var ll = [ 35.943560,136.188917 ] // 鯖江駅
var zoom = 13
map.setView(ll, zoom)
}
</script>
<style>
body {
margin: 0;
font-family: sans-serif;
}
#mapid {
height: 60vh;
}
</style>
</Head>
<body>
<h1>Leaflet x 地理院地図</h1>
<div id="mapid"></div>
</body>
</html>