两个问题:
1.官网加载WMS示例的“noWrap”参数表示什么意思?文档里没查到这个参数,示例地址为https://iclient.supermap.io/dev/examples/leaflet/editor.html#WMSLayer
2.以下代码为直接加载geoserver的WMS服务,可运行,但我把代码里的WMS服务转发成超图地图服务总是不成功,没有地图列表,请问是什么原因?
服务地址为:http://4maps.geo-solutions.it/geoserver/syria_vtp/wms
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title data-i18n="resources.title_tiledMapLayer4326"></title>
<script type="text/javascript" src="../js/include-web.js"></script>
</head>
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
<script type="text/javascript">
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
var map, url = host + "/iserver/services/map-world/rest/maps/World";
map = L.map('map', {
crs: L.CRS.EPSG4326,
center: [35.16, 39.44],
maxZoom: 18,
zoom: 8
});
L.supermap.tiledMapLayer(url).addTo(map);
let extent = L.tileLayer.wms("http://4maps.geo-solutions.it/geoserver/syria_vtp/wms", {
layers: 'syria_vtp',
format: 'image/png',
transparent: true
}).addTo(map);
</script>
</body>
</html>