Skip to content

Commit ca60231

Browse files
committed
修改标绘产品示例中文内容没有英文化的问题
1 parent 1971501 commit ca60231

File tree

10 files changed

+1089
-456
lines changed

10 files changed

+1089
-456
lines changed

examples/js/plottingPanel/PlotMapPanel.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.*/
1+
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.*/
22
// import {ChildPlotLayer} from "../../../plugins/plotting/leaflet/mapping";
33

44
L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
@@ -33,7 +33,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
3333
treeNodeStyle.style.border = '1px solid #617775';
3434
treeNodeStyle.style.overflow ='scroll';
3535
var treeNode = document.createElement("div");
36-
treeNode.id = "tree";
36+
treeNode.id = "treePanel";
3737
treeNode.className = "ztree";
3838

3939
createRightMenu(plotMapPanel);
@@ -70,14 +70,14 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
7070

7171
var createPlotLayer = document.createElement("li");
7272
createPlotLayer.id="createPlottingLayer";
73-
createPlotLayer.innerText = "创建图元层";
73+
createPlotLayer.innerText = resources.text_createBaseLayer;
7474
createPlotLayer.style.margin = '1px 0';
7575
createPlotLayer.style.padding = '0 5px';
7676
createPlotLayer.style.cursor = 'pointer';
7777
createPlotLayer.style.backgroundColor = '#cad4e6';
7878
createPlotLayer.style.listStyle = 'none outside none';
7979
createPlotLayer.onclick = function () {
80-
var plottingLayerName = "图元层";
80+
var plottingLayerName = resources.text_baseLayer;
8181
var plottingLayer = L.supermap.plotting.plottingLayer(plottingLayerName, serverUrl);
8282
plottingLayer.addTo(map);
8383

@@ -87,7 +87,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
8787

8888
var activePlottingLayer = document.createElement("li");
8989
activePlottingLayer.id="activePlottingLayer";
90-
activePlottingLayer.innerText = "激活";
90+
activePlottingLayer.innerText = resource.text_active;
9191
activePlottingLayer.style.margin = '1px 0';
9292
activePlottingLayer.style.padding = '0 5px';
9393
activePlottingLayer.style.cursor = 'pointer';
@@ -105,7 +105,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
105105

106106
var activeChildPlotLayer = document.createElement("li");
107107
activeChildPlotLayer.id="activeChildPlotLayer";
108-
activeChildPlotLayer.innerText = "激活";
108+
activeChildPlotLayer.innerText = resource.text_active;
109109
activeChildPlotLayer.style.margin = '1px 0';
110110
activeChildPlotLayer.style.padding = '0 5px';
111111
activeChildPlotLayer.style.cursor = 'pointer';
@@ -124,7 +124,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
124124

125125
var fixSymScale = document.createElement("li");
126126
fixSymScale.id="fixSymScale";
127-
fixSymScale.innerText = "修改缩放基准为当前地图比例尺";
127+
fixSymScale.innerText = resources.text_changeZoomDatumToCurrentMapScale;
128128
fixSymScale.style.margin = '1px 0';
129129
fixSymScale.style.padding = '0 5px';
130130
fixSymScale.style.cursor = 'pointer';
@@ -142,7 +142,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
142142

143143
var createChildPlotLayer = document.createElement("li");
144144
createChildPlotLayer.id="createChildPlotLayer";
145-
createChildPlotLayer.innerText = "创建子图层";
145+
createChildPlotLayer.innerText = resources.btn_createChildLayer;
146146
createChildPlotLayer.style.margin = '1px 0';
147147
createChildPlotLayer.style.padding = '0 5px';
148148
createChildPlotLayer.style.cursor = 'pointer';
@@ -151,7 +151,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
151151
createChildPlotLayer.onclick = function () {
152152
if(currentSelectedNode != null && currentSelectedNode.type === "PlottingLayer"){
153153
var plottingLayers = L.supermap.plotting.getControl().getPlotMapManager().getPlottingLayers();
154-
var plottingLayerName = "子图层";
154+
var plottingLayerName = resources.text_subLayer;
155155
var plottingLayerCaption = plottingLayerName;
156156
var childPlotLayer = L.supermap.plotting.childPlotLayer(plottingLayerName,plottingLayerCaption);
157157
plottingLayers[currentSelectedNode.tag].addChildPlotLayer(childPlotLayer);
@@ -163,7 +163,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
163163

164164
var setMinVisibleScale = document.createElement("li");
165165
setMinVisibleScale.id="setMinVisibleScale";
166-
setMinVisibleScale.innerText = "设置当前地图比例尺为最小可见比例尺";
166+
setMinVisibleScale.innerText = resources.text_setCurrentMapScaleToMintVisibleScale;
167167
setMinVisibleScale.style.margin = '1px 0';
168168
setMinVisibleScale.style.padding = '0 5px';
169169
setMinVisibleScale.style.cursor = 'pointer';
@@ -181,7 +181,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
181181

182182
var setMaxVisibleScale = document.createElement("li");
183183
setMaxVisibleScale.id="setMaxVisibleScale";
184-
setMaxVisibleScale.innerText = "设置当前地图比例尺为最大可见比例尺";
184+
setMaxVisibleScale.innerText = resources.text_setCurrentMapScaleToMaxVisibleScale;
185185
setMaxVisibleScale.style.margin = '1px 0';
186186
setMaxVisibleScale.style.padding = '0 5px';
187187
setMaxVisibleScale.style.cursor = 'pointer';
@@ -199,7 +199,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
199199

200200
var clearVisibleScale = document.createElement("li");
201201
clearVisibleScale.id="clearVisibleScale";
202-
clearVisibleScale.innerText = "清除可见比例尺设置";
202+
clearVisibleScale.innerText = resources.text_clearVisibleScaleSet;
203203
clearVisibleScale.style.margin = '1px 0';
204204
clearVisibleScale.style.padding = '0 5px';
205205
clearVisibleScale.style.cursor = 'pointer';
@@ -279,14 +279,14 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
279279
};
280280

281281
var symbolTreeData = analysisPlotMap();
282-
$.fn.zTree.init($("#tree"), setting, symbolTreeData);
282+
$.fn.zTree.init($("#treePanel"), setting, symbolTreeData);
283283
}
284284

285285
function refreshLayers() {
286286
hideRightMenu();
287287

288288
var layers = L.supermap.plotting.getControl().getPlotMapManager().getPlottingLayers();
289-
var zTree = $.fn.zTree.getZTreeObj("tree");
289+
var zTree = $.fn.zTree.getZTreeObj("treePanel");
290290
var changeNodes = zTree.getChangeCheckedNodes();
291291
if(changeNodes.length > 0){
292292
var treeNode = changeNodes[0];

examples/js/plottingPanel/PlotPanel.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function addBasicCellTreeNodes(treeData) {
161161
var cellRootNode = new Object();
162162
cellRootNode.id = 1;
163163
cellRootNode.pId = 0;
164-
cellRootNode.name = "基本标号";
164+
cellRootNode.name = resources.text_commonSymbol;
165165
cellRootNode.fullName = "BasicCell" + "/";
166166
cellRootNode.drawData = [];
167167
treeData.push(cellRootNode);
@@ -170,11 +170,11 @@ function addBasicCellTreeNodes(treeData) {
170170
, 1019, 1022, 1024, 321, 1023, 1025
171171
, 1013, 1014, 1016, 1017, 1026
172172
, 1001, 1003, 1004, 1028, 1029, 3000];
173-
var symbolName = ["折线", "平行四边形", "圆", "椭圆", "注记", "正多边形", "多边形", "贝赛尔曲线", "闭合贝赛尔曲线"
174-
, "集结地", "大括号", "梯形", "矩形", "弓形", "扇形", "弧线", "弓形", "扇形", "弧线", "平行线", "注记指示框"
175-
, "同心圆", "组合圆", "标注框", "多角标注框", "自由线", "节点链"
176-
, "跑道形", "八字形", "箭头线", "沿线注记", "线型标注"
177-
, "对象间连线", "多边形区域", "扇形区域", "铁丝网", "直线箭头", "图片"];
173+
var symbolName = [resources.text_foldLine, resources.text_parallelogram, resources.btn_circle, resources.text_elliptical, resources.text_textContent, resources.text_regularPolygon, resources.btn_polygon, resources.text_bezierCurves, resources.text_closeBezierCurves
174+
, resources.text_rallyGround, resources.text_braces, resources.text_trapezium, resources.text_input_value_drawRectangle, resources.text_bow, resources.text_sector, resources.text_arc, resources.text_bow, resources.text_sector, resources.text_arc, resources.text_parallel, resources.text_textNodeBox
175+
, resources.text_concentricCircle, resources.text_combinedCircle, resources.text_textbox, resources.text_mutilAngleTextbox, resources.text_freeLine, resources.text_nodeChain
176+
, resources.text_runway, resources.text_eight, resources.text_arrowLine, resources.text_textAlongLine, resources.text_linearText
177+
, resources.text_objectLines, resources.text_polygonArea, resources.text_sectorArea, resources.text_barbedWire, resources.text_straightLineArrow, resources.option_picture];
178178
var cellId = cellRootNode.id + 1;
179179
for (var i = 0; i < symbolCode.length; i++) {
180180
var drawCellNode = {
@@ -195,12 +195,12 @@ function addRouteTreeNodes(treeData) {
195195
var cellRootNode = new Object();
196196
cellRootNode.id = 1;
197197
cellRootNode.pId = 0;
198-
cellRootNode.name = "航线对象";
198+
cellRootNode.name = resources.text_routeObj;
199199
cellRootNode.drawData = [];
200200
treeData.push(cellRootNode);
201201

202202
var symbolCode = [1005, 1006, 1007];
203-
var symbolName = ["航线1", "航线2", "航线3"];
203+
var symbolName = [resources.text_route1, resources.text_route2, resources.text_route3];
204204
var cellId = cellRootNode.id + 1;
205205
for (var i = 0; i < symbolCode.length; i++) {
206206
var drawCellNode = {

0 commit comments

Comments
 (0)