<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title data-i18n="resources.title_thiessenAnalystDataset"></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 map, thiessenAnalystService, dsThiessenAnalystParameters, resultLayer,
baseUrl = "http://localhost:8090/iserver/services/map-TangShan/rest/maps/QuXian%40Tang",
serviceUrl = "http://localhost:8090/iserver/services/spatialAnalysis-TangShan/restjsr/spatialanalyst";
map = L.map('map', {
preferCanvas: true,
center: [39.7, 118],
maxZoom: 18,
zoom: 9
});
L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map);
thiessenAnalystProcess();
function thiessenAnalystProcess() {
thiessenAnalystService = L.supermap.spatialAnalystService(serviceUrl);
dsThiessenAnalystParameters = new SuperMap.DatasetThiessenAnalystParameters({
dataset: "Education@Tang"
});
thiessenAnalystService.thiessenAnalysis(dsThiessenAnalystParameters, function (serviceResult) {
resultLayer = L.geoJSON(serviceResult.result.regions, {weight: 2}).addTo(map);
});
}
</script>
</body>
</html>
泰森多边形,对教育点。但是代码与控制台没有任何报错,然而没有结果显示,求大佬解答,地图底图是3857的