我是openlayers的新手,我有左键单击矢量图层的功能,但现在我需要右键单击矢量图层的功能,这可能吗?请帮忙!
我的代码是:
selectControl = new OpenLayers.Control.SelectFeature(vector2,
{multiple:false, click:true , onSelect: onFeatureSelect, onUnselect: onFeatureUnselect}
);
map.addControl(selectControl);
selectControl.activate();