75,12 → 75,14 |
function getUrlVars() |
{ |
var vars = [], hash; |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
for(var i = 0; i < hashes.length; i++) |
{ |
hash = hashes[i].split('='); |
vars.push(hash[0]); |
vars[hash[0]] = hash[1]; |
if(window.location.href.indexOf('?') != -1) { |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
for(var i = 0; i < hashes.length; i++) |
{ |
hash = hashes[i].split('='); |
vars.push(hash[0]); |
vars[hash[0]] = hash[1]; |
} |
} |
return vars; |
} |
280,33 → 282,6 |
map.panToBounds(bounds); |
} |
|
function programmerRafraichissementCarteSauv() { |
|
var points = []; |
var bounds = new google.maps.LatLngBounds(); |
for (var i = 0; i < stations.points.length; ++i) { |
var point = stations.points[i]; |
var maLatLng = new google.maps.LatLng(point.lat, point.lng); |
var stationImage = attribuerImageMarqueur(point.id); |
var point = new google.maps.Marker({ |
position: maLatLng, |
map: map, |
icon: stationImage, |
stationInfos: point |
}); |
bounds.extend(maLatLng); |
google.maps.event.addListener(point, 'click', surClickMarqueur); |
points.push(point); |
} |
|
if (pointsOrigine == null && boundsOrigine == null) { |
pointsOrigine = points; |
boundsOrigine = bounds; |
} |
|
executerMarkerClusterer(points, bounds); |
} |
|
function attribuerImageMarqueur(id, nbreMarqueur) { |
var marqueurImage = null; |
if (etreMarqueurCommune(id)) { |