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
44L . 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 ] ;
0 commit comments