-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Show results above the search bar #58
Comments
@dabreegster Hey, Dustin, thanks for reaching out! |
Hi both, thanks for the tips and sorry for the slow response! My current attempt is at https://github.com/acteng/atip/blob/nobuild_geocode_position/src/lib/common/Geocoder.svelte, following https://docs.maptiler.com/svelte/maplibre-gl-js/geocoding-control/. I can't get the CSS override approach to work with the Svelte component, because nothing with the
|
@dabreegster I see you already use Or you can implement it as in https://github.com/maptiler/maptiler-geocoding-control/blob/main/examples/maptiler-sdk/AppMapTilerSdk.svelte @petr-hajek Using it as a Svelte component directly in Svelte app may bring some optimizations, but they are negligible. |
@dabreegster never mind my (deleted) comment, only now I had a look at your code @zdila I believe what we are missing is an easy way how to define position when using |
Is your feature request related to a problem? Please describe.
I have a map where the top bar can expand or shrink. I've placed the geocoder widget in a fixed position that's usually beneath this bar, but it's quite awkward to use:
Describe the solution you'd like
I'd like a new option to render the results above the search bar. This would allow a better placement near the bottom of the screen. Skimming through the Svelte compnent, the ul would then appear above
<div class="input-group">
.Describe alternatives you've considered
I've also thought about always placing the geocoding control directly beneath my app's top bar, but if it also jumped around as that bar expands/collapses, that might be disorienting.
The text was updated successfully, but these errors were encountered: