使用产品:iserver 10.0操作系统:win10 x64
数据类型: iserver上发布的地图
问题详细描述:按照以下的代码写的程序,地图一直加不进来
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>******</title>
<link rel='stylesheet' href='js/bs/css/bootstrap.css'>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src='js/bs/js/bootstrap.js'></script>
<script src="dist/leaflet/include-leaflet.js"></script>
<script include="leaflet.draw,leaflet.miniMap" src="dist/leaflet/include-leaflet.js"></script>
<script src="js/echarts.js"></script>
<script src="js/node_modules/leaflet.marker.highlight/index.js"></script>
</head>
<script>
var map, url ="http://localhost:8090/iserver/services/map-Campus/rest/maps/Campus";
def function onPageLoad(){
map = L.map('map', {
crs: L.CRS.EPSG4326,
center: [ 32.11, 118.9],
minZoom: 14,
maxZoom: 18,
zoom: 15
});
}
// 添加地图
L .supermap.tiledMapLayer(url).addTo(map);
</script>
<body onload=onPageLoad()>