skyline加载arcgis发布的wms服务

Posted li-mingyue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了skyline加载arcgis发布的wms服务相关的知识,希望对你有一定的参考价值。

function AddWMSLayer(LayerName) {
var _WMSUrl =“http://10.0.4.141:6080/arcgis/services/poss1/MapServer/WmsServer”;
var layerGroup = sg.ProjectTree.FindItem(“Layers”);
if (layerGroup == “”){
layerGroup = sg.ProjectTree.CreateGroup(“Layers”, “”);
}

if (LayerName != null && LayerName != "") {
var itemidlayer = sg.ProjectTree.FindItem("Layers\" + LayerName);
if (itemidlayer != ""){
sg.ProjectTree.DeleteItem(itemidlayer);
}

var wmsStr =
"[INFO] " +
"Meters=1.2m " +
"MPP=0.000027578125" + " "
+"Url=" + _WMSUrl + "?request=GetMap&Version=1.3.0&service=WMS&crs=CRS:84&bbox=113.54910763279433,24.5858358542103,113.57569495732433,24.628050567114293&height=256&width=256&layers=0&styles=&format=image/png "
+ "xul=113.54910763279433" + " " +
"ylr=24.5858358542103" + " " +
"xlr=113.57569495732433" + " " +
"yul=24.628050567114293" + " ";
var imagelayer = sg.Creator.CreateImageryLayer("wms",113.54910763279433, 24.5858358542103,113.57569495732433,24.628050567114293, "<EXT><ExtInfo><![CDATA[" + wmsStr + "]]></ExtInfo><ExtType>wms</ExtType></EXT>", "gisplg.rct", layerGroup, LayerName);
imagelayer.CoordinateSystem = sg.Terrain.CoordinateSystem;
}

}

修改一下

————————————————
版权声明:本文为CSDN博主「li_ming_yue」的原创文章,遵循CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/li_ming_yue/article/details/88990584

以上是关于skyline加载arcgis发布的wms服务的主要内容,如果未能解决你的问题,请参考以下文章

skyline与cesium差异

Arcgis for Js之加载wms服务

(十九)ArcGIS JS 加载WMS服务(超图示例)

arcgis for android 怎么加载wms服务

天地图API加载ArcGIS Server服务

(二十)ArcGIS JS 加载WMTS服务(超图示例)