Skip to content

Instantly share code, notes, and snippets.

@nhunzaker
Created November 4, 2011 01:12
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 nhunzaker/1338419 to your computer and use it in GitHub Desktop.
Save nhunzaker/1338419 to your computer and use it in GitHub Desktop.
Article 1 - Twittermap Initialize
$(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