Created
September 23, 2015 14:42
-
-
Save anonymous/600490be59032ad9b7e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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