Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1788 Rev 1797
Line 13... Line 13...
13
coucheSatellite = new L.TileLayer("http://mt1.google.com/vt/lyrs=y@218131653&hl=fr&src=app&x={x}&y={y}&z={z}",
13
coucheSatellite = new L.TileLayer("http://mt1.google.com/vt/lyrs=y@218131653&hl=fr&src=app&x={x}&y={y}&z={z}",
14
	optionsCoucheGoogle),
14
	optionsCoucheGoogle),
15
optionsCarte = {
15
optionsCarte = {
16
	center : new L.LatLng(46, 2),
16
	center : new L.LatLng(46, 2),
17
	zoom : 6,
17
	zoom : 6,
18
	layers : [coucheSatellite]
18
	layers : [coucheOSM]
19
};
19
};
Line 20... Line 20...
20
 
20
 
21
var xmlHttpRequest = null,
21
var xmlHttpRequest = null,
22
	nombreCollections = 0,
22
	nombreCollections = 0,
Line 59... Line 59...
59
	$("#map").height($(window).height());
59
	$("#map").height($(window).height());
60
}
60
}
Line 61... Line 61...
61
 
61
 
62
function initialiserCarte() {
62
function initialiserCarte() {
63
	map = L.map('map', optionsCarte);
63
	map = L.map('map', optionsCarte);
64
	coucheSatellite.addTo(map);
64
	coucheOSM.addTo(map);
65
	coucheStructures.addTo(map);
65
	coucheStructures.addTo(map);
66
	map.on('zoomend', function() {
66
	map.on('zoomend', function() {
67
		// controle sur le niveau de zoom uniquement a la fin du placement des structures sur la carte 
67
		// controle sur le niveau de zoom uniquement a la fin du placement des structures sur la carte 
68
		if (chargementEnCours) {
68
		if (chargementEnCours) {