Skip to content

Commit 564363f

Browse files
fix ut
1 parent 712eebb commit 564363f

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

test/mapboxgl/mapping/WebMapV3Spec.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,20 +1088,12 @@ describe('mapboxgl-webmap3.0', () => {
10881088
return Promise.resolve();
10891089
});
10901090
spyOn(mapboxgl, 'Map').and.callFake(mbglmap);
1091-
mapboxgl.CRS = function (epsgCode, wkt, bounds, unit) {
1092-
};
1093-
mapboxgl.CRS.set = function () {};
10941091
const mapInfo = JSON.parse(mapstudioWebMap_symbol);
10951092
mapInfo.sprite = {
10961093
rectangle: 'http://localhost:9876/base/resources/data/sprite/rectangle',
10971094
circle: 'http://localhost:9876/base/resources/data/sprite/circle',
10981095
triangle: 'http://localhost:9876/base/resources/data/sprite/triangle'
10991096
};
1100-
mapInfo.crs = {
1101-
name: 'EPSG:4490',
1102-
extent: [-180, -270, 180, 90],
1103-
wkt: 'GEOGCS["China Geodetic Coordinate System 2000", DATUM["China 2000", SPHEROID["CGCS2000", 6378137.0, 298.257222101, AUTHORITY["EPSG","1024"]], AUTHORITY["EPSG","1043"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic latitude", NORTH], AXIS["Geodetic longitude", EAST], AUTHORITY["EPSG","4490"]]'
1104-
}
11051097
mapstudioWebmap = new WebMapV3(mapInfo, {
11061098
server: server,
11071099
target: 'map',
@@ -1124,7 +1116,7 @@ describe('mapboxgl-webmap3.0', () => {
11241116
}
11251117
]
11261118
},
1127-
crs: 'EPSG:4490',
1119+
crs: 'EPSG:3857',
11281120
center: [116.640545, 40.531714],
11291121
zoom: 7
11301122
});

test/maplibregl/mapping/WebMapV3Spec.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,20 +1088,12 @@ describe('maplibregl-webmap3.0', () => {
10881088
return Promise.resolve();
10891089
});
10901090
spyOn(maplibregl, 'Map').and.callFake(mbglmap);
1091-
maplibregl.CRS = function (epsgCode, wkt, bounds, unit) {
1092-
};
1093-
maplibregl.CRS.set = function () {};
10941091
const mapInfo = JSON.parse(mapstudioWebMap_symbol);
10951092
mapInfo.sprite = {
10961093
rectangle: 'http://localhost:9876/base/resources/data/sprite/rectangle',
10971094
circle: 'http://localhost:9876/base/resources/data/sprite/circle',
10981095
triangle: 'http://localhost:9876/base/resources/data/sprite/triangle'
10991096
};
1100-
mapInfo.crs = {
1101-
name: 'EPSG:4490',
1102-
extent: [-180, -270, 180, 90],
1103-
wkt: 'GEOGCS["China Geodetic Coordinate System 2000", DATUM["China 2000", SPHEROID["CGCS2000", 6378137.0, 298.257222101, AUTHORITY["EPSG","1024"]], AUTHORITY["EPSG","1043"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic latitude", NORTH], AXIS["Geodetic longitude", EAST], AUTHORITY["EPSG","4490"]]'
1104-
}
11051097
mapstudioWebmap = new WebMapV3(mapInfo, {
11061098
server: server,
11071099
target: 'map',
@@ -1124,7 +1116,7 @@ describe('maplibregl-webmap3.0', () => {
11241116
}
11251117
]
11261118
},
1127-
crs: 'EPSG:4490',
1119+
crs: 'EPSG:3857',
11281120
center: [116.640545, 40.531714],
11291121
zoom: 7
11301122
});

0 commit comments

Comments
 (0)