fix infowindow focus/blur event
This commit is contained in:
@@ -49,8 +49,8 @@ oSpot.pageInit = function(asHash)
|
||||
marker:
|
||||
{
|
||||
values:aoMessages,
|
||||
options:{draggable:false}/*,
|
||||
events:{click:function(marker, event, context)
|
||||
options:{draggable:false},
|
||||
/*events:{click:function(marker, event, context)
|
||||
{
|
||||
var asHash = self.getHash();
|
||||
var sDestHash = asHash.items[0] || '';
|
||||
@@ -61,24 +61,24 @@ oSpot.pageInit = function(asHash)
|
||||
}
|
||||
else self.zoomIn(marker, event, context);
|
||||
}}*/
|
||||
},
|
||||
events:
|
||||
{
|
||||
mouseover: function(marker, event, context)
|
||||
events:
|
||||
{
|
||||
console.log('over');
|
||||
var map = $(this).gmap3("get"), infowindow = $(this).gmap3({get:{name:"infowindow"}});
|
||||
if(infowindow)
|
||||
mouseover: function(marker, event, context)
|
||||
{
|
||||
infowindow.open(map, marker);
|
||||
infowindow.setContent(context.data.details);
|
||||
console.log('over');
|
||||
var map = $(this).gmap3("get"), infowindow = $(this).gmap3({get:{name:"infowindow"}});
|
||||
if(infowindow)
|
||||
{
|
||||
infowindow.open(map, marker);
|
||||
infowindow.setContent(context.data.details);
|
||||
}
|
||||
else $(this).gmap3({infowindow:{anchor:marker, options:{content: context.data.details}}});
|
||||
},
|
||||
mouseout: function()
|
||||
{
|
||||
var infowindow = $(this).gmap3({get:{name:"infowindow"}});
|
||||
if(infowindow) infowindow.close();
|
||||
}
|
||||
else $(this).gmap3({infowindow:{anchor:marker, options:{content: context.data.details}}});
|
||||
},
|
||||
mouseout: function()
|
||||
{
|
||||
var infowindow = $(this).gmap3({get:{name:"infowindow"}});
|
||||
if(infowindow) infowindow.close();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user