如何设置ember简单的谷歌地图环境变量



尝试为ember简单的谷歌地图配置设置。

let ENV = {
modulePrefix: 'app-name',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {},
EXTEND_PROTOTYPES: {
Date: false
}
},
APP: {},
firebase: {
apiKey: "xxxxxx"
},
GOOGLE_MAPS_VERSION: '3.34',
GOOGLE_MAPS_API_KEY: 'xxxxxxxxxx'
};

根据文档,我应该能够设置这些变量,但它不起作用。版本未设置为最新版本,并且找不到API。有什么想法吗?我肯定我错过了一些非常明显的东西。。。

Aspects of the Google Maps Installation can be customized, by supplying environment variables to the server process.

好吧,这就是它的实现方式:

'ember-simple-google-maps': {
url: 'https://maps.googleapis.com/maps/api/js',
version: '3.34',
apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}

最新更新