質問編集履歴

2

意図的に内容が抹消された質問に該当するため

2021/01/12 01:47

投稿

gorigori12
gorigori12

スコア0

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

1

あああああ

2021/01/12 01:47

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- Leaflet 日本以外を白表示にたい
1
+ がっょんああああああああああ
test CHANGED
@@ -2,72 +2,4 @@
2
2
 
3
3
 
4
4
 
5
- 日本だけ表示させて、他は白表示にしたいです。
6
-
7
- 探したのですが、それらしきものは見つからず。
8
-
9
-
10
-
11
- 下記のようなサイトみたいに表示できたらいいと思っています。
12
-
13
- https://opendata-portal.smartcity-takamatsu.jp/allmap
5
+ ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
14
-
15
-
16
-
17
- 分かる方がいれば教えていただきたいです。
18
-
19
- または、参考になるようなサイトがあれば、、
20
-
21
-
22
-
23
-
24
-
25
- ```javascript
26
-
27
-
28
-
29
- <!DOCTYPE html>
30
-
31
- <html>
32
-
33
- <head>
34
-
35
- <meta charset="utf-8" />
36
-
37
- <link rel = "stylesheet" href = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
38
-
39
- <script src = "https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
40
-
41
- <script>
42
-
43
- function init() {
44
-
45
- var map_101 = L.map('map_101').setView([35.65809922, 139.74135747], 8);
46
-
47
- mapLink = '<a href="https://openstreetmap.org">OpenStreetMap</a>';
48
-
49
- L.tileLayer(
50
-
51
- 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
52
-
53
- attribution: 'Map data &copy; ' + mapLink,
54
-
55
- maxZoom: 18
56
-
57
- }).addTo(map_101);
58
-
59
- }
60
-
61
- </script>
62
-
63
- </head>
64
-
65
- <body onload="init()">
66
-
67
- <div id="map_101" style="width: 100%; height: 1000px; border: solid 1px"></div>
68
-
69
- </body>
70
-
71
- </html>
72
-
73
- ```