I'm trying to open a balloon of a geopoint which is not shown. The official api docs says
if the point is show then open it or it's cluster balloon
but how do I open it if it's not shown? I tried to scroll the map to it's position and then open it, but I'm still getting an error TypeError: this._Hh.getMap(...) is null
when opening the balloon.
function bymShowPoint(pId)
{
var point = bymGetPoint(pId);
var pState = bymClusterer.getObjectState(point);
if (!pState.isShown)
{
bymScrollToPoint(pId);
}
if (pState.isClustered)
{
pState.cluster.state.set('activeObject',point);
pState.cluster.balloon.open();
}
else
{
point.balloon.open();
}
}