How to use ember-google-maps - 1 common examples

To help you get started, we’ve selected a few ember-google-maps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sandydoo / ember-google-maps / tests / helpers / g-map-helpers.js View on Github external
hooks.beforeEach(function() {
      setProperties(this, london);

      let testContext = this;
      let waiterFulfilled = false;

      this.owner.register('component:g-map', GMapComponent.extend({
        init() {
          this._super(...arguments);

          registerWaiter(() => {
            if (this._componentsInitialized === true) {
              if (!waiterFulfilled) {
                let { id, components, map } = this.publicAPI;
                setProperties(testContext, { id, components, map });
                waiterFulfilled = true;
              }

              return true;
            }
          });
        }
      }));

ember-google-maps

A friendly Ember addon for working with Google Maps.

MIT
Latest version published 1 day ago

Package Health Score

75 / 100
Full package analysis

Popular ember-google-maps functions