Skip to content

Commit 89e21b7

Browse files
committed
【fix】fix ut
1 parent 49a335d commit 89e21b7

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

test/maplibregl/overlay/GraticuleLayerSpec.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import maplibregl from 'maplibre-gl';
22
import { GraticuleLayer } from '../../../src/maplibregl/overlay/GraticuleLayer';
3-
var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';
43

54
describe('maplibregl_GraticuleLayer', () => {
65
var originalTimeout;
@@ -18,22 +17,8 @@ describe('maplibregl_GraticuleLayer', () => {
1817
container: 'map',
1918
style: {
2019
version: 8,
21-
sources: {
22-
'raster-tiles': {
23-
type: 'raster',
24-
tiles: [url],
25-
tileSize: 256
26-
}
27-
},
28-
layers: [
29-
{
30-
id: 'simple-tiles',
31-
type: 'raster',
32-
source: 'raster-tiles',
33-
minzoom: 0,
34-
maxzoom: 22
35-
}
36-
]
20+
sources: {},
21+
layers: []
3722
},
3823
center: [112, 37.94],
3924
zoom: 3

0 commit comments

Comments
 (0)