The documentation on the InfoBubbles
component can be found here. If you look at the closeBubble()
method, you can see that it takes a bubble handle as a parameter. This needs to be remembered from the 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); // I need to close infoBubble here
});
The result is very much like a tooltip, an actual tooltip component can be found on the HERE Maps community pages