Skip to content

Commit 0b1558d

Browse files
committed
SuperMap iClient for JavaScript => SuperMap iClient JavaScript 实时数据=>数据流
1 parent e709fd5 commit 0b1558d

File tree

6 files changed

+33
-23
lines changed

6 files changed

+33
-23
lines changed

build/jsdocs/template/publish.js

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var template = require('jsdoc/template'),
2121
language,
2222
outdir = env.opts.destination;
2323
var util = require('util');
24+
2425
function find(spec) {
2526
return helper.find(data, spec);
2627
}
@@ -252,24 +253,33 @@ function sortNav(members) {
252253

253254
function buildCategories(members, templatePath) {
254255
var categories = {};
255-
_.each(members, function (v) {
256-
257-
var category = getCustomTagValue(v, 'category');
258-
if (!category) {
259-
category = "BaseTypes";
256+
if (language === 'en') {
257+
var exists = fs.existsSync(path.resolve(templatePath, "categories.json"));
258+
if (exists) {
259+
categories = JSON.parse(fs.readFileSync(path.resolve(templatePath, "categories.json")));
260+
} else {
261+
logger.error('Please generate a Chinese JSdoc first')
260262
}
261-
var arr = category.split(" ");
262-
var aa = categories;
263-
for (let index = 0; index < arr.length; index++) {
264-
const element = arr[index];
265-
if (!aa[element]) {
266-
aa[element] = {};
267-
aa[element].default = [];
263+
} else {
264+
_.each(members, function (v) {
265+
266+
var category = getCustomTagValue(v, 'category');
267+
if (!category) {
268+
category = "BaseTypes";
268269
}
269-
aa = aa[element];
270-
}
271-
aa.default.push(v.longname);
272-
});
270+
var arr = category.split(" ");
271+
var aa = categories;
272+
for (let index = 0; index < arr.length; index++) {
273+
const element = arr[index];
274+
if (!aa[element]) {
275+
aa[element] = {};
276+
aa[element].default = [];
277+
}
278+
aa = aa[element];
279+
}
280+
aa.default.push(v.longname);
281+
});
282+
}
273283
var outpath = path.resolve(templatePath, "categories.json");
274284
fs.writeFileSync(outpath, JSON.stringify(categories), 'utf8');
275285
return categories;

examples/locales/en-US/resources.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.examplesResources = {
2828
"_name": "3D-WebGL"
2929
},
3030
"product": {
31-
"_name": "Product",
31+
"_name": "Products",
3232
"introduce": "Introduction",
3333
"update": "iClient 8C Upgrade",
3434
"download": "Download",
@@ -56,7 +56,7 @@ window.examplesResources = {
5656
"visualization": "Visualization"
5757
},
5858
"examples": {
59-
"_name": "Example",
59+
"_name": "Examples",
6060
"iServer": "iServer",
6161
"iPortal": "iPortal",
6262
"Online": "Online",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SuperMapiClient9",
3-
"description": "SuperMap iClient for JavaScript 是一套由 JavaScript 语言编写的 GIS 客户端应用开发包, 支持多源数据地图,支持多终端,跨浏览器, 通过本产品可快速实现浏览器上美观、流畅的地图呈现。",
3+
"description": "SuperMap iClient JavaScript 是一套由 JavaScript 语言编写的 GIS 客户端应用开发包, 支持多源数据地图,支持多终端,跨浏览器, 通过本产品可快速实现浏览器上美观、流畅的地图呈现。",
44
"version": "9.1.0-alpha",
55
"directories": {
66
"doc": "doc",

src/common/iServer/DataFlowService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {SecurityManager} from '../security/SecurityManager';
66
/**
77
* @class SuperMap.DataFlowService
88
* @category iServer DataFlow
9-
* @classdesc 实时数据服务类
9+
* @classdesc 数据流服务类
1010
* @extends {SuperMap.CommonServiceBase}
11-
* @param {string} url - 实时数据服务地址
11+
* @param {string} url - 数据流服务地址
1212
* @param {Object} options - 参数。
1313
* @function {function} options.style - 设置数据加载样式。
1414
* @function {function} options.onEachFeature - 设置每个数据加载popup等。

src/leaflet/overlay/DataFlowLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
* @param {string} url - 数据流图层服务地址。
1919
* @param {Object} options - 设置图层参数。
2020
* @param {Object} [options.render='normal'] - 绘制方式。可选值为'normal','mapv'。
21-
'normal' 表示以 {( {@link L.LatLng}|{@link L.Polyline}|{@link L.Polygon}|{@link L.Marker} )} 方式绘制实时数据。'mapv' 表示以 {@link L.supermap.mapVLayer} 方式绘制实时数据。
21+
'normal' 表示以 {( {@link L.LatLng}|{@link L.Polyline}|{@link L.Polygon}|{@link L.Marker} )} 方式绘制数据流。'mapv' 表示以 {@link L.supermap.mapVLayer} 方式绘制实时数据。
2222
* @param {Object} [options.geometry] - GeoJSON 几何对象。
2323
* @param {Object} [options.prjCoordSys] - 投影坐标对象。
2424
* @param {string} [options.excludeField] - 排除字段。

src/mapboxgl/services/DataFlowService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {DataFlowService as DataFlow} from '@supermap/iclient-common';
66
/**
77
* @class mapboxgl.supermap.DataFlowService
88
* @category iServer DataFlow
9-
* @classdesc 实时数据服务
9+
* @classdesc 数据流服务
1010
* @extends {mapboxgl.supermap.ServiceBase}
1111
* @example
1212
* new mapboxgl.supermap.DataFlowService(url)

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