0
HI我在我的頁面http://topdoctor.eu.pn/ 上遇到Google地圖API的問題,其中與醫生相關的名稱包含指向其地址的鏈接。 正如我在API訪問下在code.google.com中創建API key並在生成密鑰的Simple API Access下創建密鑰。 然後,我有手創樂團在我的網站Google maps API javascript
var map;
var directionsDisplay = new google.maps.DirectionsRenderer({ 'map': map,draggable: true });
var mapprint;
function initialize()
{
var myCenter=new google.maps.LatLng(00,00);
var marker;
var mapProp = {
center:myCenter,
zoom:14,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
marker=new google.maps.Marker({
position:myCenter,
icon:"Your image path on map",
});
marker.setMap(map);
var info ="Your Info";
var myOptions = {
content: info
,disableAutoPan: false
,maxWidth: 0
,pixelOffset: new google.maps.Size(20, -158) //used for positioning left,right
,zIndex: null
,boxStyle: {
background: ""
,opacity: 1.0
,width: "220px"
}
,closeBoxMargin: "10px 2px 2px 2px"
,closeBoxURL: ""
,infoBoxClearance: new google.maps.Size(1, 1)
,isHidden: false
,pane: "floatPane"
,enableEventPropagation: false
,url:"http://www.topdoctor.eu.pn/"
};
var ib = new InfoBox(myOptions);
google.maps.event.addListener(marker, "click", function (e) {
ib.open(map, this);
});
google.maps.event.addListener(map, "click", function (e) {
ib.closeListener_ = google.maps.event.addDomListener(map, 'click', ib.getCloseClickHandler_());
ib.close();
});
google.maps.event.addListener(ib, "click", function (e) {
window.parent.location.href = "http://www.topdoctor.eu.pn/";
});
google.maps.event.trigger(map, 'resize');
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<style type="text/css">
body{background-color:#fff;}
</style>
<div id="googleMap" class="gmap" style="width: 100%; height: 100%;"></div>
<div id="map-canvas">
</div><!-- map -->
,但地圖上沒有顯示,或者說,關鍵是未啓用或限額達到即使沒有或很少的流量是在網站上。
的API被啓用,我得到這些統計數據。 流量報告爲TopDoctor 總要求請求/ 天3峯值0.54平均 \t 開始日期 2014年6月14日 \t 採樣週期 28天 所以沒有辦法已經達到極限,但地圖不會顯示在配置文件下 – user3829857
使用右側的鏈接查看您的數據使用情況'下載歷史配額使用數據' –
即可顯示此\t 地圖API v3 請求數# \t \t 每日配額:25k \t \t 28天總計:15 – user3829857