forked from MapComplete/MapComplete
Refactoring: move special visualisations into multiple files
This commit is contained in:
parent
f057b0f358
commit
b9bc3f5980
14 changed files with 839 additions and 801 deletions
|
|
@ -24,6 +24,8 @@ export interface ConflateFlowArguments extends ImportFlowArguments {
|
|||
export default class ConflateImportButtonViz implements SpecialVisualization, AutoAction {
|
||||
supportsAutoAction: boolean = true
|
||||
needsUrls = []
|
||||
group = "data_import"
|
||||
|
||||
public readonly funcName: string = "conflate_button"
|
||||
public readonly args: {
|
||||
name: string
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { Feature, Point } from "geojson"
|
|||
import { UIEventSource } from "../../../Logic/UIEventSource"
|
||||
import { SpecialVisualization, SpecialVisualizationState } from "../../SpecialVisualization"
|
||||
import BaseUIElement from "../../BaseUIElement"
|
||||
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
|
||||
import SvelteUIElement from "../../Base/SvelteUIElement"
|
||||
import PointImportFlow from "./PointImportFlow.svelte"
|
||||
import { PointImportFlowArguments, PointImportFlowState } from "./PointImportFlowState"
|
||||
|
|
@ -20,9 +19,11 @@ export class PointImportButtonViz implements SpecialVisualization {
|
|||
public readonly example?: string
|
||||
public readonly args: { name: string; defaultValue?: string; doc: string; split?: boolean }[]
|
||||
public needsUrls = []
|
||||
group = "data_import"
|
||||
|
||||
constructor() {
|
||||
this.funcName = "import_button"
|
||||
|
||||
this.docs =
|
||||
"This button will copy the point from an external dataset into OpenStreetMap" +
|
||||
ImportFlowUtils.documentationGeneral
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ import FullNodeDatabaseSource from "../../../Logic/FeatureSource/TiledFeatureSou
|
|||
export default class WayImportButtonViz implements AutoAction, SpecialVisualization {
|
||||
public readonly funcName: string = "import_way_button"
|
||||
needsUrls = []
|
||||
group = "data_import"
|
||||
|
||||
public readonly docs: string =
|
||||
"This button will copy the data from an external dataset into OpenStreetMap, copying the geometry and adding it as a 'line'" +
|
||||
ImportFlowUtils.documentationGeneral
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue