• Resolved bhbrunt

    (@bhbrunt)


    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,
    Ben

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author QuantumCloud

    (@quantumcloud)

    I appreciate your valuable feedback.

    If we remove the focusout event then if a user does not choose the exact address then the field will be empty, which causes JS error. That’s why we are using the focus out event.

    By the way, if you are using the pro version, please open a support ticket from https://qc.ticksy.com/ if you have any further feedback or need help.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Geocoding errors with Map autocomplete’ is closed to new replies.