0👍
One approach might be to centre the map on the marker whenever you click on it. This still won’t guarantee the whole infowindow will appear on the screen, depending on how big it is. But it’s likely to work in most cases.
You should be able to get the map’s centre using map.getCenter()
Using the examples given at
- https://developer.here.com/documentation/examples/maps-js/infobubbles/open-infobubble
- https://developer.here.com/documentation/examples/maps-js/events/position-on-mouse-click
you should be able to do something like:
group.addEventListener('tap', function (evt) {
var bubble = new H.ui.InfoBubble(coord, {
// read custom data
content: evt.target.getData(),
position: group.getCenter()
});
// show info bubble
ui.addBubble(bubble);
}, false);
Source:stackexchange.com