Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 000cefc

Browse files
2 parents 02e4696 + 19b7b32 commit 000cefc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/common/mapping/WebMapV2.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
191191
}
192192
} else {
193193
wkt = mapRepo.CRS.get(this.baseProjection).WKT
194-
this._defineProj4(wkt);
194+
this._defineProj4(wkt||projection);
195195
bounds = [
196196
mapInfo.extent.leftBottom.x,
197197
mapInfo.extent.leftBottom.y,

‎test/mapboxgl/mapping/WebMapV2Spec.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,10 +1434,10 @@ describe('mapboxgl_WebMapV2', () => {
14341434
const callback = function (data) {
14351435
const spy = spyOn(datavizWebmap._handler, 'transformFeatures').and.callThrough();
14361436
datavizWebmap.updateOverlayLayer(
1437-
{ id: 'test', projection: 'EPSG:3857' },
1437+
{ id: uniqueLayer_polygon.layers[0].name, projection: 'EPSG:3857' },
14381438
{
14391439
type: 'FeatureCollection',
1440-
features: [{ type: 'Feature', geometry: { type: 'Point', coordinates: [110, 10] } }]
1440+
features: [{ type: 'Feature', geometry: { type: 'Point', coordinates: [110, 10] },properties: {} }]
14411441
},
14421442
'',
14431443
'EPSG:4326'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /