| Line 22... |
Line 22... |
| 22 |
import org.tela_botanica.client.vues.observation.indicateurs.InformationRepartitionVue;
|
22 |
import org.tela_botanica.client.vues.observation.indicateurs.InformationRepartitionVue;
|
| 23 |
import org.tela_botanica.client.vues.observation.indicateurs.LienExterneVue;
|
23 |
import org.tela_botanica.client.vues.observation.indicateurs.LienExterneVue;
|
| 24 |
import org.tela_botanica.client.vues.observation.indicateurs.MiniZoomImageVue;
|
24 |
import org.tela_botanica.client.vues.observation.indicateurs.MiniZoomImageVue;
|
| Line 25... |
Line 25... |
| 25 |
|
25 |
|
| 26 |
import com.google.gwt.core.client.GWT;
|
- |
|
| 27 |
import com.google.gwt.maps.client.geom.LatLng;
|
26 |
import com.google.gwt.core.client.GWT;
|
| 28 |
import com.google.gwt.user.client.History;
|
27 |
import com.google.gwt.user.client.History;
|
| 29 |
import com.google.gwt.user.client.Window;
|
28 |
import com.google.gwt.user.client.Window;
|
| 30 |
import com.gwtext.client.core.EventObject;
|
29 |
import com.gwtext.client.core.EventObject;
|
| 31 |
import com.gwtext.client.core.Ext;
|
30 |
import com.gwtext.client.core.Ext;
|
| Line 208... |
Line 207... |
| 208 |
formulaireSaisieObservationVue.setAutoScroll(true) ;
|
207 |
formulaireSaisieObservationVue.setAutoScroll(true) ;
|
| Line 209... |
Line 208... |
| 209 |
|
208 |
|
| 210 |
fenetreCarto = new com.gwtext.client.widgets.Window();
|
209 |
fenetreCarto = new com.gwtext.client.widgets.Window();
|
| 211 |
fenetreCarto.setConstrain(true);
|
210 |
fenetreCarto.setConstrain(true);
|
| - |
|
211 |
fenetreCarto.setModal(true);
|
| Line 212... |
Line 212... |
| 212 |
fenetreCarto.setModal(true);
|
212 |
fenetreCarto.setCloseAction(com.gwtext.client.widgets.Window.HIDE);
|
| Line 213... |
Line 213... |
| 213 |
|
213 |
|
| 214 |
fenetreCarto.add(cartoObservationVue);
|
214 |
fenetreCarto.add(cartoObservationVue);
|
| Line 1125... |
Line 1125... |
| 1125 |
|
1125 |
|
| 1126 |
public void transmettreDonnees(Object o) {
|
1126 |
public void transmettreDonnees(Object o) {
|
| 1127 |
carnetEnLigneMediateur.donneesObsVersImages(o);
|
1127 |
carnetEnLigneMediateur.donneesObsVersImages(o);
|
| Line 1128... |
Line 1128... |
| 1128 |
}
|
1128 |
}
|
| 1129 |
|
1129 |
|
| 1130 |
public void obtenirInformationCoord(Rafraichissable r, LatLng coord) {
|
1130 |
public void obtenirInformationCoord(Rafraichissable r, double lat, double lng) {
|
| Line 1131... |
Line 1131... |
| 1131 |
observationModele.obtenirInformationCoord(r,coord);
|
1131 |
observationModele.obtenirInformationCoord(r, lat, lng);
|
| 1132 |
}
|
1132 |
}
|
| 1133 |
|
1133 |
|
| Line 1134... |
Line 1134... |
| 1134 |
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
|
1134 |
public void obtenirInformationCommune(Rafraichissable r, String nomCommune, String codePostal) {
|
| 1135 |
observationModele.obtenirInformationCommune(r,nomCommune, codePostal);
|
1135 |
observationModele.obtenirInformationCommune(r,nomCommune, codePostal);
|
| 1136 |
}
|
1136 |
}
|
| Line 1137... |
Line 1137... |
| 1137 |
|
1137 |
|
| 1138 |
public void obtenirInformationCoord(LatLng coord) {
|
1138 |
public void obtenirInformationCoord(double lat, double lng) {
|
| 1139 |
observationModele.obtenirInformationCoord(cartoObservationVue,coord);
|
1139 |
observationModele.obtenirInformationCoord(cartoObservationVue, lat, lng);
|
| Line 1200... |
Line 1200... |
| 1200 |
|
1200 |
|
| Line 1201... |
Line 1201... |
| 1201 |
cartoObservationVue.rafraichir(egeo, false);
|
1201 |
cartoObservationVue.rafraichir(egeo, false);
|
| 1202 |
|
1202 |
|
| 1203 |
} else {
|
- |
|
| 1204 |
if(formulaireSaisieObservationVue.coordonneesValides() != null) {
|
1203 |
} else {
|
| 1205 |
LatLng coords = LatLng.newInstance(coordsTab[0],coordsTab[1]);
|
1204 |
if(formulaireSaisieObservationVue.coordonneesValides() != null) {
|
| 1206 |
obtenirInformationCoord(coords);
|
1205 |
obtenirInformationCoord(coordsTab[0],coordsTab[1]);
|
| 1207 |
} else if (formulaireSaisieObservationVue.communeInitialisee()) {
|
1206 |
} else if (formulaireSaisieObservationVue.communeInitialisee()) {
|
| 1208 |
String nomCommune = formulaireSaisieObservationVue.getCommune();
|
1207 |
String nomCommune = formulaireSaisieObservationVue.getCommune();
|
| 1209 |
String dptCommune = formulaireSaisieObservationVue.getDepartement();
|
1208 |
String dptCommune = formulaireSaisieObservationVue.getDepartement();
|
| - |
|
1209 |
obtenirInformationCommune(nomCommune, dptCommune);
|
| 1210 |
obtenirInformationCommune(nomCommune, dptCommune);
|
1210 |
} else {
|
| 1211 |
} else {
|
1211 |
double[] coordsCentreFrance = cartoObservationVue.getCoordsCentreFrance();
|
| 1212 |
obtenirInformationCoord(cartoObservationVue.getCentreFrance());
|
1212 |
obtenirInformationCoord(coordsCentreFrance[0], coordsCentreFrance[1]);
|
| 1213 |
}
|
1213 |
}
|
| Line 1214... |
Line 1214... |
| 1214 |
}
|
1214 |
}
|