Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Oct 28, 2023
1 parent 8914f4d commit b929b13
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/en/main/ol/proj.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,10 @@ export function toUserResolution(resolution, sourceProjection) {
if (!userProjection) {
return resolution;
}
const sourceUnits = get(sourceProjection).getUnits();
const userUnits = userProjection.getUnits();
return sourceUnits && userUnits
? (resolution * METERS_PER_UNIT[sourceUnits]) / METERS_PER_UNIT[userUnits]
const sourceMetersPerUnit = get(sourceProjection).getMetersPerUnit();
const userMetersPerUnit = userProjection.getMetersPerUnit();
return sourceMetersPerUnit && userMetersPerUnit
? (resolution * sourceMetersPerUnit) / userMetersPerUnit
: resolution;
}

Expand All @@ -685,10 +685,10 @@ export function fromUserResolution(resolution, destProjection) {
if (!userProjection) {
return resolution;
}
const sourceUnits = get(destProjection).getUnits();
const userUnits = userProjection.getUnits();
return sourceUnits && userUnits
? (resolution * METERS_PER_UNIT[userUnits]) / METERS_PER_UNIT[sourceUnits]
const destMetersPerUnit = get(destProjection).getMetersPerUnit();
const userMetersPerUnit = userProjection.getMetersPerUnit();
return destMetersPerUnit && userMetersPerUnit
? (resolution * userMetersPerUnit) / destMetersPerUnit
: resolution;
}

Expand Down

0 comments on commit b929b13

Please sign in to comment.