Binding not working

Support MB Geolocation Binding not workingResolved

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #48624
    Roel PetraRoel Petra
    Participant

    Hi there,
    I'm using the Open Street Maps for my geolocation however the binding doesn't seem to work for all fields.
    It does work for the lat and lng but not for pretty much all the other fields.
    I've tried:
    city, building, house_number, aeroway, road, etc. etc. (all of them).

    I'm putting the binding in the "Custom settings" part of each text field.
    I've even tried putting city as the field id, this still wont fill the field.

    Picture showing city not being filled

    Showing text field id

    City text field custom settings

    Also when I do the binding with a custom Id it doesn't work.

    #48625
    PeterPeter
    Moderator

    Hello Roel,

    Thanks for reaching out.

    Can you please export the field group to a JSON file and share it with me? I will import the field group to my site and investigate the issue.
    Please follow the documentation to export the field group https://docs.metabox.io/extensions/meta-box-builder/#export--import

    #48626
    Roel PetraRoel Petra
    Participant

    Hi Peter,

    You'll find it here: https://wormhole.app/D1yWYM#hdyzuUjkRONs2qUOJwiA8w
    Please note the file is available for 24 hours.

    #48627
    PeterPeter
    Moderator

    Hello Roel,

    There are some issues in the field group that I can see:

    1. geo setting is not enabled https://docs.metabox.io/extensions/meta-box-geolocation/#field-group-settings

    2. address field should start with address_xxx https://docs.metabox.io/extensions/meta-box-geolocation/#address-field

    3. Custom binding is missing for the dtv_vacancy-location-city field https://docs.metabox.io/extensions/meta-box-geolocation/#custom-binding

    Please fix them and let me know how it goes.

    #48628
    Roel PetraRoel Petra
    Participant

    Hi Peter,
    So you're saying I need to put this into a MB Group?
    I've added 'geo true' to the settings on the custom fields.
    Do I add this to the tab in this case?

    The address field is working, it's also giving me suggestions since I've mapped it from the osm map.
    Do you mean that I NEED to do this in order to get the Geolocation mapping working?

    I have binding mapped on my city field, if it's not mapped then there's a bug with the saving of the custom fields.

    #48629
    Roel PetraRoel Petra
    Participant

    I've looked at the file too, I do see the binding:

            {
                "name": "Stad",
                "id": "dtv_vacancy-location-city",
                "type": "text",
                "limit_type": "character",
                "binding": "city",
                "tab": "dtv_vacancy-location-tab"
            },
    #48630
    PeterPeter
    Moderator

    Hello,

    I already shared some settings that you need to enable to make the geolocation work. Please check this screen record https://drive.google.com/file/d/1_3f7AELY_WKDWOqNI-JE4KnNDSUlhSdf/view?usp=sharing

    and follow the documentation carefully https://docs.metabox.io/extensions/meta-box-geolocation

    #48632
    Roel PetraRoel Petra
    Participant

    I got it solved 🙂 Thank you

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