2020-06-29 03:12:44 +02:00
|
|
|
/**
|
|
|
|
* Asks to add a feature at the last clicked location, at least if zoom is sufficient
|
|
|
|
*/
|
2021-06-12 02:58:32 +02:00
|
|
|
import BaseUIElement from "../BaseUIElement"
|
2021-08-07 23:11:34 +02:00
|
|
|
import PresetConfig from "../../Models/ThemeConfig/PresetConfig"
|
2021-09-07 01:49:18 +02:00
|
|
|
import FilteredLayer from "../../Models/FilteredLayer"
|
2021-06-14 02:39:23 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The SimpleAddUI is a single panel, which can have multiple states:
|
|
|
|
* - A list of presets which can be added by the user
|
|
|
|
* - A 'confirm-selection' button (or alternatively: please enable the layer)
|
|
|
|
* - A 'something is wrong - please soom in further'
|
|
|
|
* - A 'read your unread messages before adding a point'
|
|
|
|
*/
|
2021-01-04 04:06:21 +01:00
|
|
|
|
2021-10-31 02:08:39 +01:00
|
|
|
export interface PresetInfo extends PresetConfig {
|
2021-06-14 02:39:23 +02:00
|
|
|
name: string | BaseUIElement
|
2021-07-14 00:17:15 +02:00
|
|
|
icon: () => BaseUIElement
|
2022-01-25 21:55:51 +01:00
|
|
|
layerToAddTo: FilteredLayer
|
|
|
|
boundsFactor?: 0.25 | number
|
2021-06-14 02:39:23 +02:00
|
|
|
}
|