1
- /* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.*/
1
+ /* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.*/
2
2
// import {ChildPlotLayer} from "../../../plugins/plotting/leaflet/mapping";
3
3
4
4
L . supermap . plotting . initPlotMapPanel = function ( div , plotMapManager ) {
@@ -33,7 +33,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
33
33
treeNodeStyle . style . border = '1px solid #617775' ;
34
34
treeNodeStyle . style . overflow = 'scroll' ;
35
35
var treeNode = document . createElement ( "div" ) ;
36
- treeNode . id = "tree " ;
36
+ treeNode . id = "treePanel " ;
37
37
treeNode . className = "ztree" ;
38
38
39
39
createRightMenu ( plotMapPanel ) ;
@@ -70,14 +70,14 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
70
70
71
71
var createPlotLayer = document . createElement ( "li" ) ;
72
72
createPlotLayer . id = "createPlottingLayer" ;
73
- createPlotLayer . innerText = "创建图元层" ;
73
+ createPlotLayer . innerText = resources . text_createBaseLayer ;
74
74
createPlotLayer . style . margin = '1px 0' ;
75
75
createPlotLayer . style . padding = '0 5px' ;
76
76
createPlotLayer . style . cursor = 'pointer' ;
77
77
createPlotLayer . style . backgroundColor = '#cad4e6' ;
78
78
createPlotLayer . style . listStyle = 'none outside none' ;
79
79
createPlotLayer . onclick = function ( ) {
80
- var plottingLayerName = "图元层" ;
80
+ var plottingLayerName = resources . text_baseLayer ;
81
81
var plottingLayer = L . supermap . plotting . plottingLayer ( plottingLayerName , serverUrl ) ;
82
82
plottingLayer . addTo ( map ) ;
83
83
@@ -87,7 +87,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
87
87
88
88
var activePlottingLayer = document . createElement ( "li" ) ;
89
89
activePlottingLayer . id = "activePlottingLayer" ;
90
- activePlottingLayer . innerText = "激活" ;
90
+ activePlottingLayer . innerText = resource . text_active ;
91
91
activePlottingLayer . style . margin = '1px 0' ;
92
92
activePlottingLayer . style . padding = '0 5px' ;
93
93
activePlottingLayer . style . cursor = 'pointer' ;
@@ -105,7 +105,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
105
105
106
106
var activeChildPlotLayer = document . createElement ( "li" ) ;
107
107
activeChildPlotLayer . id = "activeChildPlotLayer" ;
108
- activeChildPlotLayer . innerText = "激活" ;
108
+ activeChildPlotLayer . innerText = resource . text_active ;
109
109
activeChildPlotLayer . style . margin = '1px 0' ;
110
110
activeChildPlotLayer . style . padding = '0 5px' ;
111
111
activeChildPlotLayer . style . cursor = 'pointer' ;
@@ -124,7 +124,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
124
124
125
125
var fixSymScale = document . createElement ( "li" ) ;
126
126
fixSymScale . id = "fixSymScale" ;
127
- fixSymScale . innerText = "修改缩放基准为当前地图比例尺" ;
127
+ fixSymScale . innerText = resources . text_changeZoomDatumToCurrentMapScale ;
128
128
fixSymScale . style . margin = '1px 0' ;
129
129
fixSymScale . style . padding = '0 5px' ;
130
130
fixSymScale . style . cursor = 'pointer' ;
@@ -142,7 +142,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
142
142
143
143
var createChildPlotLayer = document . createElement ( "li" ) ;
144
144
createChildPlotLayer . id = "createChildPlotLayer" ;
145
- createChildPlotLayer . innerText = "创建子图层" ;
145
+ createChildPlotLayer . innerText = resources . btn_createChildLayer ;
146
146
createChildPlotLayer . style . margin = '1px 0' ;
147
147
createChildPlotLayer . style . padding = '0 5px' ;
148
148
createChildPlotLayer . style . cursor = 'pointer' ;
@@ -151,7 +151,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
151
151
createChildPlotLayer . onclick = function ( ) {
152
152
if ( currentSelectedNode != null && currentSelectedNode . type === "PlottingLayer" ) {
153
153
var plottingLayers = L . supermap . plotting . getControl ( ) . getPlotMapManager ( ) . getPlottingLayers ( ) ;
154
- var plottingLayerName = "子图层" ;
154
+ var plottingLayerName = resources . text_subLayer ;
155
155
var plottingLayerCaption = plottingLayerName ;
156
156
var childPlotLayer = L . supermap . plotting . childPlotLayer ( plottingLayerName , plottingLayerCaption ) ;
157
157
plottingLayers [ currentSelectedNode . tag ] . addChildPlotLayer ( childPlotLayer ) ;
@@ -163,7 +163,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
163
163
164
164
var setMinVisibleScale = document . createElement ( "li" ) ;
165
165
setMinVisibleScale . id = "setMinVisibleScale" ;
166
- setMinVisibleScale . innerText = "设置当前地图比例尺为最小可见比例尺" ;
166
+ setMinVisibleScale . innerText = resources . text_setCurrentMapScaleToMintVisibleScale ;
167
167
setMinVisibleScale . style . margin = '1px 0' ;
168
168
setMinVisibleScale . style . padding = '0 5px' ;
169
169
setMinVisibleScale . style . cursor = 'pointer' ;
@@ -181,7 +181,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
181
181
182
182
var setMaxVisibleScale = document . createElement ( "li" ) ;
183
183
setMaxVisibleScale . id = "setMaxVisibleScale" ;
184
- setMaxVisibleScale . innerText = "设置当前地图比例尺为最大可见比例尺" ;
184
+ setMaxVisibleScale . innerText = resources . text_setCurrentMapScaleToMaxVisibleScale ;
185
185
setMaxVisibleScale . style . margin = '1px 0' ;
186
186
setMaxVisibleScale . style . padding = '0 5px' ;
187
187
setMaxVisibleScale . style . cursor = 'pointer' ;
@@ -199,7 +199,7 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
199
199
200
200
var clearVisibleScale = document . createElement ( "li" ) ;
201
201
clearVisibleScale . id = "clearVisibleScale" ;
202
- clearVisibleScale . innerText = "清除可见比例尺设置" ;
202
+ clearVisibleScale . innerText = resources . text_clearVisibleScaleSet ;
203
203
clearVisibleScale . style . margin = '1px 0' ;
204
204
clearVisibleScale . style . padding = '0 5px' ;
205
205
clearVisibleScale . style . cursor = 'pointer' ;
@@ -279,14 +279,14 @@ L.supermap.plotting.initPlotMapPanel = function(div, plotMapManager){
279
279
} ;
280
280
281
281
var symbolTreeData = analysisPlotMap ( ) ;
282
- $ . fn . zTree . init ( $ ( "#tree " ) , setting , symbolTreeData ) ;
282
+ $ . fn . zTree . init ( $ ( "#treePanel " ) , setting , symbolTreeData ) ;
283
283
}
284
284
285
285
function refreshLayers ( ) {
286
286
hideRightMenu ( ) ;
287
287
288
288
var layers = L . supermap . plotting . getControl ( ) . getPlotMapManager ( ) . getPlottingLayers ( ) ;
289
- var zTree = $ . fn . zTree . getZTreeObj ( "tree " ) ;
289
+ var zTree = $ . fn . zTree . getZTreeObj ( "treePanel " ) ;
290
290
var changeNodes = zTree . getChangeCheckedNodes ( ) ;
291
291
if ( changeNodes . length > 0 ) {
292
292
var treeNode = changeNodes [ 0 ] ;
0 commit comments