Skip to content

Commit 47f451b

Browse files
committed
添加openlayers客户端示例 reviewBy zhurc
1 parent a6bc9f5 commit 47f451b

File tree

4 files changed

+922
-2
lines changed

4 files changed

+922
-2
lines changed

examples/leaflet/turf_measurement.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
infoView.onAdd = function () {
4040
var me = this;
4141
me._div = L.DomUtil.create('div');
42-
me._div.style.width = '420px';
42+
me._div.style.width = '350px';
4343
me._div.innerHTML = `<div class='panel panel-primary editPane' id='editPane'>
4444
<div class='panel-heading'>
4545
<h5 class='panel-title text-center'>京深路卧龙岗隧道路段</h5>
@@ -460,7 +460,7 @@ <h5 class='panel-title text-center'>京深路卧龙岗隧道路段</h5>
460460
function isUseWorldMap(bool) {
461461
if (bool) {
462462
urlWorld = host + "/iserver/services/map-world/rest/maps/World";
463-
url = url1;
463+
url = urlWorld;
464464
baseLayer = L.supermap.tiledMapLayer(url, {prjCoordSys: {"epsgCode": 4326}}).addTo(map);
465465
}
466466
else {
@@ -658,6 +658,7 @@ <h5 class='panel-title text-center'>京深路卧龙岗隧道路段</h5>
658658
turfLayer.process("Helper.lineString", {
659659
"coordinates": coordinate,
660660
}, function (line) {
661+
661662
resultLayer.process("Measurement.along", {
662663
"line": line,
663664
"distance": distance,

examples/openlayers/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ var exampleConfig = {
590590
name: "插值、格网、分等",
591591
thumbnail: "ol_turf_analysis.png",
592592
fileName: "turf_analysis"
593+
},{
594+
name: "测量计算",
595+
thumbnail: "ol_turf_measurement.png",
596+
fileName: "turf_measurement"
593597
}]
594598
}
595599
}
5.45 KB
Loading

0 commit comments

Comments
 (0)