Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2340 Rev 2344
Line 18... Line 18...
18
		             google.maps.MapTypeId.ROADMAP, 
18
		             google.maps.MapTypeId.ROADMAP, 
19
		             google.maps.MapTypeId.HYBRID, 
19
		             google.maps.MapTypeId.HYBRID, 
20
		             google.maps.MapTypeId.SATELLITE, 
20
		             google.maps.MapTypeId.SATELLITE, 
21
		             google.maps.MapTypeId.TERRAIN]
21
		             google.maps.MapTypeId.TERRAIN]
22
	},
22
	},
23
	scaleControl: true
23
	scaleControl: true,
-
 
24
	center: carteCentre
24
};			
25
};			
25
var ctaLayer = null;
26
var ctaLayer = null;
26
var osmMapType = new google.maps.ImageMapType({
27
var osmMapType = new google.maps.ImageMapType({
27
	getTileUrl: function(coord, zoom) {
28
	getTileUrl: function(coord, zoom) {
28
		return "http://osm.tela-botanica.org/tuiles/osmfr/" + // cache de tuiles avec nginx
29
		return "http://osm.tela-botanica.org/tuiles/osmfr/" + // cache de tuiles avec nginx
Line 170... Line 171...
170
function deplacerCartePointClique() {
171
function deplacerCartePointClique() {
171
	map.panTo(pointClique.position);
172
	map.panTo(pointClique.position);
172
}
173
}
Line 173... Line 174...
173
 
174
 
-
 
175
function executerMarkerClusterer(points, bounds) {
174
function executerMarkerClusterer(points, bounds) {
176
	if (points.length > 0) {
175
	if (markerClusterer) {
177
		if (markerClusterer) {
-
 
178
			markerClusterer.clearMarkers();
-
 
179
		}
-
 
180
		markerClusterer = new MarkerClusterer(map, points);
176
		markerClusterer.clearMarkers();
181
		map.fitBounds(bounds);
177
	}
-
 
178
	markerClusterer = new MarkerClusterer(map, points);
-
 
179
	map.fitBounds(bounds);
182
	}
Line 180... Line 183...
180
}
183
}
181
 
184