大家早上好。
我目前正在使用下面的代码以特定的长纬度加载我的 Google map API V3,它是针对客户端的,我想知道是否可以加载类似于 Google 上弹出的信息窗口包含商业信息、评论星级等的 map 。
<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 中完成的吗?如果是的话,有人能给我指出一些有用的信息吗?
最佳答案
听起来您可能正在寻找 Places API/库:
https://developers.google.com/maps/documentation/javascript/places#place_details_responses
不确定它是否包含您在 Google map 上找到的所有内容。
关于google-maps-api-3 - Google map API 营业地点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12636199/