Skip to content

Commit 8193292

Browse files
committed
更新标绘标牌示例引用资源
1 parent 344df80 commit 8193292

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

examples/data/plot-sign/sign4.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="sign" style="width:fit-content;">
77
<div id="title"
88
style="font-size: 22px;text-align: center;color: rgb(255, 255, 255);letter-spacing: 5px;
9-
background-image: url(./标牌1.png);background-size: 100% 100%;background-repeat: no-repeat;padding: 5px;line-height: 0.8;">
9+
background-image: url(./template_sign4.png);background-size: 100% 100%;background-repeat: no-repeat;padding: 5px;line-height: 0.8;">
1010
标题</div>
1111
<div id="content"
1212
style="border: 1px solid rgba(56, 213, 253, 1);border-radius:10px;border-top:0px;border-bottom:0px;color: rgb(255, 255, 255);padding: 3px 10px;background-color: #0336494C;line-height: 0.6;">

examples/data/plot-sign/sign5.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="sign" style="width:fit-content;">
77
<!-- 文本内容 -->
88
<div
9-
style="border-radius:10px;color: rgb(255, 255, 255);padding: 3px 20px;background-color: #0336494C;line-height: 0.6;background-image: url(./方形3.png);background-size: 100% 100%;background-repeat: no-repeat;">
9+
style="border-radius:10px;color: rgb(255, 255, 255);padding: 3px 20px;background-color: #0336494C;line-height: 0.6;background-image: url(./template_sign5.png);background-size: 100% 100%;background-repeat: no-repeat;">
1010
<!-- 标牌标题、背景等 -->
1111
<p id="title" style="margin:4px;color: rgb(255, 255, 255); font-size:20px;text-align:center;" >标题</p>
1212
<div id = "content">

examples/data/plot-sign/sign6.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="sign" style="width:fit-content;">
77
<!-- 文本内容 -->
88
<div
9-
style="border-radius:10px;color: rgb(255, 255, 255);padding: 3px 28px;background-color: #0336494C;line-height: 0.6;background-image: url(./方形4.png);background-size: 100% 100%;background-repeat: no-repeat;">
9+
style="border-radius:10px;color: rgb(255, 255, 255);padding: 3px 28px;background-color: #0336494C;line-height: 0.6;background-image: url(./template_sign6.png);background-size: 100% 100%;background-repeat: no-repeat;">
1010
<!-- 标牌标题、背景等 -->
1111
<p id="title" style="margin:4px;color: rgb(255, 255, 255); font-size:20px;text-align:center;" >标题</p>
1212
<div id = "content">

examples/data/plot-sign/sign7.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div id="sign" style="width:fit-content;">
77
<div id="title"
88
style="font-size: 22px;text-align: center;color: rgb(255, 255, 255);letter-spacing: 5px;
9-
background-image: url(./方形5.png);background-size: 100% 100%;background-repeat: no-repeat;padding: 12px;line-height: 0.6;">
9+
background-image: url(./template_sign7.png);background-size: 100% 100%;background-repeat: no-repeat;padding: 12px;line-height: 0.6;">
1010
标题</div>
1111
<div id = "content"
1212
style="border: 0.7px solid rgba(79, 233, 238, 1);color: rgb(255,255,255);padding: 3px 10px;background-color: rgba(0, 232, 232, 0.38);line-height: 0.6;">
1.35 KB
Loading
617 KB
Loading
69.9 KB
Loading
244 KB
Loading

examples/js/plottingPanel/SignSymbolPanel.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.*/
12
L.supermap.plotting.initSignTreePanel = function (div, plotMapManager, layer) {
23
plotMapManager.on(SuperMap.Plot.Event.signsymbollayeradded, function (event) {
34
event.signSymbolLayer.on(SuperMap.Plot.Event.signsymbolsadded, refresh);
@@ -419,25 +420,25 @@ function parseUrlFromIndex(index){
419420
var templateURL;
420421
switch (index) {
421422
case 0:
422-
templateURL = "../../dist/leaflet/plot-sign/sign1.html";
423+
templateURL = "../data/plot-sign/sign1.html";
423424
break;
424425
case 1:
425-
templateURL = "../../dist/leaflet/plot-sign/sign2.html";
426+
templateURL = "../data/plot-sign/sign2.html";
426427
break;
427428
case 2:
428-
templateURL = "../../dist/leaflet/plot-sign/sign3.html";
429+
templateURL = "../data/plot-sign/sign3.html";
429430
break;
430431
case 3:
431-
templateURL = "../../dist/leaflet/plot-sign/sign4.html";
432+
templateURL = "../data/plot-sign/sign4.html";
432433
break;
433434
case 4:
434-
templateURL = "../../dist/leaflet/plot-sign/sign5.html";
435+
templateURL = "../data/plot-sign/sign5.html";
435436
break;
436437
case 5:
437-
templateURL = "../../dist/leaflet/plot-sign/sign6.html";
438+
templateURL = "../data/plot-sign/sign6.html";
438439
break;
439440
case 6:
440-
templateURL = "../../dist/leaflet/plot-sign/sign7.html";
441+
templateURL = "../data/plot-sign/sign7.html";
441442
break;
442443
default:
443444
break;
@@ -842,25 +843,25 @@ function getURLRows(){
842843
function urlValueToString(value){
843844
var result;
844845
switch (value) {
845-
case "../../dist/leaflet/plot-sign/sign1.html":
846+
case "../../dist/leaflet/html/sign1.html":
846847
result = "模板样式一";
847848
break;
848-
case "../../dist/leaflet/plot-sign/sign2.html":
849+
case "../../dist/leaflet/html/sign2.html":
849850
result = "模板样式二";
850851
break;
851-
case "../../dist/leaflet/plot-sign/sign3.html":
852+
case "../../dist/leaflet/html/sign3.html":
852853
result = "模板样式三";
853854
break;
854-
case "../../dist/leaflet/plot-sign/sign4.html":
855+
case "../../dist/leaflet/html/sign4.html":
855856
result = "模板样式四";
856857
break;
857-
case "../../dist/leaflet/plot-sign/sign5.html":
858+
case "../../dist/leaflet/html/sign5.html":
858859
result = "模板样式五";
859860
break;
860-
case "../../dist/leaflet/plot-sign/sign6.html":
861+
case "../../dist/leaflet/html/sign6.html":
861862
result = "模板样式六";
862863
break;
863-
case "../../dist/leaflet/plot-sign/sign7.html":
864+
case "../../dist/leaflet/html/sign7.html":
864865
result = "模板样式七";
865866
break;
866867
default:

0 commit comments

Comments
 (0)