Move image license picker into user panel, fix #1236

This commit is contained in:
Pieter Vander Vennet 2023-01-11 03:53:58 +01:00
parent 6a5e7f9a4d
commit a995f0e2aa
35 changed files with 252 additions and 303 deletions

View file

@ -109,6 +109,7 @@ export default class Constants {
static zoomToLocationTimeout = 60
static countryCoderEndpoint: string =
"https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/latlon2country"
public static readonly OsmPreferenceKeyPicturesLicense = "pictures-license"
private static isRetina(): boolean {
if (Utils.runningFromConsole) {

View file

@ -86,7 +86,7 @@ export default class TagRenderingConfig {
let translationKey = context
if (json["id"] !== undefined) {
const layerId = context.split(".")[0]
const layerId = (context ?? "").split(".")[0]
if (json["source"]) {
let src = json["source"] + ":"
if (json["source"] === "shared-questions") {