summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 18:11:37 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 18:11:37 +0000
commit4981a449a05fc97549f4d1db1585248985fabce6 (patch)
tree8607cdbfbd5fbc1e3410feac9ecdaa4324782a1b
parenta2c2b9a163cb7190aa70ec3c342c5ef4afe2638c (diff)
fixed new marker now?
-rw-r--r--index.php22
-rw-r--r--map3.js8
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') {
</div>
</div>
<div id="southeastcontainer">
- <div id="loginbox" class="box">
- <script type="text/javascript">
- <?php
- if (!isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) {
- echo 'showFFLogin();';
- } else {
- echo 'showFFLogout("'.$_SESSION['username'].'");';
- }
- ?>11
- </script>
- </div>
+ <!-- <div id="loginbox" class="box"> -->
+ <!-- <script type="text/javascript"> -->
+ <!-- <?php -->
+ <!-- if (!isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) { -->
+ <!-- echo 'showFFLogin();'; -->
+ <!-- } else { -->
+ <!-- echo 'showFFLogout("'.$_SESSION['username'].'");'; -->
+ <!-- } -->
+ <!-- ?>11 -->
+ <!-- </script> -->
+ <!-- </div> -->
<div id="addressbox" class="box">
<b>Adresse suchen (Strassenname Nr. <, Ort>):</b>
<form action="#" onsubmit="showAddress(this.address.value); return false">
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) {