質問編集履歴
2
意図的に内容が抹消された質問に該当するため
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
Leaflet 日本以外を白表示にしたい
|
body
CHANGED
@@ -1,3 +1,31 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
|
-
|
2
|
+
日本だけ表示させて、他は白表示にしたいです。
|
3
|
+
探したのですが、それらしきものは見つからず。
|
4
|
+
下記のようなサイトみたいに表示できたらいいと思っています。
|
3
|
-
|
5
|
+
https://opendata-portal.smartcity-takamatsu.jp/allmap
|
6
|
+
分かる方がいれば教えていただきたいです。
|
7
|
+
または、参考になるようなサイトがあれば、、
|
8
|
+
```javascript
|
9
|
+
<!DOCTYPE html>
|
10
|
+
<html>
|
11
|
+
<head>
|
12
|
+
<meta charset="utf-8" />
|
13
|
+
<link rel = "stylesheet" href = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
|
14
|
+
<script src = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
|
15
|
+
<script>
|
16
|
+
function init() {
|
17
|
+
var map_101 = L.map('map_101').setView([35.65809922, 139.74135747], 8);
|
18
|
+
mapLink = '<a href="https://openstreetmap.org">OpenStreetMap</a>';
|
19
|
+
L.tileLayer(
|
20
|
+
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
21
|
+
attribution: 'Map data © ' + mapLink,
|
22
|
+
maxZoom: 18
|
23
|
+
}).addTo(map_101);
|
24
|
+
}
|
25
|
+
</script>
|
26
|
+
</head>
|
27
|
+
<body onload="init()">
|
28
|
+
<div id="map_101" style="width: 100%; height: 1000px; border: solid 1px"></div>
|
29
|
+
</body>
|
30
|
+
</html>
|
31
|
+
```
|
1
あああああ
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
がっしょんああああああああああ
|
body
CHANGED
@@ -1,37 +1,3 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
日本だけ表示させて、他は白表示にしたいです。
|
4
|
-
探したのですが、それらしきものは見つからず。
|
5
|
-
|
6
|
-
下記のようなサイトみたいに表示できたらいいと思っています。
|
7
|
-
|
3
|
+
ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
|
8
|
-
|
9
|
-
分かる方がいれば教えていただきたいです。
|
10
|
-
または、参考になるようなサイトがあれば、、
|
11
|
-
|
12
|
-
|
13
|
-
```javascript
|
14
|
-
|
15
|
-
<!DOCTYPE html>
|
16
|
-
<html>
|
17
|
-
<head>
|
18
|
-
<meta charset="utf-8" />
|
19
|
-
<link rel = "stylesheet" href = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
|
20
|
-
<script src = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
|
21
|
-
<script>
|
22
|
-
function init() {
|
23
|
-
var map_101 = L.map('map_101').setView([35.65809922, 139.74135747], 8);
|
24
|
-
mapLink = '<a href="https://openstreetmap.org">OpenStreetMap</a>';
|
25
|
-
L.tileLayer(
|
26
|
-
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
27
|
-
attribution: 'Map data © ' + mapLink,
|
28
|
-
maxZoom: 18
|
29
|
-
}).addTo(map_101);
|
30
|
-
}
|
31
|
-
</script>
|
32
|
-
</head>
|
33
|
-
<body onload="init()">
|
34
|
-
<div id="map_101" style="width: 100%; height: 1000px; border: solid 1px"></div>
|
35
|
-
</body>
|
36
|
-
</html>
|
37
|
-
```
|