forked from MapComplete/MapComplete
Chore: ignore 'favourites'-layer when calculating 'usedImages' to display attribution
This commit is contained in:
parent
42fb487d95
commit
bfe2398565
4 changed files with 34 additions and 29 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue