There was an error while loading. Please reload this page.
1 parent a21b1ab commit 28e4495Copy full SHA for 28e4495
1 file changed
src/projections/registerProjection.ts
@@ -19,8 +19,8 @@ export function registerProjection(geo: ProjectionInfo): void {
19
proj4.defs(geo.epsgCode, geo.projection);
20
register(proj4);
21
// The extent is needed for tile-grid resolutions and for reprojecting raster sources into this
22
- // projection. Copied because setExtent stores the array by reference, and callers pass a shared
23
- // constant (RD_EXTENT), which OpenLayers would then be able to mutate out from under them.
+ // projection. Copied because setExtent stores the array by reference, and callers likely pass a
+ // shared constant, which OpenLayers would then be able to mutate out from under them.
24
getProjection(geo.epsgCode)?.setExtent([...geo.extent]);
25
registeredEpsgCodes.add(geo.epsgCode);
26
}
0 commit comments