我想知道在特定位置是否有任何 domMarker,但我无法使用以下方法使其工作:
hMap.getObjectAt(55.685, 12.584, (obj) => { //obj is always undefined eventhough an icon exists within the given coordinates
if (obj && obj instanceof H.map.DomMarker) {
console.log(obj.getGeometry());
}
});