Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Nov 26, 2024
2 parents 02e4696 + 19b7b32 commit 000cefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/mapping/WebMapV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
}
} else {
wkt = mapRepo.CRS.get(this.baseProjection).WKT
this._defineProj4(wkt);
this._defineProj4(wkt || projection);
bounds = [
mapInfo.extent.leftBottom.x,
mapInfo.extent.leftBottom.y,
Expand Down
4 changes: 2 additions & 2 deletions test/mapboxgl/mapping/WebMapV2Spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1434,10 +1434,10 @@ describe('mapboxgl_WebMapV2', () => {
const callback = function (data) {
const spy = spyOn(datavizWebmap._handler, 'transformFeatures').and.callThrough();
datavizWebmap.updateOverlayLayer(
{ id: 'test', projection: 'EPSG:3857' },
{ id: uniqueLayer_polygon.layers[0].name, projection: 'EPSG:3857' },
{
type: 'FeatureCollection',
features: [{ type: 'Feature', geometry: { type: 'Point', coordinates: [110, 10] } }]
features: [{ type: 'Feature', geometry: { type: 'Point', coordinates: [110, 10] }, properties: {} }]
},
'',
'EPSG:4326'
Expand Down

0 comments on commit 000cefc

Please sign in to comment.