Skip to content

Commit 73f8b25

Browse files
author
caoxinke@supermap.com
committed
fix UT
1 parent c41d2d0 commit 73f8b25

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

dist/iclient9-openlayers.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54978,8 +54978,6 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
5497854978

5497954979
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
5498054980

54981-
// import "../../../common/overlay/levelRenderer/Render";
54982-
5498354981
/**
5498454982
* @class ol.source.Theme
5498554983
* @classdesc 专题图基类。
@@ -55514,7 +55512,7 @@ var Theme = exports.Theme = function (_ol$source$ImageCanva) {
5551455512
if (feature instanceof _ThemeFeature.ThemeFeature) {
5551555513
return feature.toFeature();
5551655514
}
55517-
if (feature instanceof _iclientCommon.Vector) {
55515+
if (feature instanceof _iclientCommon.GeometryVector) {
5551855516
return feature;
5551955517
}
5552055518
return new _iclientCommon.ServerFeature.fromJson(feature).toFeature();

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlayers/overlay/theme/Theme.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ import {Util} from '../../core/Util';
33
import {
44
CommonUtil,
55
ServerFeature,
6-
Vector,
6+
GeometryVector as Vector,
77
LonLat,
88
GeometryPoint,
99
GeoText,
1010
LevelRenderer
1111
} from '@supermap/iclient-common';
1212
import {ThemeFeature} from './ThemeFeature';
1313

14-
// import "../../../common/overlay/levelRenderer/Render";
15-
1614
/**
1715
* @class ol.source.Theme
1816
* @classdesc 专题图基类。
@@ -495,7 +493,6 @@ export class Theme extends ol.source.ImageCanvas {
495493
}
496494
if (feature instanceof Vector) {
497495
return feature;
498-
499496
}
500497
return new ServerFeature.fromJson(feature).toFeature();
501498
}

0 commit comments

Comments
 (0)