Skip to content
Snippets Groups Projects
Commit f21ec861 authored by Kevin Abel's avatar Kevin Abel
Browse files

Remove logging and unused marker shadow

parent ab617b86
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,6 @@ UNLTourMap = (function() { ...@@ -26,7 +26,6 @@ UNLTourMap = (function() {
// Set up hash change monitoring // Set up hash change monitoring
$(window).bind('hashchange', function(e) { $(window).bind('hashchange', function(e) {
var code = location.hash.replace('#', ''); var code = location.hash.replace('#', '');
WDN.log("we have a hash: "+code);
if (WDN.analytics) { if (WDN.analytics) {
WDN.analytics.callTrackEvent('UNL_Map', 'showBuilding', code); WDN.analytics.callTrackEvent('UNL_Map', 'showBuilding', code);
...@@ -84,7 +83,6 @@ UNLTourMap = (function() { ...@@ -84,7 +83,6 @@ UNLTourMap = (function() {
url: UNL_TOUR_URL+'?view=search&q='+encodeURIComponent(request.term)+'&format=json', url: UNL_TOUR_URL+'?view=search&q='+encodeURIComponent(request.term)+'&format=json',
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
WDN.log('Caught search result data');
var rows = []; var rows = [];
var result = 0; var result = 0;
for (var code in data['buildings']) { for (var code in data['buildings']) {
...@@ -237,11 +235,9 @@ UNLTourMap = (function() { ...@@ -237,11 +235,9 @@ UNLTourMap = (function() {
if (typeof(display) == 'undefined') { if (typeof(display) == 'undefined') {
display = true; display = true;
} }
WDN.log('time to setup the markers for '+ markerType);
if (typeof(UNLTourMap.markerData[markerType]) == 'undefined') { if (typeof(UNLTourMap.markerData[markerType]) == 'undefined') {
$.getJSON(UNLTourMap.getMarkersJSONURL(markerType, campus), $.getJSON(UNLTourMap.getMarkersJSONURL(markerType, campus),
function (data) { function (data) {
WDN.log('we\'ve got the JSON');
UNLTourMap.markerData[markerType] = data[markerType]; UNLTourMap.markerData[markerType] = data[markerType];
UNLTourMap.handleJSONMarkers(markerType, UNLTourMap.markerData, true); UNLTourMap.handleJSONMarkers(markerType, UNLTourMap.markerData, true);
if (callback) { if (callback) {
...@@ -258,8 +254,6 @@ UNLTourMap = (function() { ...@@ -258,8 +254,6 @@ UNLTourMap = (function() {
}, },
handleJSONMarkers : function(markerType, data, display) { handleJSONMarkers : function(markerType, data, display) {
WDN.log('time to handle the JSON markers for '+ markerType);
WDN.log('we want the be displayed? '+ display);
for (var code in data[markerType]){ for (var code in data[markerType]){
UNLTourMap.addLocation(data[markerType][code], markerType, display); UNLTourMap.addLocation(data[markerType][code], markerType, display);
} }
...@@ -314,10 +308,8 @@ UNLTourMap = (function() { ...@@ -314,10 +308,8 @@ UNLTourMap = (function() {
}, },
toggleMarkers : function(markerType) { toggleMarkers : function(markerType) {
WDN.log('toggleMarkers('+markerType+')');
if (typeof(UNLTourMap.markers[markerType]) == 'undefined') { if (typeof(UNLTourMap.markers[markerType]) == 'undefined') {
UNLTourMap.setUpMarkers(markerType); UNLTourMap.setUpMarkers(markerType);
WDN.log('setting up markers for '+markerType+', baby');
} else { } else {
if ($("#check_" + markerType).hasClass('on')){ if ($("#check_" + markerType).hasClass('on')){
UNLTourMap.hideAllMarkers(markerType); UNLTourMap.hideAllMarkers(markerType);
...@@ -372,7 +364,6 @@ UNLTourMap = (function() { ...@@ -372,7 +364,6 @@ UNLTourMap = (function() {
map : UNLTourMap.map, map : UNLTourMap.map,
title : loc.name, title : loc.name,
icon : UNL_TOUR_URL+'images/markers/google/'+markerIcon+'.png', icon : UNL_TOUR_URL+'images/markers/google/'+markerIcon+'.png',
shadow : UNL_TOUR_URL+'images/markers/google/shadow.png',
visible : display visible : display
}); });
...@@ -478,7 +469,6 @@ UNLTourMap = (function() { ...@@ -478,7 +469,6 @@ UNLTourMap = (function() {
url: UNL_TOUR_URL+'busproxy.php', url: UNL_TOUR_URL+'busproxy.php',
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
WDN.log('Bus json retuned; UNLCacheTimeStamp: '+data.UNLCacheTimeStamp);
WDN.jQuery.each(data.VehicleArray, function(key, value) { WDN.jQuery.each(data.VehicleArray, function(key, value) {
if (UNLTourMap.buses[value.vehicle.id] == undefined) { if (UNLTourMap.buses[value.vehicle.id] == undefined) {
var marker = new google.maps.Marker({ var marker = new google.maps.Marker({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment