Skip to content

Commit a04b6a3

Browse files
committed
[bug] 修复 ol webmap 3857的地图添加经纬网卡顿
review by zhaoq
1 parent fbd7525 commit a04b6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4731,7 +4731,7 @@ export class WebMap extends Observable {
47314731
// 添加经纬网需要设置extent、worldExtent
47324732
let projection = new olProj.get(epsgCode);
47334733
projection.setExtent(extent);
4734-
projection.setWorldExtent(olProj.transformExtent(extent, 'EPSG:4326', epsgCode));
4734+
projection.setWorldExtent(olProj.transformExtent(extent, epsgCode, 'EPSG:4326'));
47354735

47364736
let graticuleOptions = {
47374737
layerID: 'graticule_layer',

0 commit comments

Comments
 (0)