We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd7525 commit a04b6a3Copy full SHA for a04b6a3
src/openlayers/mapping/WebMap.js
@@ -4731,7 +4731,7 @@ export class WebMap extends Observable {
4731
// 添加经纬网需要设置extent、worldExtent
4732
let projection = new olProj.get(epsgCode);
4733
projection.setExtent(extent);
4734
- projection.setWorldExtent(olProj.transformExtent(extent, 'EPSG:4326', epsgCode));
+ projection.setWorldExtent(olProj.transformExtent(extent, epsgCode, 'EPSG:4326'));
4735
4736
let graticuleOptions = {
4737
layerID: 'graticule_layer',
0 commit comments