我有一个 javascript 组件 OpenSeadragon ( openseadragon.github.io ) 用于使用以下代码查看大图像:
html:
<img id="pushpin" src="pushpin.png">
<div id="openseadragon" style="width: 800px; height: 600px;"></div>
Javascript:
var viewer = OpenSeadragon({
id: "openseadragon",
prefixUrl: "node_modules/openseadragon/build/openseadragon/images/",
tileSources: "images/test/test.dzi",
overlays: [{
id: 'pushpin',
x: 0.5,
y: 0.5
}],
gestureSettingsMouse: {
clickToZoom: false
},
});
我的问题是:单击组件时是否可以添加标记?