-
Notifications
You must be signed in to change notification settings - Fork 55
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 search results in infowindow #1751
Conversation
@jokd Umm, yeah... If you could just resolve the current conflicts, that'd be great. |
I fixed the conflicts. But testing it I have a couple of comments myself so I will try to: |
Now the export buttons should lok similar to the infowindow export buttons:
Example config:
|
I will also add an option to make a selection of the search result for a layer. |
Nice additions. Not really a bug, but found something that can be a bit confusing for the user. If you activate the searchlist-component after doing a search you can still access the previous search in the searchbar which won't work. Probably outside the scope of this PR but if you use the regular search for autocomplePlacement your hits will be with the regular popup. While the searchlist will use infowindow. Would be more coherent to be able to set the regular search to infowindow as well. Covered here I guess #1228 |
Added these options:
Which will turn a search result into a selection. |
Thats the way it has always been right? |
I think I'm done with this, anyone wanna have a look? |
@tonnyandersson Wanna have another look on this? Would be nice to merge in case it's OK. |
@jokd Never had a look at this in the first place. My earlier comment was just about the conflicts. I don't have a lot of configs including the Search control set up, so it might take some time for me to configure a decent test case. If anyone else has got something ready to roll. please feel free to take this beauty out for a ride around the block. |
@filleg I addressed this issue in #1817, hopefully it will work well along with this PR (I haven't tested it) |
I tried the changes and seems to work fine. Can't confirm all parts since it is not fully compatible with QGIS server. But that is more related to getfeature.js and #1139 |
Tested using GeoServer. Most stuff seems to work and no errors are given in the console. However, I have some comments:
Other than that there are some other issues already mentioned by others or outside the scope of this PR:
|
We could use searchList: true as an option to activate the list, would that be better?
placement is a searchlistOptions-option while autocompletePlacement is a search-option. Will make it clear in the documentation
This can be looked into when issue #1420 is solved
They do export different stuff and I think that export all of the search results can be useful instead of making a selection and export it layer by layer
Will push a fix for this
Will push a fix for this
This is addressed in #1816 |
LGTM. |
Fixes #1413
Replaces #1436
Adds a infowindow-component which can be used to create a floating infowindow or aligned to the left.
Search control is configured ike this: