尝试配置ember-simple-google-maps的设置。
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.
答案 0 :(得分:1)
好的,这就是完成的方式:
'ember-simple-google-maps': {
url: 'https://maps.googleapis.com/maps/api/js',
version: '3.34',
apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}