Api google maps v3 我自己的目的地
Api google maps v3 my own destination
我在 google 地图 api 中发现了 Supported Place Types 选项,我有疑问,我理解以下代码,但现在我很想用我自己的纬度来展示我自己的地方和经度选项。
var request = {
location: pyrmont,
radius: 500,
types: ['store']
};
我是如何列清单的,有没有可能做到这一点?
谢谢大家!
您可以将您的位置存储在您自己的 js 数组中,并对其进行迭代以检索其位置、名称和图标(例如)为每个位置绘制一个标记。
您不需要为 Google 个地点(google.maps.places.PlacesService) to draw your own markers. Just instantiate them using the google.maps.Marker 对象。
使用 Google 地图封装器
我在 google 地图 api 中发现了 Supported Place Types 选项,我有疑问,我理解以下代码,但现在我很想用我自己的纬度来展示我自己的地方和经度选项。
var request = {
location: pyrmont,
radius: 500,
types: ['store']
};
我是如何列清单的,有没有可能做到这一点?
谢谢大家!
您可以将您的位置存储在您自己的 js 数组中,并对其进行迭代以检索其位置、名称和图标(例如)为每个位置绘制一个标记。
您不需要为 Google 个地点(google.maps.places.PlacesService) to draw your own markers. Just instantiate them using the google.maps.Marker 对象。
使用 Google 地图封装器