forked from MapComplete/MapComplete
Refactoring: move class to more appropriate file, remove obsolete file
This commit is contained in:
parent
2a2b8b77e8
commit
5a0866ff08
4 changed files with 2 additions and 24 deletions
|
@ -18,7 +18,6 @@ import { FeatureSource, WritableFeatureSource } from "../../Logic/FeatureSource/
|
||||||
import FullNodeDatabaseSource from "../../Logic/FeatureSource/TiledFeatureSource/FullNodeDatabaseSource"
|
import FullNodeDatabaseSource from "../../Logic/FeatureSource/TiledFeatureSource/FullNodeDatabaseSource"
|
||||||
import { WithUserRelatedState } from "./WithUserRelatedState"
|
import { WithUserRelatedState } from "./WithUserRelatedState"
|
||||||
import GeoLocationHandler from "../../Logic/Actors/GeoLocationHandler"
|
import GeoLocationHandler from "../../Logic/Actors/GeoLocationHandler"
|
||||||
import { GeolocationControlState } from "../../UI/BigComponents/GeolocationControl"
|
|
||||||
import ShowOverlayRasterLayer from "../../UI/Map/ShowOverlayRasterLayer"
|
import ShowOverlayRasterLayer from "../../UI/Map/ShowOverlayRasterLayer"
|
||||||
import { BBox } from "../../Logic/BBox"
|
import { BBox } from "../../Logic/BBox"
|
||||||
import ShowDataLayer from "../../UI/Map/ShowDataLayer"
|
import ShowDataLayer from "../../UI/Map/ShowDataLayer"
|
||||||
|
@ -26,6 +25,7 @@ import { OfflineBasemapManager } from "../../Logic/OfflineBasemapManager"
|
||||||
import { IsOnline } from "../../Logic/Web/IsOnline"
|
import { IsOnline } from "../../Logic/Web/IsOnline"
|
||||||
import { Tiles } from "../TileRange"
|
import { Tiles } from "../TileRange"
|
||||||
import { LocalStorageSource } from "../../Logic/Web/LocalStorageSource"
|
import { LocalStorageSource } from "../../Logic/Web/LocalStorageSource"
|
||||||
|
import { GeolocationControlState } from "../../Logic/State/GeolocationControlState"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The first core of the state management; everything related to:
|
* The first core of the state management; everything related to:
|
||||||
|
@ -273,7 +273,6 @@ export class UserMapFeatureswitchState extends WithUserRelatedState {
|
||||||
*
|
*
|
||||||
* Note: this method is _incorrectly_ marked as not used
|
* Note: this method is _incorrectly_ marked as not used
|
||||||
*/
|
*/
|
||||||
// @ts-ignore
|
|
||||||
public showCurrentLocationOn(map: Store<MlMap>) {
|
public showCurrentLocationOn(map: Store<MlMap>) {
|
||||||
const id = "gps_location"
|
const id = "gps_location"
|
||||||
const layer = this.theme.getLayer(id)
|
const layer = this.theme.getLayer(id)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Location_refused from "../../assets/svg/Location_refused.svelte"
|
import Location_refused from "../../assets/svg/Location_refused.svelte"
|
||||||
import { Store } from "../../Logic/UIEventSource.js"
|
import { Store } from "../../Logic/UIEventSource.js"
|
||||||
import type { GeolocationPermissionState } from "../../Logic/State/GeoLocationState.js"
|
import type { GeolocationPermissionState } from "../../Logic/State/GeoLocationState"
|
||||||
import ThemeViewState from "../../Models/ThemeViewState"
|
import ThemeViewState from "../../Models/ThemeViewState"
|
||||||
import Location_locked from "../../assets/svg/Location_locked.svelte"
|
import Location_locked from "../../assets/svg/Location_locked.svelte"
|
||||||
import Location_unlocked from "../../assets/svg/Location_unlocked.svelte"
|
import Location_unlocked from "../../assets/svg/Location_unlocked.svelte"
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
/**
|
|
||||||
* Asks to add a feature at the last clicked location, at least if zoom is sufficient
|
|
||||||
*/
|
|
||||||
import BaseUIElement from "../BaseUIElement"
|
|
||||||
import PresetConfig from "../../Models/ThemeConfig/PresetConfig"
|
|
||||||
import FilteredLayer from "../../Models/FilteredLayer"
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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'
|
|
||||||
*/
|
|
||||||
|
|
||||||
export interface PresetInfo extends PresetConfig {
|
|
||||||
name: string | BaseUIElement
|
|
||||||
icon: () => BaseUIElement
|
|
||||||
layerToAddTo: FilteredLayer
|
|
||||||
boundsFactor?: 0.25 | number
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue