Google Maps API
为Google Maps API提供一个方便的包装器,允许使用promise语法调用它。
安装
npm install --save @point-hub/google-maps-api
or
yarn add @point-hub/google-maps-api
用法
从Google 获取您的API密钥
在您的应用中使用
var GoogleMapsApi = require('@point-hub/google-maps-api');
GoogleMapsApi({
libraries: ['places'],
apiKey: 'replace-this-with-your-api-key'
})
.then(function(googleApi) {
var autocomplete = new googleApi.maps.places
评论0
最新资源