Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2318 Rev 2323
Line 18... Line 18...
18
	carteOptions = {
18
	carteOptions = {
19
		zoom: 3,
19
		zoom: 3,
20
		center:carteCentre,
20
		center:carteCentre,
21
		mapTypeId: 'OSM',
21
		mapTypeId: 'OSM',
22
		mapTypeControlOptions: {
22
		mapTypeControlOptions: {
23
			mapTypeIds: ['OSM', 
23
			mapTypeIds: ['OSM',
24
				google.maps.MapTypeId.ROADMAP, 
24
				google.maps.MapTypeId.ROADMAP, 
25
				google.maps.MapTypeId.HYBRID, 
25
				google.maps.MapTypeId.HYBRID, 
26
				google.maps.MapTypeId.SATELLITE, 
26
				google.maps.MapTypeId.SATELLITE, 
27
				google.maps.MapTypeId.TERRAIN]
27
				google.maps.MapTypeId.TERRAIN]
28
		},
28
		},
Line 33... Line 33...
33
		},
33
		},
34
		panControl: false
34
		panControl: false
35
	},
35
	},
36
	osmMapType = new google.maps.ImageMapType({
36
	osmMapType = new google.maps.ImageMapType({
37
		getTileUrl: function(coord, zoom) {
37
		getTileUrl: function(coord, zoom) {
38
			return "http://osm.tela-botanica.org/tile/" + // cache de tuiles avec nginx
38
			return "http://osm.tela-botanica.org/tuiles/osmfr/" + // cache de tuiles avec nginx
39
			zoom + "/" + coord.x + "/" + coord.y + ".png";
39
			zoom + "/" + coord.x + "/" + coord.y + ".png";
40
		},
40
		},
41
		tileSize: new google.maps.Size(256, 256),
41
		tileSize: new google.maps.Size(256, 256),
42
		isPng: true,
42
		isPng: true,
43
		alt: "OpenStreetMap",
43
		alt: "OpenStreetMap",