Chore: ignore 'favourites'-layer when calculating 'usedImages' to display attribution

This commit is contained in:
Pieter Vander Vennet 2024-04-22 14:43:05 +02:00
parent 42fb487d95
commit bfe2398565
4 changed files with 34 additions and 29 deletions

View file

@ -22,7 +22,7 @@ import GeoIndexedStore from "../../Logic/FeatureSource/Actors/GeoIndexedStore"
import { RasterLayerPolygon } from "../../Models/RasterLayers"
/**
* The attribution panel in the theme menu.
* The attribution panel in the theme menu. Shows the licenses of the artwork and of the map data
*/
export default class CopyrightPanel extends Combine {
private static LicenseObject = CopyrightPanel.GenerateLicenses()
@ -40,7 +40,9 @@ export default class CopyrightPanel extends Combine {
const t = Translations.t.general.attribution
const layoutToUse = state.layout
const iconAttributions: BaseUIElement[] = Utils.Dedup(layoutToUse.usedImages).map(
const iconAttributions: BaseUIElement[] = (layoutToUse.getUsedImages()).map(
CopyrightPanel.IconAttribution
)