Skip to content

Commit

Permalink
Search will display the label and location of the highest score result.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jun 5, 2023
1 parent e8b60c3 commit c3b2e47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abi-software/flatmapvuer",
"version": "0.4.6-fixes-1",
"version": "0.4.6-fixes-2",
"license": "Apache-2.0",
"main": "./dist/flatmapvuer.common.js",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,10 @@ export default {
if (displayLabel &&
searchResults.results[0].featureId &&
searchResults.results[0].text) {
const annotation = this.mapImp.annotation(searchResults.results[0].featureId);
this.mapImp.showPopup(
searchResults.results[0].featureId,
searchResults.results[0].text,
annotation.label,
{ className: "custom-popup", positionAtLastClick: false, preserveSelection: true }
)
}
Expand Down

0 comments on commit c3b2e47

Please sign in to comment.