forked from MapComplete/MapComplete
UX(inspector): fix search, show graphs, see #2353
This commit is contained in:
parent
0ae58a740c
commit
4e5f32139e
6 changed files with 95 additions and 31 deletions
|
|
@ -13,6 +13,7 @@
|
|||
import FeaturePropertiesStore from "../../Logic/FeatureSource/Actors/FeaturePropertiesStore"
|
||||
import SearchState from "../../Logic/State/SearchState"
|
||||
import ArrowUp from "@babeard/svelte-heroicons/mini/ArrowUp"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
|
||||
export let entry: GeocodeResult
|
||||
export let state: {
|
||||
|
|
@ -40,8 +41,9 @@
|
|||
let mapRotation = state.mapProperties.rotation
|
||||
let inView = state.mapProperties.bounds.mapD((bounds) => bounds.contains([entry.lon, entry.lat]))
|
||||
|
||||
let dispatch = createEventDispatcher<{ select: GeocodeResult }>()
|
||||
function select() {
|
||||
state.searchState.applyGeocodeResult(entry)
|
||||
dispatch("select", entry)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue