Permalink
Browse files

Fehler in speichereKoordinaten behoben

  • Loading branch information...
1 parent 2ec5bdd commit 9fd058571ab23de95ca394d4274f31a765863128 @barbalex committed May 24, 2012
Showing with 15 additions and 13 deletions.
  1. +4 −4 _attachments/Karte.html
  2. +11 −9 vendor/couchapp/_attachments/evab.js
View
@@ -326,7 +326,7 @@
map: map,
position: latlng2,
//title muss String sein
- title: beob.aArtName.toString(),
+ title: beob.aArtName.toString() || "",
icon: image,
labelContent: beob.aArtName,
labelAnchor: new google.maps.Point(22, 0),
@@ -401,7 +401,7 @@
position: latlng,
map: map,
//title muss String sein
- title: localStorage.aArtName.toString(),
+ title: localStorage.aArtName.toString() || "",
icon: image,
draggable: true
});
@@ -422,7 +422,7 @@
});
InfoWindowArray.push(infowindow);
google.maps.event.addListener(marker, 'click', function () {
- infowindow.open(map,marker);
+ infowindow.open(map,marker);
});
google.maps.event.addListener(marker, "dragend", function (event) {
SetLocationBeobEdit(event.latLng, map, marker);
@@ -460,7 +460,7 @@
position: location,
map: map,
//title muss String sein
- title: localStorage.aArtName.toString(),
+ title: localStorage.aArtName.toString() || "",
icon: image,
draggable: true
});
@@ -1437,22 +1437,24 @@ function speichereKoordinaten_2(DatensatzObjektName) {
var FelderArray;
FelderArray = ["oLongitudeDecDeg", "oLongitudeDecDeg", "oLatitudeDecDeg", "oXKoord", "oYKoord", "oLagegenauigkeit", "oHöhe", "oHöheGenauigkeit"];
for (i in FelderArray) {
+ //alert("FelderArray[i] = " + FelderArray[i])
if (typeof i !== "function") {
- if (window[DatensatzObjektName][i]) {
- if (localStorage[i]) {
- if (myTypeOf(i) === "integer") {
+ //if (window[DatensatzObjektName][i]) {
+ if (localStorage[FelderArray[i]]) {
+ //alert(window[DatensatzObjektName][FelderArray[i]] + " = " + localStorage[FelderArray[i]]);
+ if (myTypeOf(localStorage[FelderArray[i]]) === "integer") {
//Wert ist Int
- window[DatensatzObjektName][i] = parseInt(localStorage[i]);
- } else if (myTypeOf(i) === "float") {
+ window[DatensatzObjektName][FelderArray[i]] = parseInt(localStorage[FelderArray[i]]);
+ } else if (myTypeOf(localStorage[FelderArray[i]]) === "float") {
//i ist Float
- window[DatensatzObjektName][i] = parseFloat(localStorage[i]);
+ window[DatensatzObjektName][FelderArray[i]] = parseFloat(localStorage[FelderArray[i]]);
} else {
- window[DatensatzObjektName][i] = localStorage[i];
+ window[DatensatzObjektName][FelderArray[i]] = localStorage[FelderArray[i]];
}
} else {
- delete window[DatensatzObjektName][i];
+ delete window[DatensatzObjektName][FelderArray[i]];
}
- }
+ //}
}
}
//alles speichern

0 comments on commit 9fd0585

Please sign in to comment.