Open anuagarwal1409 opened 3 years ago
You can set marker.instruction
instead with the required HTML as:
marker.instruction = `<div><a href="http://www.liverpoolfc.tv" target="_blank">Liverpool</a>' +
'</div><div >Anfield<br>Capacity: 45,362</div>;
and later, define a tap
event listener as:
group.addEventListener('tap', function(evt) {
// event target is the marker itself, group is a parent event target
// for all objects that it contains
var bubble = new H.ui.InfoBubble(evt.target.getGeometry(), {
// read custom data
content : evt.target.instruction
});
// show info bubble
ui.addBubble(bubble);
}, false);
Can you try this?
I'm just starting to use HERE and running into a similar issue. The X is enormous when I add an InfoBubble. I guess I have to add my own stylings? It's really not clear from the docs if this is the expected behavior. Discouraging to see that this has been an unaddressed issue for over 2 years.
I've added the following to css file to disable the close button used for info bubble.
.H_btn {display: none;}
Hi all, have you included the https://js.api.here.com/v3/3.1/mapsjs-ui.css?
Cannot change the size of close icon.
Code
Reference Documentation that I am following-
https://developer.here.com/documentation/examples/maps-js/infobubbles/open-infobubble