Skip to content

Commit

Permalink
cf brutasse#37 - peopleArray is no more used
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Sep 24, 2012
1 parent 178ce98 commit b811b37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
30 changes: 0 additions & 30 deletions djangopeople/djangopeople/static/djangopeople/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,6 @@ function plotPeopleOnMap(people, map) {
return bounds;
}


function hidePeopleOnMap(peopleArray) {
if (peopleArray) {
for (i in peopleArray) {
peopleArray[i].setMap(null);
}
}
}

function showPeopleOnMap(peopleArray, map) {
if (peopleArray) {
for (i in peopleArray) {
peopleArray[i].addTo(map);
}
}
}

// Creates a Marker object for a person
function getPersonMarker(person) {
var lat = person[0];
Expand All @@ -69,19 +52,6 @@ function getPersonMarker(person) {
return marker;
}

/* Creates an array of person Markers for easier toggling
* of their visibility on the map.
*/
function getPeopleArray(peopleList) {
var peopleArray = [];
$.each(peopleList, function(index, person) {
var marker = getPersonMarker(person);
peopleArray.push(marker);
});

return peopleArray;
}

function greenIconImage() {
var greenIcon = L.icon({
iconUrl: STATIC_URL + 'djangopeople/img/green-bubble.png',
Expand Down
5 changes: 0 additions & 5 deletions djangopeople/djangopeople/static/djangopeople/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function shrinkMap (map, latlng) {
opacity: 1.0
}, 500, 'swing', function() {
map._onResize()
// showPeopleOnMap(peopleArray, map);

// Unbind event so user can actually interact with map
$('#map').unbind('click', onMapClicked);
Expand All @@ -59,10 +58,6 @@ function shrinkMap (map, latlng) {
icon: greenIconImage(),
}).addTo(map);

//gets an array of person map markers, used for hiding and showing them on
//the map
// var peopleArray = getPeopleArray(nearby_people);

};

jQuery(function($) {
Expand Down

0 comments on commit b811b37

Please sign in to comment.