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