Skip to content

Commit

Permalink
Added max zoom level for images in edition_config
Browse files Browse the repository at this point in the history
  • Loading branch information
davivcu committed Sep 28, 2024
1 parent d36352b commit 8635afb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export interface EditionConfig {
}>;
startingFromDefinitiveLayer: boolean;
defaultImageZoomLevel: number;
maxImageZoomLevel: number;
showSubstitutionMarker: boolean;
multiPageEngineForCriticalEdition: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/osd/osd.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class OsdComponent implements AfterViewInit, OnDestroy {
const commonOptions = {
visibilityRatio: 0.66,
minZoomLevel: 0.3,
maxZoomLevel: 1,
maxZoomLevel: AppConfig.evtSettings.edition.maxImageZoomLevel,
defaultZoomLevel: AppConfig.evtSettings.edition.defaultImageZoomLevel,
sequenceMode: true,
prefixUrl: 'assets/osd/images/',
Expand Down
1 change: 1 addition & 0 deletions src/assets/config/edition_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,6 @@
}
},
"defaultImageZoomLevel": 0.8,
"maxImageZoomLevel": 2,
"multiPageEngineForCriticalEdition": false
}

0 comments on commit 8635afb

Please sign in to comment.