Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 268 Rev 276
Line 273... Line 273...
273
	
273
	
Line 274... Line 274...
274
	public void afficherInfoMarker(Marker marker) {
274
	public void afficherInfoMarker(Marker marker) {
Line -... Line 275...
-
 
275
		
-
 
276
		final String htmlBoutonOk = "<br /><button id=\"okMap\" class=\"x-btn-text\" type=\"button\">OK</button>";
-
 
277
 
-
 
278
		String contenuMarker = "";
-
 
279
		
-
 
280
		if(valeurCommune == null || valeurCommune.trim().equals("")) {
-
 
281
			contenuMarker = "<div id=\"info_contenu\">"+
-
 
282
			"Aucune commune française trouvée à cet emplacement <br />"
-
 
283
			+"Déplacez ce marqueur pour localiser votre observation (commune et coordonnées)<br />"
-
 
284
			+"longitude="
-
 
285
			+ marker.getLatLng().getLongitude() + "<br />latitude="
-
 
286
			+ marker.getLatLng().getLatitude() + "</div>";
-
 
287
		} else {
-
 
288
			contenuMarker = ""
-
 
289
			+valeurCommune+" ("+codeCommune+")<br />"
-
 
290
			+"longitude="
-
 
291
			+ marker.getLatLng().getLongitude() + "<br />latitude="
275
		
292
			+ marker.getLatLng().getLatitude() ;
276
		final String htmlBoutonOk = "<br /><button id=\"okMap\" class=\"x-btn-text\" type=\"button\">OK</button>";
-
 
277
 
293
		}
278
		info.open(marker, new InfoWindowContent(""
-
 
279
				+valeurCommune+" ("+codeCommune+")<br />"
294
		
Line 280... Line 295...
280
				+"longitude="
295
		info.open(marker, new InfoWindowContent(""
281
				+ marker.getLatLng().getLongitude() + "<br />latitude="
296
				+ contenuMarker
282
				+ marker.getLatLng().getLatitude() + htmlBoutonOk));
297
				+ htmlBoutonOk));