在地图实例化的时候
sectionVectorLayer=new SuperMap.Layer.Vector("路段标记物");
sectionSelectFeature = new SuperMap.Control.SelectFeature(sectionVectorLayer,{
onSelect: function (e) {
showInfo(e.structureName)
}
});
gisMap.addControl(sectionSelectFeature);
sectionSelectFeature.activate();
查询地图的时候通过循环的方向添加矢量图层,
var label = new SuperMap.Feature.Vector;
label.geometry = new SuperMap.Geometry.Point(lon,lat);
label.style= {
externalGraphic: $RESCTX+"/images/gisSectionMarker_A.png",
graphicWidth:18,
graphicHeight:24,
graphicXOffset:-9,
graphicYOffset:-12,
label:"1",
fontColor:"#fff"
};
sectionVectorLayer.addFeatures(label);
第一次点击可以触发点击事件,可再点击就没反应,点另外一个后,再回点第一个,又会触发点击事件,是什么原因?