Classic中Geometry和Feature能否绑定点击事件。
let pt = new SuperMap.Feature.Vector(point);
let line = new SuperMap.Geometry.LineString(points);
我想对pt和line监听点击事件,能否实现?
您好,您那边想对矢量图层绑定选择事件是吗?那您可以使用SuperMap.Control.SelectFeature对矢量图尺进行事件绑定。具体您可以参考https://iclient.supermap.io/examples/classic/editor.html#overlay_vectorDataEvent
var selectFeature = new SuperMap.Control.SelectFeature(vectorlayer, { callbacks: callbacks }); map.addControl(selectFeature); selectFeature.activate();