Skip to content

Commit 9f0e8d0

Browse files
committed
更新动态标绘属性面板;增加铁丝网icon;更新动态标绘demo页面panel支持收起
1 parent 70b1fbd commit 9f0e8d0

29 files changed

+2316
-1941
lines changed

dist/leaflet/include-leaflet.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
inputScript("https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.12.13/xlsx.core.min.js");
8181
}
8282
if (!inArray(excludes, 'iclient9-leaflet')) {
83-
if (supportES6() && !inArray(includes, 'iclient9-plot-leaflet')) {
83+
if (supportES6()) {
8484
inputScript("../../dist/leaflet/iclient9-leaflet-es6.min.js");
8585
} else {
8686
inputScript("../../dist/leaflet/iclient9-leaflet.min.js");
@@ -90,8 +90,12 @@
9090
inputCSS("../../dist/leaflet/iclient9-leaflet.min.css");
9191
}
9292
if (inArray(includes, 'iclient9-plot-leaflet')) {
93-
inputCSS("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.0/iclient9-plot-leaflet.css");
94-
inputScript("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.0/iclient9-plot-leaflet.min.js");
93+
inputCSS("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.1/iclient9-plot-leaflet.css");
94+
if (supportES6()) {
95+
inputScript("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.1/iclient9-plot-leaflet-es6.min.js");
96+
} else {
97+
inputScript("http://iclient.supermap.io/web/libs/plotting/leaflet/9.1.1/iclient9-plot-leaflet.min.js");
98+
}
9599
}
96100
if (inArray(includes, 'leaflet.heat')) {
97101
inputScript("https://cdnjs.cloudflare.com/ajax/libs/leaflet.heat/0.2.0/leaflet-heat.js");

examples/classic/plot_dynamicPlot.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,26 @@
170170
<a class="glyphicon glyphicon-arrow-right notArrow" data-i18n="[title]resources.btn_redo"
171171
onclick="redo()"></a>
172172
</li>
173+
<li>
174+
<a class="glyphicon glyphicon-th-large notArrow" data-i18n="[title]resources.text_symbolEqualSize" ></a>
175+
<ul>
176+
<li><input type="button" data-i18n="[value]resources.btn_symbolEqualWidth" onclick="setSymbolEqualWidth()"
177+
style="width:70px;height: 25px ;margin:0 auto;"> </input> </li>
178+
<li><input type="button" data-i18n="[value]resources.btn_symbolEqualHeight" onclick="setSymbolEqualHeight()"
179+
style="width: 70px;height: 25px ;margin:0 auto;"> </input></li>
180+
<li><input type="button" data-i18n="[value]resources.btn_symbolEqualWidthHeight" onclick="setSymbolEqualWidthHeight()"
181+
style="width:70px;height: 25px ;margin:0 auto;"> </input> </li>
182+
</ul>
183+
</li>
184+
<li>
185+
<a class="glyphicon glyphicon-th" data-i18n="[title]resources.text_symbolDistribution" ></a>
186+
<ul>
187+
<li><input type="button" data-i18n="[value]resources.btn_symbolLevelDistribution" onclick="setSymbolLevelDistribution()"
188+
style="width:70px;height: 25px ;margin:0 auto;"> </input> </li>
189+
<li><input type="button" data-i18n="[value]resources.btn_symbolVerticalDistribution" onclick="setSymbolVerticalDistribution()"
190+
style="width: 70px;height: 25px ;margin:0 auto;"> </input></li>
191+
</ul>
192+
</li>
173193
</div>
174194
</div>
175195
<script type="text/javascript" include="bootstrap,responsive,sticklr" src="../js/include-web.js"></script>
@@ -513,6 +533,30 @@
513533
function redo(){
514534
plotting.getTransManager().redo();
515535
}
536+
//等大
537+
//等宽
538+
function setSymbolEqualWidth(){
539+
plottingEdit.equalLarge(SuperMap.Plot.EqualLargeType.WIDTH);
540+
}
541+
//等高
542+
function setSymbolEqualHeight(){
543+
plottingEdit.equalLarge(SuperMap.Plot.EqualLargeType.HEIGHT);
544+
}
545+
//等宽高
546+
function setSymbolEqualWidthHeight(){
547+
plottingEdit.equalLarge(SuperMap.Plot.EqualLargeType.SAME);
548+
}
549+
550+
//均匀分布
551+
//横向均匀分布
552+
function setSymbolLevelDistribution(){
553+
plottingEdit.uniformDistribution(SuperMap.Plot.UniformDistributionType.LEVEL);
554+
}
555+
556+
//纵向均匀分布
557+
function setSymbolVerticalDistribution(){
558+
plottingEdit.uniformDistribution(SuperMap.Plot.UniformDistributionType.VERTICAL);
559+
}
516560

517561
document.onmouseup = function (evt) {
518562
var evt = evt || window.event;
567 Bytes
Loading

examples/js/plottingPanel/PlotPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ function addBasicCellTreeNodes(treeData){
167167
var symbolCode = [24, 28, 29, 31, 34, 410, 32, 590, 360, 390, 400, 350, 26, 370, 380, 44, 48, 320
168168
, 1019, 1022,1024,321,1023,1025
169169
,1013, 1014, 1016, 1017,1026
170-
,1001, 1003, 1004];
170+
,1001, 1003, 1004,1028];
171171
var symbolName = ["折线", "平行四边形", "圆", "椭圆", "注记", "正多边形", "多边形", "贝赛尔曲线", "闭合贝赛尔曲线"
172172
, "集结地", "大括号", "梯形", "矩形", "弓形", "扇形", "弧线", "平行线", "注记指示框"
173173
, "同心圆", "组合圆","标注框","多角标注框","自由线", "节点链"
174174
, "跑道形", "八字形", "箭头线", "沿线注记","线型标注"
175-
, "对象间连线", "多边形区域","扇形区域"];
175+
, "对象间连线", "多边形区域","扇形区域","铁丝网"];
176176
var cellId = cellRootNode.id + 1;
177177
for(var i = 0; i < symbolCode.length; i++){
178178
var drawCellNode = {

examples/js/plottingPanel/PlottingPanel.Include.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
}
4343
if (inArray(includes, 'StylePanel')) {
4444
inputScript("../js/plottingPanel/customEditor/ColorpickerEditor.js");
45+
inputScript("../js/plottingPanel/PublicStyleFunction.js");
4546
inputScript("../js/plottingPanel/StylePanel.js");
4647
}
4748
if (inArray(includes, 'SMLInfosPanel')) {

0 commit comments

Comments
 (0)