GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ember-admin/ember-cli-map: Ember Map provides you with google-map and yandex-map components.

BranchesTags
Open more actions menu

Latest commit

 

History

83 Commits
83 Commits

Folders and files

NameName
Last commit message
Last commit date
addon
addon
 
 
app/components
app/components
 
 
config
config
 
 
public
public
 
 
tests
tests
 
 
vendor
vendor
 
 
.bowerrc
.bowerrc
 
 
.ember-cli
.ember-cli
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
.travis.yml
.travis.yml
 
 
Brocfile.js
Brocfile.js
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
index.js
index.js
 
 
package.json
package.json
 
 
testem.json
testem.json
 
 

Repository files navigation

Ember Map

Build Status npm version

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'] // or
asYandexMap: ['lat', 'long', 'zoom']

###Example:

export default DS.Model.extend({
    lat:       DS.attr('number'),
    long:      DS.attr('number'),
    zoom:      DS.attr('number'),
    asGoogleMap: ['lat', 'long', 'zoom']
});

#In your template

{{google-map model=model action='updateModel'}}
{{yandex-map model=model action='updateModel'}}

#In your route/controller

actions: {
  updateModel(newCoordinates) {
    this.get('currentModel').setProperties(newCoordinates);
  }
}

License

[Licensed under MIT license] 1

About

Ember Map provides you with google-map and yandex-map components.

github.com/ember-admin/ember-cli-map

Resources

Readme
Activity
Custom properties

Stars

25 stars

Watchers

7 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.