Subversion Repositories eFlore/Applications.cel

Rev

Rev 1342 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1342 Rev 1444
Line 109... Line 109...
109
			ctaLayer.setMap(map);
109
			ctaLayer.setMap(map);
110
		}
110
		}
111
	}
111
	}
112
}
112
}
Line -... Line 113...
-
 
113
 
113
 
114
var pointCentreAvantAffichageInfoBulle = null;
114
function rafraichirCarte() {
115
function rafraichirCarte() {
115
	var points = [];
116
	var points = [];
116
	var bounds = new google.maps.LatLngBounds();
117
	var bounds = new google.maps.LatLngBounds();
117
	for (var i = 0; i < stations.stats.communes; ++i) {
118
	for (var i = 0; i < stations.stats.communes; ++i) {
Line 125... Line 126...
125
		});
126
		});
Line 126... Line 127...
126
 
127
 
Line 127... Line 128...
127
		bounds.extend(maLatLng);
128
		bounds.extend(maLatLng);
-
 
129
		
128
		
130
		google.maps.event.addListener(point, 'click', function() {
129
		google.maps.event.addListener(point, 'click', function() {
131
			pointCentreAvantAffichageInfoBulle = map.getCenter();
Line 130... Line 132...
130
			pointClique =  this;
132
			pointClique =  this;
131
			infoBulle.open(map, this);
133
			infoBulle.open(map, this);
Line 150... Line 152...
150
	
152
	
151
	executerMarkerClusterer(points, bounds);
153
	executerMarkerClusterer(points, bounds);
Line 152... Line 154...
152
}
154
}
153
 
155
 
154
function deplacerCartePointClique() {
156
function deplacerCartePointClique() {
Line 155... Line 157...
155
	map.panTo(pointClique.position);
157
	map.panTo(pointCentreAvantAffichageInfoBulle);
156
}
158
}
157
 
159