here api - How to close an opened InfoBubble within event listener? -
in page, have markers , want show title on each marker on hover. simple in google maps using title parameter google.maps.marker() object. couldn't find in here maps , decided make simple, similar one.
now have nokia.maps.map.container() has 1 infobuble, 1 marker , 2 events: mouseenter , mouseleave. can open infobubble in mouseenter event, can't close in mouseleave event. i'm trying use closebubble(), i'm unsuccessful.
here fiddle of work far: http://jsfiddle.net/ffakx/
how can close opened infobubble when mouse leaves marker object? or there simple way title parameter of google.maps.marker() object?
the documentation on infobubbles component can found here. if @ closebubble() method, can see takes bubble handle parameter. needs remembered previous openbubble()
var infobubbles = new nokia.maps.map.component.infobubbles(),     bubble;  map.components.add(infobubbles); container = new nokia.maps.map.container();  container.addlistener("mouseenter" ,  function(evt) {     bubble =infobubbles.openbubble(evt.target.html, evt.target.coordinate);    }, false);  container.addlistener("mouseleave" ,  function(evt) {     infobubbles.closebubble(bubble); // need close infobubble here }); the result tooltip, actual tooltip component can found on here maps community pages
Comments
Post a Comment