iTelluroLayer

iTelluro影像图层

new YS.iTelluroLayer(options, global)

iTelluro.Server提供服务的影像图层,包括DOM服务和GIS服务图层
Name Type Description
options Object 对象有下面这些属性:
Name Type Default Description
id String optional 唯一标识
name String optional 名称
rectangle Rectangle optional 范围{west, south, east, north}
category String optional 图层分组
url String iTelluro.Server服务地址,如http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/GIS/gis.ashx
dsKey String iTelluro.Server数据服务的key
fileExtension String jpg optional 文件类型,jpg/png/bmp,默认jpg
zeroSpan Number 36.0 optional 0级切片跨度
levels Number 总级数
isAddTree Boolean true optional 是否在图层树上显示
treeIcon String optional 图层树上显示的图标,默认不显示
isQuery Boolean false optional 是否支持空间查询
visible Boolean true optional 是否可见
shpField Boolean true optional 是否自定义空间查询主字段
global Object 三维球对象(YouScene.earth)
Implements:
Example:
youScene.layers.addiTelluroLayer({
         id: "全国天地图影像",
         name: "全国天地图影像",
         rectangle: {
             west: -180,
             south: -90,
             east: 180,
             north: 90
         },
         url: "http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/DOM/dom.ashx",
         dsKey: "全国天地图影像", 
         fileExtension: "jpg",
         zeroSpan: 36,
         levels: 11
     });
Demo:

Members

dsKey : String

iTelluro.Server数据服务的key

levels : Number

总级数

server : String

iTelluro.Server服务地址,如http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/DOM/dom.ashx

zeroSpan : Number

0级切片跨度

Methods

staticYS.iTelluroLayer.fromiTelluroServer(config, earth)iTelluroLayer

从网图server的配置字符串中构建iTelluroLayer
Name Type Description
config String 从网图server或iTelluro.GlobeEngine.ini中获取到的配置字符串
earth YSEarth youscene.earth
Returns:
返回新构建的图层
Throws:
  • 如果config传入的即非key-value,也非value串,抛出异常VT.INVALID_ARGUMENTS
  • 配置字符串最少要有15个参数
Examples:
YS.iTelluroLayer.fromiTelluroServer('公路 = http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/GIS/gis.ashx, ,公路,9,5,60,0,140,60,png,false,基础地理,255,true,,false', ys.earth)
//没有图层名时,默认使用数据服务的key作为图层名
YS.iTelluroLayer.fromiTelluroServer('http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/GIS/gis.ashx, ,公路,9,5,60,0,140,60,png,false,基础地理,255,true,,false', ys.earth)