A lightweight, declarative, composable API for building ambitious map UIs in your Ember apps.
- β A lightweight Ember API for working with Google Maps.
- β An on-demand, asynchronous loader for the Google Maps API.
- β A bulky, verbose wrapper that reimplements the entire Google Maps API.
- β A whitelist or option validator that is tightly coupled to Google's API.
This addon is maintained by Sander Melnikov.
Feature | |
---|---|
Lightweight wrapper | β |
Async API loading | β |
Official Google API | β |
Leverages templates | β |
Contextual components | β |
Minimal observer usage | β |
Native Ember HTML markers | β |
If you don't need the Google API specifically, check out ember-leaflet.
Display a map centered around a set of coordinates πΊ.
Display an array of locations using markers π.
Display a custom overlay, like a custom HTML marker using template blocks π±. This lets you do all sorts of fancy things, like adding CSS animations and binding data.
git clone https://github.com/sandydoo/ember-google-maps.git
this repositorycd ember-google-maps
yarn
yarn lint:js
yarn lint:js --fix
The dummy app and test suite is run using a live map instance, which means you need an API key. I do not provide API keys for testing β you need to generate your own.
You can create an API key by following the instructions here: Create API key.
Assign this key to the GOOGLE_MAPS_API_KEY
variable in .env
or just run these lines, making sure to replace INSERT_YOUR_KEY_HERE
with your actual key.
touch .env & echo 'GOOGLE_MAPS_API_KEY=<INSERT_YOUR_KEY_HERE>' > .env
cp .env .env.test
ember test
β Runs the test suite on the current Ember versionember test --server
β Runs the test suite in "watch mode"ember try:each
β Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
MIT Β© Sander Melnikov.