[Bug]: Search not working with geodatasets
Open
Nobody has claimed this yet.
backlog
bug
- Dominant language
- JavaScript
- Stars
- 232
- Forks
- 77
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
Checked for duplicates
Yes - I've already checked
Describe the bug
I loaded a geodataset and set a search variable. When I enter a name and click the Magnifying Glass icon (i.e. commit the search), nothing happens. The console errors out with:
main.a9e97075.js:2 Uncaught TypeError: o[a].toLowerCase is not a function
at main.a9e97075.js:2:1982892
at t.eachLayer (main.a9e97075.js:2:330997)
at ie (main.a9e97075.js:2:1982778)
at HTMLDivElement.ee (main.a9e97075.js:2:1981164)
at HTMLDivElement.<anonymous> (988.bb63e3cf.js:2:3810157)
What did you expect?
I expected the search to return the feature I entered.
Reproducible steps
1. add a geodataset
2. add a search variable for the layer
3. search for feature by entering text and clicking Magnifying glass icon.
Environment
- Version of this software: 2.11
- Operating System: Windows 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in MMGIS 2.11 by adding a geodataset, configuring a search variable, and searching with the Magnifying Glass icon. Start from the search handler associated with the reported main.a9e97075.js stack trace; done means searching a geodataset returns the matching feature without the toLowerCase error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100