質問編集履歴

1

元のソースコード、試したこと、修正

2019/02/06 04:58

投稿

U_mi
U_mi

スコア6

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,15 @@
12
12
 
13
13
 
14
14
 
15
- google mapが正しく表示されませんとエラーが出ので
15
+ このページでは Google マップが正しく読み込まれませんでし
16
+
17
+ for development purposes only
18
+
19
+
20
+
21
+ とエラーが出たので
22
+
23
+ APIキーを使ってURLを取得
16
24
 
17
25
  iframeを使って地図を表示させようとしましたが上手くいきません。
18
26
 
@@ -20,7 +28,17 @@
20
28
 
21
29
  元のソースコード
22
30
 
31
+
32
+
33
+ <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
34
+
35
+
36
+
23
37
  <div id="map_canvas" style="width: 710px; height: 380px; position: relative; overflow: hidden;"></div>
38
+
39
+
40
+
41
+
24
42
 
25
43
 
26
44
 
@@ -28,11 +46,21 @@
28
46
 
29
47
 
30
48
 
31
- <div id="map_canvas"><iframe src= "https://www.google.com/maps/~~~~~~" style="width:710px; height:380px" position: relative; overflow: hidden;"></iframe></div>
49
+ <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=(APIキー)"></script>
32
50
 
33
51
 
34
52
 
53
+ <div id="map_canvas">
54
+
55
+  <iframe src="https://www.googleapis.com/maps/~~~~~~~" style="width:710px; height:380px; position: relative; overflow:  
56
+
57
+ hidden;"></iframe></div>
58
+
59
+
60
+
61
+
62
+
35
- に変えてみましたが、地図表示がされません。
63
+ に変えてみましたが、今度は地図自体が表示がされません。
36
64
 
37
65
 
38
66