Skip to content

Commit 653f70e

Browse files
committed
【ut】add UT
1 parent 6b0b306 commit 653f70e

File tree

3 files changed

+575
-26
lines changed

3 files changed

+575
-26
lines changed

src/openlayers/core/StyleUtils.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -988,15 +988,6 @@ export class StyleUtils {
988988
}
989989
}
990990

991-
/**
992-
* @function StyleUtils.stopCanvg
993-
* @description 调用Canvg实例的stop();
994-
*/
995-
static stopCanvg() {
996-
this.canvgsV.forEach(v => v.stop());
997-
this.canvgsV = [];
998-
}
999-
1000991
/**
1001992
* @function StyleUtils.getMarkerDefaultStyle 获取默认标注图层feature的样式
1002993
* @param {string} featureType feature的类型

src/openlayers/overlay/vectortile/olExtends.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424
units: ol.proj.Units.TILE_PIXELS
2525
});
2626
};
27-
//解决 new ol.format.MVT({featureClass: ol.Feature})时,非3857显示异常的问题。ol即将发布的5.0版本已解决。
28-
// eslint-disable-next-line no-unused-vars
29-
ol.format.MVT.prototype.readProjection = function(source) {
30-
return new ol.proj.Projection({
31-
code: '',
32-
units: ol.proj.Units.TILE_PIXELS
33-
});
34-
};
3527
//解决面填充时不能整版填充的问题。ol即将发布的5.0版本已解决。
3628
// eslint-disable-next-line no-unused-vars
3729
ol.render.canvas.Replay.prototype.applyFill = function(state, geometry) {

0 commit comments

Comments
 (0)