使用产品:iserver10i 操作系统:win10 x64
问题详细描述:iserver加载不出图片,我也发布了地图。运行就不出图。
问题重现步骤:1:2:;他说L没定义。
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8" />
<script src="/dist/leaflet/include-leaflet.js"></script>
</head>
<body>
<div id="map" style="width:800px; height:800px"></div>
<script type="text/javascript">
alert("nihso");
var url = "http://localhost:8090/iserver/services/map-China100/rest/maps/China";
var map;
map = L.map('map', {
crs: L.CRS.EPSG3857,
center: [0, 0],
maxZoom: 18,
zoom: 1
});
L.supermap.tiledMapLayer(url).addTo(map);
</script>
</body>
</html>