截至...今天,谷歌地图似乎不再嵌入代码!
有人可以为我指出正确的方向,或者提供一些旧的嵌入代码,我可以尝试将其嵌入到有用的东西中?
这是解释如何嵌入谷歌地图的文章: http ://maps.google.com/help/maps/getmaps/quick.html
我认为这与最近几天出现的 Google+ 社交网络“事物”有关。
另外,我已经尝试了上面链接中的说明,都登录了 Google Apps 帐户,但没有登录任何 Google 帐户。
截至...今天,谷歌地图似乎不再嵌入代码!
有人可以为我指出正确的方向,或者提供一些旧的嵌入代码,我可以尝试将其嵌入到有用的东西中?
这是解释如何嵌入谷歌地图的文章: http ://maps.google.com/help/maps/getmaps/quick.html
我认为这与最近几天出现的 Google+ 社交网络“事物”有关。
另外,我已经尝试了上面链接中的说明,都登录了 Google Apps 帐户,但没有登录任何 Google 帐户。
我刚刚尝试了嵌入代码,它似乎对我来说工作正常。您最近是否更改了页面上的任何内容?这是我尝试过的。
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0"
marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&
amp;q=Birmingham,+MI&aq=1&sll=37.0625,-95.677068&sspn=64.880423,107.138672&
amp;ie=UTF8&hq=&hnear=Birmingham,+Oakland,+Michigan&t=h&z=12&
amp;ll=42.546701,-83.211319&output=embed"></iframe><br /><small><a
href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&
amp;q=Birmingham,+MI&aq=1&sll=37.0625,-95.677068&sspn=64.880423,107.138672&
amp;ie=UTF8&hq=&hnear=Birmingham,+Oakland,+Michigan&t=h&z=12&
amp;ll=42.546701,-83.211319" style="color:#0000FF;text-align:left">View Larger Map</a></small>
尝试禁用 Maps Labs 以使用地图嵌入。-参考
http://maps.google.com - 嵌入框现在又回来了。
我想这是一个暂时的故障。我很确定它不在我身边,我尝试了一些不同的机器和浏览器。
谷歌地图已将设置链接从右下角转移到左上角,搜索栏的左侧
这是将 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>