Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 571 Rev 573
Line 86... Line 86...
86
						}
86
						}
87
						return false;
87
						return false;
88
					});
88
					});
89
				}
89
				}
90
			});
90
			});
-
 
91
			google.maps.event.addListener(infoBulle, 'closeclick', function() {
-
 
92
				map.panTo(pointClique.position);
-
 
93
			});
-
 
94
			
-
 
95
			var pointClique = null;
Line 91... Line 96...
91
			
96
			
92
			var carteCentre = new google.maps.LatLng(46.4, 3.10);
97
			var carteCentre = new google.maps.LatLng(46.4, 3.10);
93
			var carteOptions = {
98
			var carteOptions = {
94
				zoom: 6,
99
				zoom: 6,
Line 112... Line 117...
112
					});
117
					});
Line 113... Line 118...
113
 
118
 
Line 114... Line 119...
114
					bounds.extend(maLatLng);
119
					bounds.extend(maLatLng);
-
 
120
					
-
 
121
					google.maps.event.addListener(point, 'click', function() {
-
 
122
						pointClique =  this;
-
 
123
						
115
					
124
						infoBulle.open(map, this);
116
					google.maps.event.addListener(point, 'click', function() {
125
						
117
						var limites = map.getBounds();
126
						var limites = map.getBounds();
118
						var centre = limites.getCenter();
127
						var centre = limites.getCenter();
-
 
128
						var nordEst = limites.getNorthEast();
Line 119... Line -...
119
						var nordEst = limites.getNorthEast();
-
 
120
						var centreSudLatLng = new google.maps.LatLng(nordEst.lat(), centre.lng());
129
						var centreSudLatLng = new google.maps.LatLng(nordEst.lat(), centre.lng());
121
						
130
						map.panTo(centreSudLatLng);
122
						infoBulle.open(map, this);
-
 
123
						afficherMsgChargement();
-
 
124
						chargerFormatObs(this.stationId, '*');
131
						
Line 125... Line 132...
125
						
132
						afficherMsgChargement();
126
						map.panTo(centreSudLatLng);
133
						chargerFormatObs(this.stationId, '*');