Skip to content

Commit

Permalink
修改标绘产品示例中文内容没有英文化的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyu1 committed Apr 7, 2024
1 parent 1971501 commit ca60231
Show file tree
Hide file tree
Showing 10 changed files with 1,089 additions and 456 deletions.
28 changes: 14 additions & 14 deletions examples/js/plottingPanel/PlotMapPanel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.*/
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.*/
// import {ChildPlotLayer} from "../../../plugins/plotting/leaflet/mapping";

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

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

var createPlotLayer = document.createElement("li");
createPlotLayer.id="createPlottingLayer";
createPlotLayer.innerText = "创建图元层";
createPlotLayer.innerText = resources.text_createBaseLayer;
createPlotLayer.style.margin = '1px 0';
createPlotLayer.style.padding = '0 5px';
createPlotLayer.style.cursor = 'pointer';
createPlotLayer.style.backgroundColor = '#cad4e6';
createPlotLayer.style.listStyle = 'none outside none';
createPlotLayer.onclick = function () {
var plottingLayerName = "图元层";
var plottingLayerName = resources.text_baseLayer;
var plottingLayer = L.supermap.plotting.plottingLayer(plottingLayerName, serverUrl);
plottingLayer.addTo(map);

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

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

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

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

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

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

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

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

var symbolTreeData = analysisPlotMap();
$.fn.zTree.init($("#tree"), setting, symbolTreeData);
$.fn.zTree.init($("#treePanel"), setting, symbolTreeData);
}

function refreshLayers() {
hideRightMenu();

var layers = L.supermap.plotting.getControl().getPlotMapManager().getPlottingLayers();
var zTree = $.fn.zTree.getZTreeObj("tree");
var zTree = $.fn.zTree.getZTreeObj("treePanel");
var changeNodes = zTree.getChangeCheckedNodes();
if(changeNodes.length > 0){
var treeNode = changeNodes[0];
Expand Down
16 changes: 8 additions & 8 deletions examples/js/plottingPanel/PlotPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function addBasicCellTreeNodes(treeData) {
var cellRootNode = new Object();
cellRootNode.id = 1;
cellRootNode.pId = 0;
cellRootNode.name = "基本标号";
cellRootNode.name = resources.text_commonSymbol;
cellRootNode.fullName = "BasicCell" + "/";
cellRootNode.drawData = [];
treeData.push(cellRootNode);
Expand All @@ -170,11 +170,11 @@ function addBasicCellTreeNodes(treeData) {
, 1019, 1022, 1024, 321, 1023, 1025
, 1013, 1014, 1016, 1017, 1026
, 1001, 1003, 1004, 1028, 1029, 3000];
var symbolName = ["折线", "平行四边形", "圆", "椭圆", "注记", "正多边形", "多边形", "贝赛尔曲线", "闭合贝赛尔曲线"
, "集结地", "大括号", "梯形", "矩形", "弓形", "扇形", "弧线", "弓形", "扇形", "弧线", "平行线", "注记指示框"
, "同心圆", "组合圆", "标注框", "多角标注框", "自由线", "节点链"
, "跑道形", "八字形", "箭头线", "沿线注记", "线型标注"
, "对象间连线", "多边形区域", "扇形区域", "铁丝网", "直线箭头", "图片"];
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
, 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
, resources.text_concentricCircle, resources.text_combinedCircle, resources.text_textbox, resources.text_mutilAngleTextbox, resources.text_freeLine, resources.text_nodeChain
, resources.text_runway, resources.text_eight, resources.text_arrowLine, resources.text_textAlongLine, resources.text_linearText
, resources.text_objectLines, resources.text_polygonArea, resources.text_sectorArea, resources.text_barbedWire, resources.text_straightLineArrow, resources.option_picture];
var cellId = cellRootNode.id + 1;
for (var i = 0; i < symbolCode.length; i++) {
var drawCellNode = {
Expand All @@ -195,12 +195,12 @@ function addRouteTreeNodes(treeData) {
var cellRootNode = new Object();
cellRootNode.id = 1;
cellRootNode.pId = 0;
cellRootNode.name = "航线对象";
cellRootNode.name = resources.text_routeObj;
cellRootNode.drawData = [];
treeData.push(cellRootNode);

var symbolCode = [1005, 1006, 1007];
var symbolName = ["航线1", "航线2", "航线3"];
var symbolName = [resources.text_route1, resources.text_route2, resources.text_route3];
var cellId = cellRootNode.id + 1;
for (var i = 0; i < symbolCode.length; i++) {
var drawCellNode = {
Expand Down
Loading

0 comments on commit ca60231

Please sign in to comment.