Closed srThibaultP closed 1 year ago
Sorry for the ping @patou but maybe you have an idea why I have this issue ?
Hi, I also have a similar issue only its with using the GoogleProvider.
I identified a road intersection on the map, and dropped a point at that intersection, and got the coordinates - 33.678179, -116.185082.
I checked in google maps and those coordinates land at the same intersection.
I then put the SAME coordinates into the geosearch bar, and the point gets dropped slightly off that intersection at 33.678003, -116.184864.
This does not happen when using the ESRI provider though.
I will continue to search for this issue in the google maps api issues tracker and stack overflow, but so far haven’t found anyone mentioning this already. If you know of a fix, please share! Thank you.
After looking at the library requests, I found out that when you select an address in the list, the library will request the API a second time, changing the information between the first result and the second one. Doing the "monkey patch" mentioned in https://github.com/smeijer/leaflet-geosearch/issues/288#issuecomment-901960093 fixed my issue.
Hello,
I'm trying to understand why my marker is placed in the wrong location while using the GeoApiFrProvider.
For example, when you type the post code '42720' and selecting the third option 'Vougy' you will see that result:
As you can see, there's a difference of two degrees between the marker placed by leaflet-geosearch and the current location.
The code :
Thanks in advance!