GetLayerImageService Class

地图服务.GetLayerImageService(option)

图层图片服务

Fx构造函数

# new GetLayerImageService(option)

Zondy.Service.GetLayerImageService

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

属性键值对

gdbps String <optional>
null

图层URL

picType String <optional>
gif

图片的格式

style Zondy.Object.CDisplayStyleExtend <optional>
null

图层显示样式

bbox String <optional>
null

图片范围

filters String <optional>
null

图层过滤条件

picWidth Number <optional>
512

图片的宽度

picHeight Number <optional>
512

图片的高度

查看源代码 service/Igserver/MRMS/GetLayerImageService.js, line 5

Example
//创建获取图层图片信息服务
 var LayerImageService = new Zondy.Service.GetLayerImageService({
                    //图层在数据库中的url
                    gdbps: 'gdbp://MapGisLocal/OpenLayerVecterMap/ds/地图编辑缓存经纬度/sfcls/mypntlayer',
                    //图片类型
                    picType: 'png',
                    //图片宽
                    picWidth: 500,
                    //图片高
                    picHeight: 600,
                    //取图范围,依次是xmin、ymin、xmax、ymax
                    bbox: '50,0,140,90',
                    //IP地址
                    ip: "develop.smaryun.com",
                    //端口号
                    port: "6163"
                });
 //获取图层图片url路径
 var layerUrl = LayerImageService.GetLayerImage();
 console.log(layerUrl);

继承关系

  • Zondy.Service.MapServiceBase