Skip to content
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

Get exact result for ht parameter and not the first one #12

Open
danceb opened this issue Oct 25, 2023 · 0 comments
Open

Get exact result for ht parameter and not the first one #12

danceb opened this issue Oct 25, 2023 · 0 comments

Comments

@danceb
Copy link
Contributor

danceb commented Oct 25, 2023

It is a little bit complicated to zoom to a feature by only passing the search text with the ht parameter, if the search term results in more than one entry. The map will zoom to the first entry of the result list and not to the one with the exact search phrase.

Examples with our system:
https://kartenportal.jena.de/?hp=kartenportal_qwc_adressen_v&ht=Markt%207
Searching for "Markt 7" will result in this list in our case:

  • Holzmarkt 7
  • Markt 7
  • Markt 17
  • ...

As "Holzmarkt 7" ist the first entry, the map will zoom to the related feature and not to the one for "Markt 7"

The workaround is, to pass the phrase additional in the hf parameter, like:
https://kartenportal.jena.de/?hp=kartenportal_qwc_adressen_v&hf=[["display"%2C"%3D"%2C"Markt%207%20(Adresse)"]]&ht=Markt%207%20

While this is a little bit bulky, wouldn't it be a better way, to zoom to the element with the exact phrase if there is one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant