iTelluro.Server提供服务的影像图层,包括DOM服务和GIS服务图层
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
-
iTelluro.Server数据服务的key
-
总级数
-
iTelluro.Server服务地址,如http://itelluroyun.infoearth.com:8038/iTelluro.Server/Service/DOM/dom.ashx
-
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)
-