OverlayByLayer Class

分析服务.OverlayByLayer(option)

图层叠加

Fx构造函数

# new OverlayByLayer(option)

Zondy.Service.OverlayByLayer

参数:
名称 类型 属性 默认值 描述
option Object

属性键值对

srcInfo2 String <optional>
null

设置叠加图层URL

查看源代码 service/Igserver/MRFWS/OverlayByLayer.js, line 8

Example
//缓存结果图层的基地址
 var resultBaseUrl = "gdbp://MapGisLocal/OpenLayerVecterMap/sfcls/";
 //结果图层的名称
 var resultname = resultBaseUrl + "overLayByLayerAnalysisResultLayer" + self.getCurentTime();
 //实例化OverlayByLayer类
 var overlayParam = new Zondy.Service.OverlayByLayer({
                    //IGServer所在ip地址
                    ip: "develop.smaryun.com",
                    //IGServer请求端口号
                    port: "6163",
                    //设置被叠加图层URL
                    srcInfo1: "gdbp://MapGisLocal/OpenLayerVecterMap/ds/世界地图经纬度/sfcls/世界河流",
                    //设置叠加图层URL
                    srcInfo2: "gdbp://MapGisLocal/OpenLayerVecterMap/ds/世界地图经纬度/sfcls/世界政区",
                    //设置结果URL
                    desInfo: resultname,
                    //设置结果图层的图形参数信息
                    infoOptType: 2,
                    //求交
                    overType: 1,
                    //允许重算面积
                    isReCalculate: true,
                    //容差半径
                    radius: 0.05
                });
 overlayParam.execute(function (res) {
                    console.log(res);
                }, "post",function (error) {
                    console.log(error);
                });

继承关系

  • Zondy.Service.OverlayBase