Skip to content

Commit

Permalink
fixed bug of issue#8 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinIgarashi authored Apr 17, 2022
1 parent a2e3600 commit 1c3641a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/export-control.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { IControl, Map as MaplibreMap } from 'maplibre-gl';
import CrosshairManager from './crosshair-manager';
import PrintableAreaManager from './printable-area-manager';
import { english, french, finnish, swedish, Translation } from './local';
import {
english,
french,
finnish,
swedish,
Translation,
} from './local';
import MapGenerator, {
Size, Format, PageOrientation, DPI, Unit,
} from './map-generator';
Expand Down Expand Up @@ -62,7 +68,7 @@ export default class MaplibreExportControl implements IControl {
case 'fr':
return french;
case 'fi':
return finnish;
return finnish;
case 'sv':
return swedish;
default:
Expand Down Expand Up @@ -100,7 +106,7 @@ export default class MaplibreExportControl implements IControl {
table.appendChild(tr1);

const tr2 = this.createSelection(
PageOrientation, this.getTranslation().PageOrientation, 'page-orientation', this.options.PageOrientation, (data, key) => data[key],
PageOrientation, this.getTranslation().PageOrientation, 'page-orientaiton', this.options.PageOrientation, (data, key) => data[key],
);
table.appendChild(tr2);

Expand Down

0 comments on commit 1c3641a

Please sign in to comment.