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