Issues with Geocoding address field + map field in groups

Support Meta Box AIO Issues with Geocoding address field + map field in groupsResolved

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47103
    ambrdigitalambrdigital
    Participant

    Found an issue where map type field + associated address field are no longer working. Worked in Metabox AIO 1.27.0 but no longer seems to work with the most recent update.

    When typing in an address, the autocomplete doesn't appear, and no geocoding happens. I noticed this for any time the map field is in a group, and noticed this across all our websites. Can confirm is not an API key issue.

    Any insights please let me know!

    Picture of code here: https://www.dropbox.com/scl/fi/xkrmoqqgl2mm3r4mty0qc/Screenshot-2024-12-04-at-12.07.10-PM.png?rlkey=7w5rkazvzqjcwacq3iamf208e&dl=0

    #47107
    PeterPeter
    Moderator

    Hello Ambr,

    Thank you for your feedback.

    I see the geolocation feature doesn't work if you use the subfields in a group field. Please use the top fields to use the geolocation feature. I will informt the development team to consider supporting this case in future updates.

    #47143
    ambrdigitalambrdigital
    Participant

    Hi there, do you mean it won't work if it's in a group? This was working previously but has stopped working. We have this running on a lot of client websites with a lot of data. Is there any way you can get this working again so we don't have to rebuild it?

    #47149
    Tan NguyenTan Nguyen
    Participant

    Hi @ambrdigital,

    I have created a PR for this, while waiting for this to be fully tested and approved, can you please try to replace this osm.js inside your project?

    Cheers

    #47150
    Tan NguyenTan Nguyen
    Participant
    #47173
    ambrdigitalambrdigital
    Participant

    Hi Tan,

    Thanks so much - I did replace it but still not working. I did a hard cache clear, still nothing. Any other ideas?

    #47176
    Tan NguyenTan Nguyen
    Participant

    Hi, do you use Google Maps instead of OSM? If so, you can replace map.js with this file:

    https://github.com/wpmetabox/meta-box/blob/a7130ba7e6fe8ab19d1ea96592a6268ece03a06e/js/map.js

    Btw, it will be merged to the meta box soon. Cheers!

    #47193
    ambrdigitalambrdigital
    Participant

    Hi I see it's resolved in latest push. Thank so much

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.