【问题标题】:How can I set ember-simple-google-maps env variables?如何设置 ember-simple-google-maps 环境变量?
【发布时间】:2018-11-12 21:46:40
【问题描述】:

正在尝试为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.

【问题讨论】:

    标签: javascript google-maps ember.js configuration


    【解决方案1】:

    好的,这就是它的完成方式:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-31
      • 2021-06-12
      • 1970-01-01
      • 2019-07-02
      • 2014-09-29
      • 1970-01-01
      • 2019-04-17
      相关资源
      最近更新 更多