-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (141 loc) · 6.92 KB
/
index.html
File metadata and controls
142 lines (141 loc) · 6.92 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/leaflet.css">
<link rel="stylesheet" href="css/qgis2web.css"><link rel="stylesheet" href="css/fontawesome-all.min.css">
<style>
html, body, #map {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
</style>
<title></title>
</head>
<body>
<div id="map">
</div>
<script src="js/qgis2web_expressions.js"></script>
<script src="js/leaflet.js"></script>
<script src="js/leaflet.rotatedMarker.js"></script>
<script src="js/leaflet.pattern.js"></script>
<script src="js/leaflet-hash.js"></script>
<script src="js/Autolinker.min.js"></script>
<script src="js/rbush.min.js"></script>
<script src="js/labelgun.min.js"></script>
<script src="js/labels.js"></script>
<script src="data/office_list3_sjis_addressmatch_1.js"></script>
<script>
var map = L.map('map', {
zoomControl:true, maxZoom:28, minZoom:1
}).fitBounds([[23.149487513832167,114.46084694786182],[47.86581331626534,168.40148552487514]]);
var hash = new L.Hash(map);
map.attributionControl.setPrefix('<a href="https://github.com/tomchadwin/qgis2web" target="_blank">qgis2web</a> · <a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>');
var bounds_group = new L.featureGroup([]);
function setBounds() {
}
var layer__0 = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', {
opacity: 0.7,
attribution: '',
});
layer__0;
map.addLayer(layer__0);
function pop_office_list3_sjis_addressmatch_1(feature, layer) {
var popupContent = '<table>\
<tr>\
<td colspan="2">' + (feature.properties['name'] !== null ? Autolinker.link(String(feature.properties['name'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['address_code'] !== null ? Autolinker.link(String(feature.properties['address_code'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['address'] !== null ? Autolinker.link(String(feature.properties['address'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['tel_num'] !== null ? Autolinker.link(String(feature.properties['tel_num'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['fax_num'] !== null ? Autolinker.link(String(feature.properties['fax_num'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['email_num'] !== null ? Autolinker.link(String(feature.properties['email_num'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['LocName'] !== null ? Autolinker.link(String(feature.properties['LocName'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['fX'] !== null ? Autolinker.link(String(feature.properties['fX'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['fY'] !== null ? Autolinker.link(String(feature.properties['fY'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['iConf'] !== null ? Autolinker.link(String(feature.properties['iConf'])) : '') + '</td>\
</tr>\
<tr>\
<td colspan="2">' + (feature.properties['iLvl'] !== null ? Autolinker.link(String(feature.properties['iLvl'])) : '') + '</td>\
</tr>\
</table>';
layer.bindPopup(popupContent, {maxHeight: 400});
}
function style_office_list3_sjis_addressmatch_1_0() {
return {
pane: 'pane_office_list3_sjis_addressmatch_1',
rotationAngle: 0.0,
rotationOrigin: 'center center',
icon: L.icon({
iconUrl: 'markers/poi_embassy2.svg',
iconSize: [26.599999999999998, 26.599999999999998]
}),
}
}
map.createPane('pane_office_list3_sjis_addressmatch_1');
map.getPane('pane_office_list3_sjis_addressmatch_1').style.zIndex = 401;
map.getPane('pane_office_list3_sjis_addressmatch_1').style['mix-blend-mode'] = 'normal';
var layer_office_list3_sjis_addressmatch_1 = new L.geoJson(json_office_list3_sjis_addressmatch_1, {
attribution: '',
pane: 'pane_office_list3_sjis_addressmatch_1',
onEachFeature: pop_office_list3_sjis_addressmatch_1,
pointToLayer: function (feature, latlng) {
var context = {
feature: feature,
variables: {}
};
return L.marker(latlng, style_office_list3_sjis_addressmatch_1_0(feature));
},
});
bounds_group.addLayer(layer_office_list3_sjis_addressmatch_1);
map.addLayer(layer_office_list3_sjis_addressmatch_1);
setBounds();
var i = 0;
layer_office_list3_sjis_addressmatch_1.eachLayer(function(layer) {
var context = {
feature: layer.feature,
variables: {}
};
layer.bindTooltip((layer.feature.properties['name'] !== null?String('<div style="color: #000000; font-size: 10pt; font-weight: bold; font-family: \'YuGothic\', sans-serif;">' + layer.feature.properties['name']) + '</div>':''), {permanent: true, offset: [-0, -16], className: 'css_office_list3_sjis_addressmatch_1'});
labels.push(layer);
totalMarkers += 1;
layer.added = true;
addLabel(layer, i);
i++;
});
resetLabels([layer_officelist3sjisaddressmatch_1]);
map.on("zoomend", function(){
resetLabels([layer_officelist3sjisaddressmatch_1]);
});
map.on("layeradd", function(){
resetLabels([layer_officelist3sjisaddressmatch_1]);
});
map.on("layerremove", function(){
resetLabels([layer_officelist3sjisaddressmatch_1]);
});
</script>
</body>
</html>