Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2267 Rev 2270
Line 41... Line 41...
41
	Marker nmk = null;
41
	Marker nmk = null;
Line 42... Line 42...
42
	
42
	
43
	private boolean carteAjoutee = false;
43
	private boolean carteAjoutee = false;
Line 44... Line 44...
44
	private boolean infoOuverte = false;
44
	private boolean infoOuverte = false;
45
	
45
	
46
	String valeurCommune = "Bourges";
46
	String valeurCommune = "Bourges"; // j'aurais préféré Bort-les-Orgues
47
	LatLng centreFrance = null;
47
	LatLng centreFrance = null;
Line 48... Line 48...
48
	LatLng pointCommune = null;
48
	LatLng pointCommune = null;
Line 242... Line 242...
242
			} catch (NumberFormatException nbe) {
242
			} catch (NumberFormatException nbe) {
Line 243... Line 243...
243
				
243
				
Line 244... Line 244...
244
			}
244
			}
245
			
245
			
246
			LatLng coord = LatLng.create(lat, lon);
246
			LatLng coord = LatLng.create(lat, lon);
-
 
247
 
247
			
248
			String nouvelleValeurCommune = infos.getZoneGeo();
248
			valeurCommune = infos.getZoneGeo();
249
			valeurCommune = nouvelleValeurCommune;
Line 249... Line 250...
249
			codeCommune = Util.convertirChaineZoneGeoVersDepartement(infos.getIdZoneGeo());
250
			codeCommune = Util.convertirChaineZoneGeoVersDepartement(infos.getIdZoneGeo());
250
			pointCommune = coord;
251
			pointCommune = coord;
Line 326... Line 327...
326
				LatLng point = centreFrance;
327
				LatLng point = centreFrance;
327
				marker.setPosition(point);
328
				marker.setPosition(point);
328
				niveauZoom = 6;
329
				niveauZoom = 6;
329
			}
330
			}
330
			contenuMarker = "<div id=\"info_contenu\">"+
331
			contenuMarker = "<div id=\"info_contenu\">"+
331
			"Aucune commune trouvée à cet emplacement <br />"
332
			"Aucun nom de lieu trouvé à cet emplacement <br />"
332
			+"Déplacez ce marqueur pour localiser votre observation (commune et coordonnées)<br />"
333
			+"Déplacez ce marqueur pour localiser votre observation (nom de lieu et coordonnées)<br />"
333
			+"longitude="
334
			+"longitude="
334
			+ marker.getPosition().lng() + "<br />latitude="
335
			+ marker.getPosition().lng() + "<br />latitude="
335
			+ marker.getPosition().lat() + "</div>";
336
			+ marker.getPosition().lat() + "</div>";
336
		} else {
337
		} else {
337
			contenuMarker = ""
338
			contenuMarker = ""