Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2285 Rev 2290
Line 16... Line 16...
16
	pointClique = null,
16
	pointClique = null,
17
	carteCentre = new google.maps.LatLng(25, 10),
17
	carteCentre = new google.maps.LatLng(25, 10),
18
	carteOptions = {
18
	carteOptions = {
19
		zoom: 3,
19
		zoom: 3,
20
		center:carteCentre,
20
		center:carteCentre,
21
		mapTypeId: google.maps.MapTypeId.ROADMAP,
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, 
Line 32... Line 32...
32
		},
32
		},
33
		panControl: false
33
		panControl: false
34
	},
34
	},
35
	osmMapType = new google.maps.ImageMapType({
35
	osmMapType = new google.maps.ImageMapType({
36
		getTileUrl: function(coord, zoom) {
36
		getTileUrl: function(coord, zoom) {
37
			return "http://tile.openstreetmap.org/" +
37
			return "http://osm.tela-botanica.org/tile/" + // cache de tuiles avec nginx
38
			zoom + "/" + coord.x + "/" + coord.y + ".png";
38
			zoom + "/" + coord.x + "/" + coord.y + ".png";
39
		},
39
		},
40
		tileSize: new google.maps.Size(256, 256),
40
		tileSize: new google.maps.Size(256, 256),
41
		isPng: true,
41
		isPng: true,
42
		alt: "OpenStreetMap",
42
		alt: "OpenStreetMap",