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.
View guides and documentation ›
This addon is maintained by Sander Melnikov @ campusboard.
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
npm install
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
Run live tests:
ember test --server
Run test suite against all target versions:
ember try:each
ember serve