标签:info ssi 二维 div server map 点击 bug services
1.首先要找到操作的一张图
2.双击点进去,再点击layers
3.继续点击,进到下面界面
4.随便选取图层以for Classic (with Vector Tile)形式观看,url中即可获得对应的layersID,获取即可
5.代码如下
//添加wms服务 function addWmsLayer(url){ debugger; L.supermap.tiledMapLayer("http://127.0.0.1:8002/iserver/services/map-bh_map/rest/maps/pipeline",{ maxZoom: 20, //layersID: "[0:5]", 注释掉显示全部,不注释显示单个 layersID: "[0:5,17,23,29,32,37]", }).addTo(global.map); }
标签:info ssi 二维 div server map 点击 bug services
原文地址:https://www.cnblogs.com/wanlige/p/12973074.html