SelectFeature注册Vector图层鼠标事件,它的构造函数里绑定关联图层的那个参数是个数组,类参考链接如下:
http://support.supermap.com.cn:8090/iserver/iClient/forJavaScript/apidoc/files/SuperMap/Control/SelectFeature-js.html#SuperMap.Control.SelectFeature.SuperMap.Control.SelectFeature
比如:
var selectFeature = new SuperMap.Control.SelectFeature([vectorLayer], {onSelect:onFeatureSelect,onUnselect:onUnFeatureSelect});
Vector图层渲染方式有多种,其中Canvas元素事件不会挡住事件传递,所以可以改Vector图层的渲染方式,类参考如下: http://support.supermap.com.cn:8090/iserver/iClient/forJavaScript/apidoc/files/SuperMap/Layer/Vector-js.html#SuperMap.Layer.Vector.renderers Vector图层构造函数第二个参数是个对象,文档的说明是此类及父类开放属性,在这个参数对象里写上
renderers: ["Canvas"]
即指定Vector图层值使用Canvas方式渲染(IE8及以下浏览器不支持HTML5 Canvas元素)