Subversion Repositories eFlore/Applications.cel

Rev

Rev 2286 | Rev 2319 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2286 Rev 2287
Line 10... Line 10...
10
var infoBulle = new google.maps.InfoWindow();
10
var infoBulle = new google.maps.InfoWindow();
11
var pointClique = null;
11
var pointClique = null;
12
var carteCentre = new google.maps.LatLng(46.4, 3.10);
12
var carteCentre = new google.maps.LatLng(46.4, 3.10);
13
var carteOptions = {
13
var carteOptions = {
14
	zoom: 6,
14
	zoom: 6,
15
	mapTypeId: google.maps.MapTypeId.ROADMAP,
15
	mapTypeId: 'OSM',
16
	mapTypeControlOptions: {
16
	mapTypeControlOptions: {
17
		mapTypeIds: ['OSM', 
17
		mapTypeIds: ['OSM', 
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, 
Line 22... Line 22...
22
	}
22
	}
23
};			
23
};			
24
var ctaLayer = null;
24
var ctaLayer = null;
25
var osmMapType = new google.maps.ImageMapType({
25
var osmMapType = new google.maps.ImageMapType({
26
	getTileUrl: function(coord, zoom) {
26
	getTileUrl: function(coord, zoom) {
27
		return "http://tile.openstreetmap.org/" +
27
		return "http://osm.tela-botanica.org/tile/" + // cache de tuiles avec nginx
28
		zoom + "/" + coord.x + "/" + coord.y + ".png";
28
		zoom + "/" + coord.x + "/" + coord.y + ".png";
29
	},
29
	},
30
	tileSize: new google.maps.Size(256, 256),
30
	tileSize: new google.maps.Size(256, 256),
31
	isPng: true,
31
	isPng: true,
32
	alt: "OpenStreetMap",
32
	alt: "OpenStreetMap",