Skip to content

Commit 54489ba

Browse files
committed
ICL-1571 删除地物编辑示例,对要素编辑示例进行国际化处理
1 parent c386e5e commit 54489ba

18 files changed

+33
-1373
lines changed

examples/leaflet/02_editFeatures.html

Lines changed: 0 additions & 267 deletions
This file was deleted.

examples/leaflet/config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ var exampleConfig = {
185185
name_en: "field statistics service",
186186
thumbnail: "l_fieldStatistics.png",
187187
fileName: "02_fieldStatistics"
188-
}, {
189-
name: "地物编辑",
190-
name_en: "data editing",
191-
thumbnail: "l_editFeatures.png",
192-
fileName: "02_editFeatures"
193188
},
194189
{
195190
name: "要素关联附件",

examples/leaflet/drawAndEditFeatures.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,12 @@
185185
margin-right: 16px;
186186
}
187187
.message {
188-
width: 300px;
189188
height: 50px;
190189
position: absolute;
191190
top: 15px;
192191
font-size: 16px;
193192
left: 50%;
194-
padding-top: 15px;
193+
padding: 15px;
195194
display: none;
196195
margin-left: -150px;
197196
background: #fff;
@@ -269,7 +268,7 @@ <h6><span class="line-element"></span><span data-i18n="resources.text_attributeI
269268
</div>
270269
</div>
271270
<div class="edit-feature-info">
272-
<h4 class="into-title"><span data-i18n="resources.text_editFeature"></span><span class="dataset-info">数据集<span class="edit-dataset"></span></span></h4>
271+
<h4 class="into-title"><span data-i18n="resources.text_editFeature"></span><span class="dataset-info"><span data-i18n="resources.text_dataset"></span><span class="edit-dataset"></span></span></h4>
273272
<h6><span data-i18n="resources.text_spacialInfo"></span></h6>
274273
<div class="space-info">
275274
<input class="input-element" type="text">
@@ -409,7 +408,7 @@ <h5><span data-i18n="resources.text_featureToDelete"></span>:</h5>
409408
var error = document.createElement('span');
410409
error.style.color = 'red';
411410
error.className = 'error-tips';
412-
error.innerText = '输入值超出值域范围:[' + rule.rangeInfos[0].min + ', ' + rule.rangeInfos[0].max + ')';
411+
error.innerText = resources.text_outOfRange + ':[' + rule.rangeInfos[0].min + ', ' + rule.rangeInfos[0].max + ')';
413412
parent.insertBefore(error, e.target.nextSibling);
414413
document.querySelector('.editSave').disabled = true;
415414
// 保存按钮 disabled
@@ -894,7 +893,7 @@ <h5><span data-i18n="resources.text_featureToDelete"></span>:</h5>
894893
});
895894
editFeaturesService.editFeatures(addFeatureParams, function (serviceResult) {
896895
if (serviceResult.result.succeed) {
897-
widgets.alert.showAlert(isUpdate ? '更新要素成功' : '新增要素成功', true);
896+
widgets.alert.showAlert(isUpdate ? resources.text_updateFeaturesSuccess : resources.text_addFeaturesSuccess, true);
898897
currentAddFeature = null;
899898
}
900899
});
-29.4 KB
Binary file not shown.

examples/locales/en-US/resources.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,23 @@ window.examplesResources = {
20822082
"option_mileUnit": "Foot",
20832083
"option_degreeUnit": "Degree",
20842084
"text_print": "Print",
2085+
"text_addFeature": "Add",
2086+
"text_editFeature": "Edit",
2087+
"text_deleteFeature": "Delete",
2088+
"text_targetDataset": "Target Dataset",
2089+
"text_spacialInfo": "Spatial Information",
2090+
"msg_pleaseSaveFirst": "There are unsaved changes, please save or cancel the changes first",
2091+
"msg_inputCoordinates": "Press Tab to start entering coordinate values, press Enter to confirm",
2092+
"msg_moveToMapDraw": "Move the mouse to the map to draw features",
2093+
"text_attributeInfo": "Attribute Information",
2094+
"msg_pleaseSave": "Please save or cancel the changes first",
2095+
"msg_selectDeleteFeature": "Select the feature to delete on the map",
2096+
"msg_confirmDelete": "The feature cannot be recovered after deletion, are you sure to delete?",
2097+
"msg_clickToSelect": "Click on the feature on the map to select",
2098+
"text_featureToDelete": "Feature to Delete",
2099+
"text_outOfRange": "The input value is out of range",
2100+
"text_updateFeaturesSuccess": "Update feature successfully",
2101+
"text_addFeaturesSuccess": "Add feature successfully",
20852102

20862103
"option_scanRadar":"scanRadarEffect",
20872104
"option_sectorDetectionRange":"sectorDetectionRangeEffect",

examples/locales/zh-CN/resources.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,9 @@ window.examplesResources = {
20572057
"msg_confirmDelete": "删除后要素将无法恢复,是否确认删除?",
20582058
"msg_clickToSelect": "在地图上点击要素进行选择",
20592059
"text_featureToDelete": "待删除要素",
2060+
"text_outOfRange": "输入值超出值域范围",
2061+
"text_updateFeaturesSuccess": "更新要素成功",
2062+
"text_addFeaturesSuccess": "新增要素成功",
20602063

20612064
"option_scanRadar":"雷达特效",
20622065
"option_sectorDetectionRange":"扫描特效",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy