2

截至...今天,谷歌地图似乎不再嵌入代码!

有人可以为我指出正确的方向,或者提供一些旧的嵌入代码,我可以尝试将其嵌入到有用的东西中?

这是解释如何嵌入谷歌地图的文章: http ://maps.google.com/help/maps/getmaps/quick.html

我认为这与最近几天出现的 Google+ 社交网络“事物”有关。

另外,我已经尝试了上面链接中的说明,都登录了 Google Apps 帐户,但没有登录任何 Google 帐户。

4

5 回答 5

1

我刚刚尝试了嵌入代码,它似乎对我来说工作正常。您最近是否更改了页面上的任何内容?这是我尝试过的。

 <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" 
marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&
amp;q=Birmingham,+MI&amp;aq=1&amp;sll=37.0625,-95.677068&amp;sspn=64.880423,107.138672&
amp;ie=UTF8&amp;hq=&amp;hnear=Birmingham,+Oakland,+Michigan&amp;t=h&amp;z=12&
amp;ll=42.546701,-83.211319&amp;output=embed"></iframe><br /><small><a 
href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&
amp;q=Birmingham,+MI&amp;aq=1&amp;sll=37.0625,-95.677068&amp;sspn=64.880423,107.138672&
amp;ie=UTF8&amp;hq=&amp;hnear=Birmingham,+Oakland,+Michigan&amp;t=h&amp;z=12&
amp;ll=42.546701,-83.211319" style="color:#0000FF;text-align:left">View Larger Map</a></small>
于 2011-06-30T13:07:26.420 回答
1

尝试禁用 Maps Labs 以使用地图嵌入。-参考

于 2011-06-30T13:09:17.600 回答
1

http://maps.google.com - 嵌入框现在又回来了。

我想这是一个暂时的故障。我很确定它不在我身边,我尝试了一些不同的机器和浏览器。

于 2011-06-30T22:18:55.517 回答
1

谷歌地图已将设置链接从右下角转移到左上角,搜索栏的左侧

于 2015-07-31T08:46:56.733 回答
0

这是将 Google 地图添加到您的网页的代码。不需要 API 密钥。

<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0; padding: 0 }
  #map-canvas { height: 100% }
</style>

<script type="text/javascript"
  src="https://maps.googleapis.com/maps/api/js?&sensor=true">
</script>

<script type="text/javascript">
  function initialize() {
    var mapOptions = {
      center: new google.maps.LatLng(54.584063, -5.928343),
      zoom: 8,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map-canvas"),
        mapOptions);
  }
  google.maps.event.addDomListener(window, 'load', initialize);
</script>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>BLAAAAAAAAAAAAAAAAAAA</title>
<link rel="stylesheet" href="style.css">

<body>
    <div id = "map-canvas"/>
</body>

于 2013-03-30T17:17:57.233 回答