Skip to content

Commit

Permalink
get 200 at a time and zoom out by default in google maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jjwyse committed Nov 7, 2014
1 parent dee2d6b commit b4ae498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/js/strava-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function initialize() {
var stravaMap = new google.maps.StyledMapType(styles, { name : 'Strava' });
var types = [ 'map_fg', google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID ];
var map_options = {
// TODO - use HTML 5 geo location
center : new google.maps.LatLng(39.7392, -104.9842),
zoom : 8,
mapTypeId : google.maps.MapTypeId.ROADMAP,
Expand Down
4 changes: 2 additions & 2 deletions routes/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ exports.listActivities = function(req, res) {
}

var activities = [];
retrieve(req, res, 1, 2, activities);
/* Retrieves all of your activities by paginating through everything from Strava. */
retrieve(req, res, 1, 200, activities);
};

function retrieve(req, res, page, per_page, activities) {
Expand All @@ -19,7 +20,6 @@ function retrieve(req, res, page, per_page, activities) {
.headers({'Content-Type': 'application/json'})
.headers({'Authorization': 'Bearer ' + req.session.stravaAuth})
.end(function (stravaResponse) {
debugger;
console.log("Strava response code: " + res.statusCode);
if(stravaResponse.code != 200) {
console.log("Failed to retrieve activities from Strava");
Expand Down

0 comments on commit b4ae498

Please sign in to comment.