Created
May 5, 2012 23:08
-
-
Save kjellski/2606224 to your computer and use it in GitHub Desktop.
backbone.js and gmaps4rails
This file contains hidden or 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
| class Raffler.Views.MapMarkersIndex extends Backbone.View | |
| template: JST['map_markers/index'] | |
| render: (markers) -> | |
| console.log "Raffler.Views.MapMarkersIndex render" | |
| $(@el).html(@template()) | |
| @loadGoogleMaps(markers) | |
| this | |
| loadGoogleMaps: (markers) -> | |
| console.log "loading GlobalMaps" | |
| map = new Gmaps4RailsGoogle() #new Gmaps4RailsGoogle() | |
| # --> what needs to go here? | |
| # map.initialize() | |
| # map.loadMaps() | |
| # ^- not working... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment