Gil*_*les 2 google-maps-api-3 google-places-api
大家早.
我现在使用下面的代码在一个特定的长纬度载入我的谷歌地图的API V3,它是一个客户端,我想知道如果我可以加载一个类似的信息窗口的弹出,谷歌地图与商业信息,评论明星等
<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>
Run Code Online (Sandbox Code Playgroud)
这是在不同的API中完成的吗?如果是这样,有人能指出一些有用的信息吗?
非常感谢,Giles.
听起来您可能正在寻找Places API/Library:
https://developers.google.com/maps/documentation/javascript/places#place_details_responses
不确定它是否包含您在Google地图上找到的所有内容.
| 归档时间: |
|
| 查看次数: |
5573 次 |
| 最近记录: |