Changeset 9412 for extensions/edit_gmaps/admin/js/JScript.js
- Timestamp:
- Feb 28, 2011, 12:53:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/edit_gmaps/admin/js/JScript.js
r9377 r9412 89 89 updateMarkerStatus('Drag ended'); 90 90 getElevation({ 'latLng': marker.getPosition() }); 91 document.Envoie.alt.value = coordinates.ALT;91 92 92 93 93 } … … 103 103 geocodePosition(LatLng); 104 104 getElevation({ 'latLng': marker.getPosition() }); 105 document.Envoie.alt.value = coordinates.ALT;105 106 106 return false; 107 107 … … 120 120 document.Envoie.lon.value = latLng.lng(); 121 121 dms_frac = dec2dms(latLng.lng()); 122 if (d ms_frac.Degre < 0)123 124 else 125 122 if (document.Envoie.lon.value < 0) 123 document.Envoie.lonRef.value = "W"; 124 else 125 document.Envoie.lonRef.value = "E"; 126 126 document.Envoie.lonDMS.value = Math.abs(dms_frac.Degre) +"/1" + " " + dms_frac.Minute +"/1" + " " + dms_frac.Numerator + "/" + dms_frac.Denominator; 127 127 dms_frac = dec2dms(latLng.lat()); 128 if (d ms_frac.Degre < 0)128 if (document.Envoie.lat.value < 0) 129 129 document.Envoie.latRef.value = "S"; 130 130 else 131 131 document.Envoie.latRef.value = "N"; 132 132 document.Envoie.latDMS.value = Math.abs(dms_frac.Degre) + "/1" + " " + dms_frac.Minute + "/1" + " " + dms_frac.Numerator + "/" + dms_frac.Denominator; 133 update_datas();133 // update_datas(); 134 134 } 135 135 … … 197 197 coordinates.ALT = results[0].elevation; 198 198 document.Envoie.alt.value = coordinates.ALT; 199 update_datas(); 200 //styleIcon.set("text", "Elevation: " + results[0].elevation + "m"); 199 altDMS = dec2frac(coordinates.ALT); 200 document.Envoie.altRef.value = "0"; 201 document.Envoie.altDMS.value = altDMS.Numerator + "/" + altDMS.Denominator; 202 //styleIcon.set("text", "Elevation: " + results[0].elevation + "m"); 201 203 } else { 202 // alert("No results found");204 // alert("No results found"); 203 205 } 204 206 } else {
Note: See TracChangeset
for help on using the changeset viewer.