Skip to content

Commit 11dcb3e

Browse files
committed
补充范例翻译。review by Zhurc
1 parent fc18ed3 commit 11dcb3e

File tree

162 files changed

+1137
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+1137
-745
lines changed

examples/classic/overlayGeoJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3 class='panel-title' data-i18n="resources.text_overlayAnalyst">叠加分析</
3030
value='samples_processing_newyorkZone_R'/></div>
3131
<p></p>
3232
<div class='input-group'>
33-
<span class='input-group-addon'><span data-i18n="resources.text_overlayDataset">叠加对象数据集</span></spam>
33+
<span class='input-group-addon'><span data-i18n="resources.text_overlayDataset">叠加对象数据集</span>
3434
<span data-i18n="[title]resources.text_requiredField" style="color: red;"> * </span></span>
3535
<input id='datasetOverlay' type='text' class='form-control'
3636
value='samples_processing_newyorkResidential_R'/>

examples/classic/theme_ctl_landuseUnique.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,73 +208,73 @@ <h5 class='panel-title text-center' data-i18n="resources.title_landuseUnique">
208208
// 风格数组,设定值对应的样式
209209
themeLayer.styleGroups = [
210210
{
211-
value: resources.text_grassland,
211+
value: "草地",
212212
style: {
213213
fillColor: "#C1FFC1"
214214
}
215215
},
216216
{
217-
value: resources.text_city,
217+
value: "城市",
218218
style: {
219219
fillColor: "#CD7054"
220220
}
221221
},
222222
{
223-
value: resources.text_shrub,
223+
value: "灌丛",
224224
style: {
225225
fillColor: "#7CCD7C"
226226
}
227227
},
228228
{
229-
value: resources.text_dryLand,
229+
value: "旱地",
230230
style: {
231231
fillColor: "#EE9A49"
232232
}
233233
},
234234
{
235-
value: resources.text_lakeReservoir,
235+
value: "湖泊水库",
236236
style: {
237237
fillColor: "#8EE5EE"
238238
}
239239
},
240240
{
241-
value: resources.text_economicForest,
241+
value: "经济林",
242242
style: {
243243
fillColor: "#548B54"
244244
}
245245
},
246246
{
247-
value: resources.text_desert,
247+
value: "沙漠",
248248
style: {
249249
fillColor: "#DEB887"
250250
}
251251
},
252252
{
253-
value: resources.text_irrigatedLand,
253+
value: "水浇地",
254254
style: {
255255
fillColor: "#E0FFFF"
256256
}
257257
},
258258
{
259-
value: resources.text_paddyField,
259+
value: "水田",
260260
style: {
261261
fillColor: "#388E8E"
262262
}
263263
},
264264
{
265-
value: resources.text_timberForest,
265+
value: "用材林",
266266
style: {
267267
fillColor: "#556B2F"
268268
}
269269
},
270270
{
271-
value: resources.text_swamp,
271+
value: "沼泽",
272272
style: {
273273
fillColor: "#2F4F4F"
274274
}
275275
},
276276
{
277-
value: resources.text_DefaultStyle,
277+
value: "缺省风格",
278278
style: {
279279
fillColor: "#ABABAB"
280280
}

examples/leaflet/01_imageMapLayer3857.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>SuperMap REST 地图服务底图</title>
5+
<title data-i18n="resources.title_tiledMapLayer3857">SuperMap REST 地图服务底图</title>
6+
<script type="text/javascript" src="../js/include-web.js"></script>
67
</head>
78
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
89
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>

examples/leaflet/01_imageMapLayer4326.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>SuperMap REST 地图服务底图</title>
5+
<title data-i18n="resources.title_tiledMapLayer4326">SuperMap REST 地图服务底图</title>
6+
<script type="text/javascript" src="../js/include-web.js"></script>
67
</head>
78
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
89
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>

examples/leaflet/01_layerService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>SuperMap 图层信息</title>
5+
<title data-i18n="resources.title_layerService">SuperMap 图层信息</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/leaflet/01_mapQueryByBounds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>地图bounds查询</title>
5+
<title data-i18n="resources.title_mapQueryByBounds">地图bounds查询</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/leaflet/01_mapQueryByDistance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>地图距离查询</title>
5+
<title data-i18n="resources.title_mapQueryByDistance">地图距离查询</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/leaflet/01_mapQueryByGeometry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>地图几何查询</title>
5+
<title data-i18n="resources.title_mapQueryByGeometry">地图几何查询</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/leaflet/01_mapQueryBySQL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>地图SQL查询</title>
5+
<title data-i18n="resources.title_mapQueryBySQL">地图SQL查询</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/leaflet/01_mapService.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title>SuperMap 地图信息</title>
5+
<title data-i18n="resources.title_mapService">SuperMap 地图信息</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
@@ -24,9 +24,9 @@
2424
function mapService() {
2525
L.supermap.mapService(url).getMapInfo(function (serviceResult) {
2626
var result = serviceResult.result;
27-
var innerHTML = "(map信息太多,只打印一部分)" + "<br><br>";
28-
innerHTML += "地图名:" + JSON.stringify(result.name, null, 2) + "<br>";
29-
innerHTML += "中心点:" + JSON.stringify(result.center, null, 2) + "<br>";
27+
var innerHTML = "("+resources.text_mapInfoPrint+")" + "<br><br>";
28+
innerHTML += resources.text_mapName+":" + JSON.stringify(result.name, null, 2) + "<br>";
29+
innerHTML += resources.text_center+":" + JSON.stringify(result.center, null, 2) + "<br>";
3030
innerHTML += "Bounds:" + JSON.stringify(result.bounds, null, 2) + "<br>";
3131
infoWin = L.popup({maxWidth: 400})
3232
.setLatLng(map.getCenter())

0 commit comments

Comments
 (0)