Q: How to make Feature.vector support the right mouse button response in SuperMap iClient for Javascript?

A: You can use the SuperMap.Control.SelectFeature control, and write the callback function for the right mouse event in the callbacks property: var callbacks={rightclick:function(currentFeature){//todo}};var selectFeature = new SuperMap.Control.SelectFeature(vectorLayer,{callbacks: callbacks}).


09 July,2019
Tags: iClient

More iClient FAQ