forked from MapComplete/MapComplete
UX: search doesn't eternally spin anymore, add debug name for searchProviders
This commit is contained in:
parent
d00ccc9282
commit
1ecc63e5c8
10 changed files with 14 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
import GeocodingProvider, { SearchResult, GeocodingOptions } from "./GeocodingProvider"
|
||||
import GeocodingProvider, { GeocodingOptions, SearchResult } from "./GeocodingProvider"
|
||||
import ThemeViewState from "../../Models/ThemeViewState"
|
||||
import { Utils } from "../../Utils"
|
||||
import { Feature } from "geojson"
|
||||
|
@ -20,7 +20,7 @@ type IntermediateResult = {
|
|||
export default class LocalElementSearch implements GeocodingProvider {
|
||||
private readonly _state: ThemeViewState
|
||||
private readonly _limit: number
|
||||
|
||||
public readonly name = "LocalElementSearch"
|
||||
constructor(state: ThemeViewState, limit: number) {
|
||||
this._state = state
|
||||
this._limit = limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue