Skip to content

Commit 4bfc7a2

Browse files
补充openlayers测试代码ES6升级
1 parent 7eb3f0a commit 4bfc7a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/openlayers/overlay/GraphicSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ol from 'openlayers';
22
import {CloverShape} from '../../../src/openlayers/overlay/graphic/CloverShape';
3+
import {HitCloverShape} from '../../../src/openlayers/overlay/graphic/HitCloverShape';
34
import {Graphic} from '../../../src/openlayers/overlay/Graphic';
45
import {MapService} from '../../../src/openlayers/services/MapService';
56
import {TileSuperMapRest} from '../../../src/openlayers/mapping/TileSuperMapRest';
@@ -201,7 +202,7 @@ describe('openlayers_GraphicLayer', () => {
201202
graphics[j] = new ol.Graphic(new ol.geom.Point(coors[j]));
202203
graphics[j].setStyle(cloverShapeStyle);
203204
}
204-
var hitCloverShape = new ol.style.HitCloverShape({
205+
var hitCloverShape = new HitCloverShape({
205206
radius: 20,
206207
angle: 30,
207208
stroke: new ol.style.Stroke({

0 commit comments

Comments
 (0)