forked from MapComplete/MapComplete
Move image license picker into user panel, fix #1236
This commit is contained in:
parent
6a5e7f9a4d
commit
a995f0e2aa
35 changed files with 252 additions and 303 deletions
|
@ -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) {
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue