Skip to content

Commit 38c861f

Browse files
committed
优化测试 增加api
1 parent 9eb5f87 commit 38c861f

File tree

5 files changed

+209
-109
lines changed

5 files changed

+209
-109
lines changed

src/common/iServer/DataFlowService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class DataFlowService extends CommonServiceBase {
8888
* @param geoJSONFeature {JSON} json格式的要素数据
8989
*/
9090
broadcast(geoJSONFeature) {
91-
if (!this.broadcastWebSocket.isOpen) {
91+
if (!this.broadcastWebSocket||!this.broadcastWebSocket.isOpen) {
9292
this.events.triggerEvent('broadcastFailed');
9393
return;
9494
}

src/leaflet/overlay/GraphThemeLayer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {ThemeLayer} from './theme/ThemeLayer';
66
import {CommontypesConversion} from '../core/CommontypesConversion';
77

88
/**
9-
* @class L.supermap.GraphThemeLayer
9+
* @class L.supermap.graphThemeLayer
1010
* @classdesc 统计专题图图层。
1111
* @extends L.supermap.ThemeLayer
1212
* @description 统计专题图通过为每个要素绘制统计图表来反映其对应的专题值的大小。它可同时表示多个字段属性信息,在区域本身与各区域之间形成横向和纵向的对比。<br>
@@ -212,8 +212,8 @@ export var GraphThemeLayer = ThemeLayer.extend({
212212
* @description 判断两个四边形是否有压盖。
213213
* @param quadrilateral - {Array<Object>} 四边形节点数组。
214214
* @example
215-
* [{"x":1,"y":1},{"x":3,"y":1},{"x":6,"y":4},{"x":2,"y":10},{"x":1,"y":1}]
216-
* quadrilateral2 - {Array<Object>} 第二个四边形节点数组。
215+
* [{"x":1,"y":1},{"x":3,"y":1},{"x":6,"y":4},{"x":2,"y":10},{"x":1,"y":1}];
216+
* @param quadrilateral2 - {Array<Object>} 第二个四边形节点数组。
217217
*/
218218
isQuadrilateralOverLap: function (quadrilateral, quadrilateral2) {
219219
var me = this;

src/leaflet/overlay/LabelThemeLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {GeoFeatureThemeLayer} from './theme/GeoFeatureThemeLayer';
44
import {GeometryVector, Bounds, GeoText, CommonUtil as Util} from '@supermap/iclient-common';
55

66
/**
7-
* @class L.supermap.LabelThemeLayer
7+
* @class L.supermap.labelThemeLayer
88
* @classdesc 标签专题图。
99
* @extends L.supermap.GeoFeatureThemeLayer
1010
* @param name - {string} 图层名

src/leaflet/overlay/VectorTileFormat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import L from "leaflet";
22
import '../core/Base';
33

44
/**
5-
* @constant L.supermap.VectorTileFormat
5+
* @constant L.supermap.vectorTileFormat
66
* @classdesc 矢量瓦片格式
77
*/
88
export var VectorTileFormat = {
@@ -11,4 +11,4 @@ export var VectorTileFormat = {
1111
PBF: "PBF"
1212
};
1313

14-
L.supermap.VectorTileFormat = VectorTileFormat;
14+
L.supermap.vectorTileFormat = VectorTileFormat;

0 commit comments

Comments
 (0)