比如 我获取图层信息,我怎么才能在 mainObj.getLayersInfoServiceCompleted的方法中获得mainObj
var layerInfoService = new L.supermap.LayerInfoService(mainObj.dituUrl);
layerInfoService.getLayersInfo(mainObj.getLayersInfoServiceCompleted);
以前用SuperMap iClient Classic的时候可以配置
getLayersInfoService.events.on({
"processCompleted": mainObj.getLayersInfoServiceCompleted,
scope: mainObj
});