teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

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

2021/01/12 01:47

投稿

gorigori12
gorigori12

スコア0

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 &copy; ' + 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

あああああ

2021/01/12 01:47

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- Leaflet 日本以外を白表示にたい
1
+ がっょんああああああああああ
body CHANGED
@@ -1,37 +1,3 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
- 日本だけ表示させて、他は白表示にしたいです。
4
- 探したのですが、それらしきものは見つからず。
5
-
6
- 下記のようなサイトみたいに表示できたらいいと思っています。
7
- https://opendata-portal.smartcity-takamatsu.jp/allmap
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 &copy; ' + 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
- ```