forked from MapComplete/MapComplete
Refactoring: remove dependency on 'ToSvelte' by working with TypeComponent directly
This commit is contained in:
parent
8b426ac444
commit
29dc7d1e03
9 changed files with 20 additions and 29 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { Store, Stores } from "../UIEventSource"
|
||||
import BaseUIElement from "../../UI/BaseUIElement"
|
||||
import { LicenseInfo } from "./LicenseInfo"
|
||||
import { Utils } from "../../Utils"
|
||||
import { Feature, Point } from "geojson"
|
||||
import { ServerSourceInfo } from "../../Models/SourceOverview"
|
||||
import { ComponentType } from "svelte/types/runtime/internal/dev"
|
||||
|
||||
export interface ProvidedImage {
|
||||
url: string
|
||||
|
|
@ -69,10 +69,7 @@ export default abstract class ImageProvider {
|
|||
|
||||
public abstract readonly name: string
|
||||
|
||||
public abstract SourceIcon(
|
||||
img?: { id: string; url: string; host?: string },
|
||||
location?: { lon: number; lat: number }
|
||||
): BaseUIElement
|
||||
public abstract sourceIcon(): ComponentType
|
||||
|
||||
/**
|
||||
* Gets all the relevant URLS for the given tags and for the given prefixes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue