diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:18:15 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:18:15 +0000 |
commit | 0835c58d60d13f61d7b134cc690cf1a46d310278 (patch) | |
tree | ea22141877698a3813e2ecb75be414b3e366d550 | |
parent | 7002f36abe838ea2972499e3c47ff41fa335d25d (diff) |
fixed typo (i hate weak typed languages...)
-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>'; |