Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps 嵌入式谷歌地图不工作_Google Maps - Fatal编程技术网

Google maps 嵌入式谷歌地图不工作

Google maps 嵌入式谷歌地图不工作,google-maps,Google Maps,我发现类似的帖子建议我需要将output=embed添加到iframeURL的末尾,但我仍然得到一个错误(我正在从jade输出html,因此语法是正确的) 我在本地主机上工作。这可能是个问题吗?据我所知,这是因为谷歌重定向到新地图 更新:我在一个常规的静态页面上进行了尝试,效果很好。所以这一定与我使用localhost有关?可能是URL被编码-&to& 看看这个补丁 谢谢我其实没有试过,因为这太明显了,哈。在我的test.html页面中不需要回避。也许是玉的东西? Refused to d

我发现类似的帖子建议我需要将output=embed添加到iframeURL的末尾,但我仍然得到一个错误(我正在从jade输出html,因此语法是正确的)

我在本地主机上工作。这可能是个问题吗?据我所知,这是因为谷歌重定向到新地图


更新:我在一个常规的静态页面上进行了尝试,效果很好。所以这一定与我使用localhost有关?

可能是URL被编码-
&to&

看看这个补丁


谢谢我其实没有试过,因为这太明显了,哈。在我的test.html页面中不需要回避。也许是玉的东西?
Refused to display 'https://www.google.co.uk/maps/preview?f=q' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.


iframe(width="250", height="250", frameborder="0", scrolling="no", marginheight="0", marginwidth="0", src="https://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=London&aq=0&oq=lo&sll=51.528642,-0.101599&sspn=0.815911,1.716614&t=m&ie=UTF8&hq=&hnear=London,+United+Kingdom&ll=51.511307,-0.11982&spn=0.053418,0.085831&z=12&iwloc=A&output=embed"
https://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=London&aq=0&oq=lo&sll=51.528642,-0.101599&sspn=0.815911,1.716614&t=m&ie=UTF8&hq=&hnear=London,+United+Kingdom&ll=51.511307,-0.11982&spn=0.053418,0.085831&z=12&iwloc=A&output=embed