summaryrefslogtreecommitdiff
path: root/map3.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 18:06:54 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 18:06:54 +0000
commita2c2b9a163cb7190aa70ec3c342c5ef4afe2638c (patch)
tree36eb40ad63d5fc8fcba9b46db3d631b250e0eaab /map3.js
parente0af5c91312131f26e4d9dfe282e651503694fdd (diff)
rehiding visibox
fixing add new marker?
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) {