Skip to content

Commit e613e8b

Browse files
修复 maplibregl mapv 层级问题 review by luox
1 parent 374d4fb commit e613e8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/maplibregl/overlay/MapvLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class MapvLayer {
4646
getResolution: this._getResolution,
4747
validZoom: this._validZoom.bind(this)
4848
}, { id: this.id, targetElement: this.mapContainer, mapElement: this.map.getCanvas() });
49+
this.mapContainer.style.perspective = this.map.transform.cameraToCenterDistance + 'px';
4950
this._bindEvent();
5051
}
5152
/**

0 commit comments

Comments
 (0)