0
加載後我在此貼圖上設置了具有自定義圖像的標記。然後點擊標記我得到泡泡彈出。點擊它時,我想更改標記圖標。點擊它時如何更改標記圖標?如何在點擊此處時更改標記圖標地圖
單擊標記後顯示氣泡的代碼,如下所示。
map.addObject(group);
// add 'tap' event listener, that opens info bubble, to the group
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.getPosition(), {
// read custom data
content: evt.target.getData()
});
// show info bubble
ui.addBubble(bubble);
}, false);
感謝......... – Rakesh