Skip to content

Commit

Permalink
Merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd committed Oct 2, 2023
1 parent a632004 commit ab03f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controls/print/print-settings.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function printTemplate({
</div>
<div class="padding-top-large"></div>
<div class="flex padding-right-small">
<div class="grow text-normal">Visa legend</div>
<div class="grow text-normal">Visa teckenförklaring</div>
${printLegendControl.render()}
</div>
<div class="padding-bottom-large">
Expand Down
4 changes: 3 additions & 1 deletion src/maputils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const maputils = {
tileGrid: function tileGrid(settings, defaultSettings = {}) {
const tileGridSettings = Object.assign({}, defaultSettings, settings);
const extent = tileGridSettings.extent;
tileGridSettings.origin = tileGridSettings.alignBottomLeft === false ? getTopLeft(extent) : getBottomLeft(extent);
if (!tileGridSettings.origin) {
tileGridSettings.origin = tileGridSettings.alignBottomLeft === false ? getTopLeft(extent) : getBottomLeft(extent);
}
return new TileGrid(tileGridSettings);
},
checkZoomChange: function checkZoomChange(resolution, currentResolution) {
Expand Down

0 comments on commit ab03f64

Please sign in to comment.