summaryrefslogtreecommitdiff
path: root/map3.js
diff options
context:
space:
mode:
Diffstat (limited to 'map3.js')
-rw-r--r--map3.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/map3.js b/map3.js
index 8b5dce1..2f40e11 100644
--- a/map3.js
+++ b/map3.js
@@ -93,8 +93,8 @@ function onAddOverlay(overlay) {
function onMapClick(mouse_event)
{
- map.setCenter(mouse_event.latlng);
- setNewMarker(mouse_event.latlng);
+ map.setCenter(mouse_event.latLng);
+ setNewMarker(mouse_event.latLng);
}
//##//function onData(data, responseCode) {
@@ -527,10 +527,10 @@ function addNewNodeText(point) {
var html = '<b>Neuen Knoten eintragen<br />Nutzen sie den Zoombereich aus!</b><br /><br />';
html += '<table width="100%">';
- html += '<tr><td>Breitengrad:</td><td>&nbsp;</td><td>' + convertCoords(point.y) + '</td><td>&nbsp;</td>';
+ html += '<tr><td>Breitengrad:</td><td>&nbsp;</td><td>' + convertCoords(point.lat) + '</td><td>&nbsp;</td>';
html += '<td><form action="#" onsubmit="return false"><input type="button" value="hineinzoomen" ';
- html += 'onclick="javascript:centerAndZoom(' + point.y + ',' + point.x + ')" /></form></td></tr>';
- html += '<tr><td>Längengrad:</b></td><td>&nbsp;</td><td>' + convertCoords(point.x)+ '</td><td>&nbsp;</td>';
+ html += 'onclick="javascript:centerAndZoom(' + point.lat + ',' + point.lng + ')" /></form></td></tr>';
+ html += '<tr><td>Längengrad:</b></td><td>&nbsp;</td><td>' + convertCoords(point.lat)+ '</td><td>&nbsp;</td>';
html += '<td><form action="#" onsubmit="return false"><input type="button" value="Standort eintragen" ';
html += 'onclick="window.open(\'' + link + '\')" /></form></td></tr>';
html += '</table>';