Skip to content

Commit

Permalink
updated map zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey007 committed Nov 24, 2018
1 parent e543fe2 commit aea1a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/javascript/events.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Default API Setting
var eventType="";
var eventType;
var address;
var dateRange = "future";
var noOfRecords = 20;
Expand Down Expand Up @@ -56,7 +56,7 @@ function queryEvents(eventType, address, noOfRecords, dateRange)
image_sizes: "medium,perspectivecrop290by250",
page_number: pageNum
};
console.log("API query URL example: http://api.eventful.com/json/events/search?category=music&app_key=Gp5KnQs4HTZ9gpPJ&location=Fullerton&date=future&page_size=12&page_number=1&within=50&sort_order=popularity&image_sizes=medium,perspectivecrop290by250&include=categories");
// console.log("API query URL example: http://api.eventful.com/json/events/search?category=music&app_key=Gp5KnQs4HTZ9gpPJ&location=Fullerton&date=future&page_size=12&page_number=1&within=50&sort_order=popularity&image_sizes=medium,perspectivecrop290by250&include=categories");

console.log(`Current API query URL: http://api.eventful.com/json/events/search?category=${oArgs.category}&app_key=${oArgs.app_key}&location=${address}&date=${dateRange}&page_size=${noOfRecords}&page_number=${pageNum}&within=${oArgs.within}&sort_order=${oArgs.sort_order}&image_sizes=${oArgs.image_sizes}&include=categories`);

Expand Down Expand Up @@ -85,7 +85,7 @@ function queryEvents(eventType, address, noOfRecords, dateRange)
cloneEvent = Object.assign({}, event);
events.push(cloneEvent);
createEventDiv(cloneEvent);
console.log("Event #" + (i+1) + " displayed.");
// console.log("Event #" + (i+1) + " displayed.");
showLoader = false;
loaderStatusCheck();
$("#next-events").removeClass("hidden");
Expand Down
4 changes: 2 additions & 2 deletions assets/javascript/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function displayOnMap(cityName){
lng: 0
};
map = new google.maps.Map(document.getElementById('mapDisplay'),{
zoom: 12,
zoom: 10,
center: pos
});
};
Expand Down Expand Up @@ -57,7 +57,7 @@ function initMap() {
lng: position.coords.longitude
};
map = new google.maps.Map(document.getElementById('mapDisplay'),{
zoom: 12,
zoom: 10,
center: pos
});
marker = new google.maps.Marker({
Expand Down

0 comments on commit aea1a7f

Please sign in to comment.