【文件属性】:
文件名称:Google-Places:使用Google的位置库在地图上搜索位置
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-30 19:04:11
JavaScript
Google地方信息
Google-Places会将google地方搜索地图添加到您想要的任何元素。 唯一的要求是jQuery。
方向:
将add-google-places.js添加到您的项目中
将map-style.css添加到您的项目中
主html文件中的源add-google-places.js
主要是html文件中的源map-style.css
像下面这样调用函数“ buildMap”:
buildMap({
API_KEY: YOUR_API_KEY,
latitude: 37.7833,
longitude: -122.4167,
selector: 'body' //css style selector for the element that will contain the map
});
(请参见index.html)
如果您需要
【文件预览】:
Google-Places-master
----index.html(580B)
----add-google-places.js(4KB)
----README.md(859B)
----map-style.css(1KB)