【发布时间】:2017-03-10 18:56:49
【问题描述】:
如何使用来自 google 的 API 添加要在地图上显示的地址。 是否使用嵌入选项?
<script>
function myMap(){
var mapCanvas = document.getElementById("map");
var mapOptions = {
center: new google.maps.LatLng(51.5, -0.2), zoom:15
};
var map = new google.maps.Map(mapCanvas, mapOptions);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=my_key">
</script>
【问题讨论】:
标签: javascript html google-maps dictionary google-api