Ember Map
Ember Map provides you with google-map and yandex-map components.
Add Maps Libraries
To use google apiKey you need to set it in config/environment.js
.
ENV'ember-cli-map' = googleApiKey: 'MYsecretKEY';
Model Setup
Declare fields to use with map component:
asGoogleMap: 'lat' 'long' 'zoom' // orasYandexMap: 'lat' 'long' 'zoom'
Example:
Model;
In your template
{{google-map model=model action='updateModel'}}
{{yandex-map model=model action='updateModel'}}
In your route/controller
actions: { this; }
License
[Licensed under MIT license] 1