Skip to content

Commit 1e43162

Browse files
committed
更新动态标绘产品包和demo;更新classic动态标绘demo
1 parent 7d128c7 commit 1e43162

21 files changed

+73
-63
lines changed

dist/leaflet/iclient9-plot-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/classic/plot_drawGraphics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_drawGraphics"></h
236236
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
237237

238238
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
239-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
239+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
240240

241241
//态势标绘编辑
242242
plottingEdit = new SuperMap.Control.PlottingEdit();

examples/classic/plot_drawRoute.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_drawRoute"></h5><
122122
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
123123

124124
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
125-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
125+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
126126

127127

128128
plottingLayer.style = {

examples/classic/plot_dynamicPlot.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@
163163
style="width:70px;height: 25px ;margin:0 auto;"> </input> </li>
164164
</ul>
165165
</li>
166+
<li>
167+
<a class="glyphicon glyphicon-arrow-left notArrow" title="撤销"
168+
onclick="undo()"></a>
169+
</li>
170+
<li>
171+
<a class="glyphicon glyphicon-arrow-right notArrow" title="重做"
172+
onclick="redo()"></a>
173+
</li>
166174
</div>
167175
</div>
168176
<script type="text/javascript" include="bootstrap,responsive,sticklr" src="../js/include-web.js"></script>
@@ -208,7 +216,7 @@
208216
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
209217

210218
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
211-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
219+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
212220

213221
plottingLayer.style = {
214222
fillColor: "#66cccc",
@@ -314,7 +322,7 @@
314322
pointRadius: 6
315323
};
316324

317-
newPlottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
325+
//newPlottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
318326

319327
var drawGraphicObject = new SuperMap.Control.DrawFeature(newPlottingLayer, SuperMap.Handler.GraphicObject);
320328
drawGraphicObjects.push(drawGraphicObject);
@@ -504,6 +512,13 @@
504512
}
505513
}
506514

515+
function undo(){
516+
plotting.getTransManager().undo();
517+
}
518+
519+
function redo(){
520+
plotting.getTransManager().redo();
521+
}
507522

508523
document.onmouseup = function (evt) {
509524
var evt = evt || window.event;

examples/classic/plot_plotGOAnimation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_plotGOAnimation">
173173
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
174174

175175
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
176-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
176+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
177177

178178
plottingLayer.style = {
179179
fillColor: "#66cccc",

examples/classic/plot_plotSymbol.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_plotSymbol"></h5>
109109

110110
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
111111
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
112-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
112+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
113113

114114
plottingLayer.style = {
115115
fillColor: "#66cccc",

examples/classic/plot_saveload.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_saveload"></h5></
133133
});
134134
plottingLayer = new SuperMap.Layer.PlottingLayer("标绘图层", serverUrl);
135135
//空间分析服务地址:目前使用的是服务器默认空间分析地址,可更换成实际使用的空间分析服务地址
136-
plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
136+
//plottingLayer.spatialAnalystUrl = host + "/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst";
137137

138138
plottingLayer.style = {
139139
fillColor: "#66cccc",

examples/classic/plot_symbolAvoid.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_symbolAvoid"></h5
170170
txt.innerHTML = resources.msg_enterAvoidEdit;
171171
}
172172
plottingEdit.removeAllAvoidRegion();
173+
plottingEdit.avoidEdit(false);
173174
}
174175

175176
document.onmouseup = function (evt) {

examples/classic/plot_symbolGeometricQuery.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_symbolGeometricQu
158158
//设置选择区域标号的默认颜色
159159
function setDefualtStyle() {
160160
var defualtStyle = plotting.getDefaultStyle();
161-
//defualtStyle.setDefaultFlag(true);
161+
defualtStyle.defaultStyleFlag = true;
162162
defualtStyle.lineColor = "#00FF00";
163163
}
164164

examples/js/plottingPanel/PlotPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function addRouteTreeNodes(treeData){
203203
var drawCellNode = {
204204
id: cellId++,
205205
pId: 0,
206-
icon:"../img/BasicCell/RouteIcon/" + symbolCode[i] + ".png",
206+
icon:"../img/plottingPanel/BasicCell/RouteIcon/" + symbolCode[i] + ".png",
207207
symbolCode: symbolCode[i],
208208
libID: 0,
209209
symbolName: symbolName[i]

0 commit comments

Comments
 (0)