Search: add support for OpenLocationCodes and some other coordinate formats, see #2157

This commit is contained in:
Pieter Vander Vennet 2024-10-18 00:10:28 +02:00
parent 181219928c
commit 4d2b3c9cf7
5 changed files with 106 additions and 5 deletions

View file

@ -15,6 +15,7 @@ import LayerSearch from "../Search/LayerSearch"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import { FeatureSource } from "../FeatureSource/FeatureSource"
import { Feature } from "geojson"
import OpenLocationCodeSearch from "../Search/OpenLocationCodeSearch"
export default class SearchState {
@ -38,6 +39,7 @@ export default class SearchState {
this.locationSearchers = [
new LocalElementSearch(state, 5),
new CoordinateSearch(),
new OpenLocationCodeSearch(),
new OpenStreetMapIdSearch(state),
new PhotonSearch(true, 2),
new PhotonSearch(),