
infoBubblesProperty
| Type | Array |
| Description | infoBubbles shown on the map nokia.mh5.components.InfoBubble. You can think of an infoBubble as an extended presentation of a poi. The default internal behavior of Map component is to show only one infoBubble at the same time. That means it closes the previous infoBubble before showing a new one. If you open an infoBubble on your own by calling nokia.mh5.components.Map.showInfoBubble it's your responsibility to close the existing infoBubble. But you can have multiple infoBubbbles at the same time. For this you have to overwrite some listeners to prevent the default behavior. Please take a look how to do it at the following example. |
| Source |
Example
var map = new nokia.mh5.components.Map({
listeners: {
poiclick: function(e) {
e.preventDefault();//prevents hiding open infoBubbles and opening a new one
this.showInfoBubble(e.data[0]);
},
mapclick: function(e) {
e.preventDefault();//prevents hiding open infoBubbles
},
maplongpress: function(e) {
e.preventDefault();//prevents hiding open infoBubbles and opening a new one
},
}
});
document.body.appendChild(map.root);
Properties
nokia.mh5.components.Map.infoBubbles has no properties.