Mercurial > public > sg101
diff bandmap/static/js/bandmap.js @ 830:b9973588af28
Bandmap: use green & red markers for active/inactive.
Other tweaks to admin & added explanatory text.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Sep 2014 15:23:15 -0500 |
parents | 5103edd3acc4 |
children | c285a86fb4d5 |
line wrap: on
line diff
--- a/bandmap/static/js/bandmap.js Sun Sep 28 11:48:23 2014 -0500 +++ b/bandmap/static/js/bandmap.js Sun Sep 28 15:23:15 2014 -0500 @@ -53,7 +53,10 @@ var marker = new google.maps.Marker({ position: {lat: band.lat, lng: band.lon}, title: band.name, + icon: band.is_active ? "http://maps.google.com/mapfiles/ms/icons/green-dot.png" + : "http://maps.google.com/mapfiles/ms/icons/red-dot.png", map: bandmap + }); google.maps.event.addListener(marker, 'click', function() { info_win.setContent(band.note);