Geocoding errors with Map autocomplete
-
Hi there,
I’ve been helping debug a site running Simple Business Directory Pro (plugin v13.3.7). When adding a new list item, there is a glitch with the geocoding, e.g. if I type “Carli” and accept the autocomplete suggestion “Carlisle, UK”, the map marker appears in Carlisle, MA, USA.
It seems that the geocoding is being done based on what I typed, not on the autocomplete suggestion I accepted. This seems to be a problem in directory-script.js. There are conflicting lat/long geocodings in the focus and focusout callbacks for sbd_full_address. I believe that the “focus” callback has the correct implementation, and the “focusout” may be left over from an earlier version (from before the autocomplete was added?). In my local version I have removed the focusout callback (lines 1549-1570 of directory-script.js), which seems to solve the problem.
Best wishes,
BenThe page I need help with: [log in to see the link]
- The topic ‘Geocoding errors with Map autocomplete’ is closed to new replies.