Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2015 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/600490be59032ad9b7e7 to your computer and use it in GitHub Desktop.
Save anonymous/600490be59032ad9b7e7 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Controller.extend({
defaultZoom:11,
centerLat: 38.98,
centerLng: -94.68,
mapType: "ROADMAP",
markersList: function() {
Ember.Logger.debug('log value of foo:', markers.length);
var markers = [];
for(station in this.model.data)
{
markers.push({
"title": station.attributes.name,
"lat": station.attributes.latitude,
"lng": station.attributes.longitude,
"body": station.attributes.name
})
}
return markers;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment