diff options
-rw-r--r-- | map3.js | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -19,6 +19,7 @@ debug = function (log_txt) { } function initialize(lat, lng, res) { + $('#visibox').hide(); $('#southeastcontainer').hide(); debug("Initializing Funkfeuer Graz Map"); @@ -92,8 +93,6 @@ function onAddOverlay(overlay) { function onMapClick(overlay, point) { - debug("onMapClick called!"); - if(!overlay) { map.setCenter(point); setNewMarker(point); @@ -568,13 +567,14 @@ function setNewMarker(point) { map.addOverlay(marker); marker.openInfoWindowHtml(addNewNodeText(point)); */ - var marker = new GMarker(point,makeIcon('newnode')); - google.maps.event.addListener(marker,"infowindowclose",function () { - map.removeOverlay(marker); - }); - map.addOverlay(marker); - marker.openInfoWindowHtml(addNewNodeText(point)); + + var marker = new google.maps.Marker({position: point, icon: makeIcon('newnode')}); + // google.maps.event.addListener(marker,"infowindowclose",function () { + // map.removeOverlay(marker); + // }); + marker.setMap(map); + marker.openInfoWindowHtml(addNewNodeText(point)); } function fflogin(username, password) { |