Created
November 4, 2011 01:12
-
-
Save nhunzaker/1338419 to your computer and use it in GitHub Desktop.
Article 1 - Twittermap Initialize
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
$(function() { | |
//... Mode, Collection, and View code ...// | |
//-- Initialize ---------------------------------------------------------------// | |
// Create an instance of the tweets collection | |
var tweets = new Tweets({ | |
model: Tweet | |
}); | |
// Create the Map view, binding it to the tweets collection | |
var twitter_map = new Map({ | |
collection: tweets | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment