comparison bandmap/static/js/bandmap.js @ 993:19b5a6ae3bca

Use https for google maps (bandmap & membermap).
author Brian Neal <bgneal@gmail.com>
date Sun, 01 Nov 2015 16:43:53 -0600
parents 497c720f9d0d
children
comparison
equal deleted inserted replaced
992:6816c5189525 993:19b5a6ae3bca
51 $.each(data, function(i, band) { 51 $.each(data, function(i, band) {
52 band_sel.append($('<option>', {value: i, text: band.name})); 52 band_sel.append($('<option>', {value: i, text: band.name}));
53 var marker = new google.maps.Marker({ 53 var marker = new google.maps.Marker({
54 position: {lat: band.lat, lng: band.lon}, 54 position: {lat: band.lat, lng: band.lon},
55 title: band.name, 55 title: band.name,
56 icon: band.is_active ? "http://maps.google.com/mapfiles/ms/icons/green-dot.png" 56 icon: band.is_active ? "https://maps.google.com/mapfiles/ms/icons/green-dot.png"
57 : "http://maps.google.com/mapfiles/ms/icons/red-dot.png", 57 : "https://maps.google.com/mapfiles/ms/icons/red-dot.png",
58 map: bandmap 58 map: bandmap
59 }); 59 });
60 google.maps.event.addListener(marker, 'click', function() { 60 google.maps.event.addListener(marker, 'click', function() {
61 info_win.setContent(band.note); 61 info_win.setContent(band.note);
62 info_win.open(bandmap, marker); 62 info_win.open(bandmap, marker);