diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:06:54 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:06:54 +0000 |
commit | a2c2b9a163cb7190aa70ec3c342c5ef4afe2638c (patch) | |
tree | 36eb40ad63d5fc8fcba9b46db3d631b250e0eaab /map3.js | |
parent | e0af5c91312131f26e4d9dfe282e651503694fdd (diff) |
rehiding visibox
fixing add new marker?
Diffstat (limited to 'map3.js')
-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) { |