From 4981a449a05fc97549f4d1db1585248985fabce6 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Dec 2013 18:11:37 +0000 Subject: fixed new marker now? --- index.php | 22 +++++++++++----------- map3.js | 8 +++----- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index 977808b..852d3ff 100644 --- a/index.php +++ b/index.php @@ -147,17 +147,17 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
-
- -
+ + + + + + + + + + +
Adresse suchen (Strassenname Nr. <, Ort>):
diff --git a/map3.js b/map3.js index f07829f..5eea77b 100644 --- a/map3.js +++ b/map3.js @@ -91,12 +91,10 @@ function onAddOverlay(overlay) { } } -function onMapClick(overlay, point) +function onMapClick(mouse_event) { - if(!overlay) { - map.setCenter(point); - setNewMarker(point); - } + map.setCenter(mouse_event.latlng); + setNewMarker(mouse_event.latlng); } //##//function onData(data, responseCode) { -- cgit v1.2.1