【发布时间】:2012-09-20 02:43:43
【问题描述】:
早上好。
我目前正在使用以下代码在特定的经纬度加载我的 Google Map 的 API V3,它是针对客户端的,我想知道我是否可以加载类似于谷歌上弹出的 infoWindow带有商家信息、评论星级等的地图。
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(lat-long),
disableDefaultUI: true,
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("location"),
mapOptions);
var point = new google.maps.LatLng(lat-long);
var marker = new google.maps.Marker({
position:point,
map: map,
});
}
</script>
这是在不同的 API 中完成的吗?如果可以的话,谁能给我一些有用的信息?
【问题讨论】:
标签: google-maps-api-3 google-places-api