Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 440 Rev 463
Line 38... Line 38...
38
			var carteOptions = {
38
			var carteOptions = {
39
				zoom: 6,
39
				zoom: 6,
40
				center: carteCentre,
40
				center: carteCentre,
41
				mapTypeId: google.maps.MapTypeId.ROADMAP
41
				mapTypeId: google.maps.MapTypeId.ROADMAP
42
			};
42
			};
-
 
43
			var ctaLayer = null;
Line 43... Line 44...
43
			
44
			
44
			function refreshMap() {
45
			function refreshMap() {
45
				if (markerClusterer) {
46
				if (markerClusterer) {
46
					markerClusterer.clearMarkers();
47
					markerClusterer.clearMarkers();
Line 66... Line 67...
66
					
67
					
67
					points.push(point);
68
					points.push(point);
Line 68... Line 69...
68
				}
69
				}
-
 
70
 
-
 
71
				markerClusterer = new MarkerClusterer(map, points);
-
 
72
 
69
 
73
 
Line 70... Line 74...
70
				markerClusterer = new MarkerClusterer(map, points);
74
				
71
			}
75
			}
72
 
76
 
Line 83... Line 87...
83
				google.maps.event.trigger(map, 'resize');
87
				google.maps.event.trigger(map, 'resize');
84
			};
88
			};
Line 85... Line 89...
85
			
89
			
86
			function initialize() {
90
			function initialize() {
-
 
91
				map = new google.maps.Map(document.getElementById('carte'), carteOptions);
-
 
92
 
-
 
93
				// Ajout des limites communales sur la carte
-
 
94
				<? foreach ($url_limites_communales as $url) : ?>
-
 
95
					ctaLayer = new google.maps.KmlLayer('<?=$url?>');
-
 
96
					ctaLayer.setMap(map);
Line 87... Line 97...
87
				map = new google.maps.Map(document.getElementById('carte'), carteOptions);
97
				<? endforeach; ?>	
88
				
98
				
89
				// Create the DIV to hold the control and call the HomeControl()
99
				// Create the DIV to hold the control and call the HomeControl()
90
				// constructor passing in this DIV.
100
				// constructor passing in this DIV.