summaryrefslogtreecommitdiff
path: root/map3.js
diff options
context:
space:
mode:
Diffstat (limited to 'map3.js')
-rw-r--r--map3.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/map3.js b/map3.js
index 0f840a4..f07829f 100644
--- a/map3.js
+++ b/map3.js
@@ -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) {