Closed nlafleur closed 1 year ago
This sounds more like an issue with esri-leaflet-geocoder than with react-esri-leaflet. Do you get the expected behavior when you write your code without react, i.e. with vanilla leaflet, esri-leaflet, and react-esri-leaflet? If the same thing happens with a vanilla version of your code, you'll want to open an issue with the esri-leaflet-geocoder repo.
Results in event "results" are different than the results shown in the "geocoder-control-suggestions".
These are the results when I type in "Botter,":
The "response.suggestions" in the "requestsuccess" function is always an empty array. But it does fill the "geocoder-control-suggestions" with correct suggestions.
When I press enter, the "results" event returns an array of 4 items, which were not shown in the "suggestions". This is the object which is returned in the "results" event:
I removed some of the unnecessary properties.
My code:
When I set "AllowMultipleResults" to false, the suggestions stay the same but when I press enter, I receive 0 results.
I also tried setting the "categories" but this has no effect.
In short: the "suggestions" show different results than the actual "results".
Versions:
Thanks