Permalink
Browse files

Expand to tweets around the world

  • Loading branch information...
Brandon Tilley
Brandon Tilley committed Dec 15, 2013
1 parent b540aac commit d4a47726d61a2548ffbf96ef6a8ffa89938d4670
Showing with 5 additions and 5 deletions.
  1. +1 −1 README.md
  2. +1 −1 lib/live-twitter-map.coffee
  3. +2 −2 lib/public/client.coffee
  4. +1 −1 lib/public/client.htm
View
@@ -1,4 +1,4 @@
-This is a small project I put together to experiment with the Twitter Streaming API. It pulls in all the Tweets in (approximately) the continental United States and displays them in real time on a map.
+This is a small project I put together to experiment with the Twitter Streaming API. It pulls in all the geolocated tweets from the streaming API and displays them in real time on a map.
Demo
====
@@ -59,7 +59,7 @@ exports.LiveTwitterMap = class LiveTwitterMap
@api.verifyCredentials (err, data) ->
throw err if err?
console.log "Authenticated with Twitter"
- @api.stream 'statuses/filter', locations: [-127, 25, -58, 49], (stream) =>
+ @api.stream 'statuses/filter', locations: [-180, -90, 180, 90], (stream) =>
@stream = stream
stream.on 'error', (err) =>
throw err
View
@@ -100,6 +100,6 @@ $ ->
marker.setMap null
@infowindow = false if marker.auto_infowindow
- # Create a new map with a 10% auto-show chance, centered on the US at zoom level 5
- window.view = new LiveMapView new LatLng(40, -95), 5
+ # Create a new map with a 10% auto-show chance
+ window.view = new LiveMapView new LatLng(20, -20), 3
window.Map = new LiveMap 10, view
View
@@ -57,7 +57,7 @@
</head>
<body>
<div id="map_canvas"></div>
- <div id="title">Tweets Around the US</div>
+ <div id="title">Tweets Around the World</div>
<div id="counter">0</div>
</body>
</html>

0 comments on commit d4a4772

Please sign in to comment.