UX: search doesn't eternally spin anymore, add debug name for searchProviders

This commit is contained in:
Pieter Vander Vennet 2025-02-03 11:43:43 +01:00
parent d00ccc9282
commit 1ecc63e5c8
10 changed files with 14 additions and 13 deletions

View file

@ -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