diff --git a/images/earth.html b/images/earth.html index 36438126cd2206690ee0caf7eed8c56d854efa96..260f8eb7b872eee770b920ac4b3aabbbbe7f13aa 100644 --- a/images/earth.html +++ b/images/earth.html @@ -1,4 +1,4 @@ - + @@ -366,8 +366,6 @@ function updateWaypoint(id, index, lat, lon, alt, action) location.setAltitude(alt); waypoints[index].setGeometry(location); waypoints[index].setDescription(index+""); - - } else { @@ -394,7 +392,7 @@ function updateWaypoint(id, index, lat, lon, alt, action) // Add the placemark to Earth. ge.getFeatures().appendChild(placemark); waypoints[index] = placemark; - } + } // Add waypoint line waypointLines[id].setExtrude(false); @@ -412,7 +410,7 @@ function updateWaypoint(id, index, lat, lon, alt, action) // Add the feature to Earth //if (waypointLinesVisible[id] == true) - ge.getFeatures().replaceChild(waypointLinePlacemarks[id], waypointLinePlacemarks[id]); + //ge.getFeatures().replaceChild(waypointLinePlacemarks[id], waypointLinePlacemarks[id]); // does not work // Add connecting line