diff options
-rw-r--r-- | map3.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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> </td><td>' + convertCoords(point.y) + '</td><td> </td>'; + html += '<tr><td>Breitengrad:</td><td> </td><td>' + convertCoords(point.lat) + '</td><td> </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> </td><td>' + convertCoords(point.x)+ '</td><td> </td>'; + html += 'onclick="javascript:centerAndZoom(' + point.lat + ',' + point.lng + ')" /></form></td></tr>'; + html += '<tr><td>Längengrad:</b></td><td> </td><td>' + convertCoords(point.lat)+ '</td><td> </td>'; html += '<td><form action="#" onsubmit="return false"><input type="button" value="Standort eintragen" '; html += 'onclick="window.open(\'' + link + '\')" /></form></td></tr>'; html += '</table>'; |