mapcomplete/Logic/Actors/StrayClickHandler.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
890 B
TypeScript
Raw Normal View History

2021-01-02 21:03:40 +01:00
import { UIEventSource } from "../UIEventSource"
import FilteredLayer from "../../Models/FilteredLayer"
import ScrollableFullScreen from "../../UI/Base/ScrollableFullScreen"
import BaseUIElement from "../../UI/BaseUIElement"
2020-06-29 03:12:44 +02:00
/**
* The stray-click-handler adds a marker to the map if no feature was clicked.
2020-06-29 03:12:44 +02:00
* Shows the given uiToShow-element in the messagebox
*
* Note: the actual implementation is in StrayClickHandlerImplementation
2020-06-29 03:12:44 +02:00
*/
export default class StrayClickHandler {
public static construct = (
state: {
LastClickLocation: UIEventSource<{ lat: number; lon: number }>
selectedElement: UIEventSource<string>
filteredLayers: UIEventSource<FilteredLayer[]>
leafletMap: UIEventSource<any>
},
uiToShow: ScrollableFullScreen,
iconToShow: BaseUIElement
) => {
return undefined
2020-06-29 03:12:44 +02:00
}
}