Issue with Google Maps Field and MB Geolocation Integration

Support MB Geolocation Issue with Google Maps Field and MB Geolocation Integration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47517
    Simon EgleSimon Egle
    Participant

    I am using the Google Maps field in combination with the MB Geolocation extension. Since the API key is a required field in the Google Maps settings, I have added it both in the Google Maps field settings and in the Field Group “Address” settings.

    I have also configured fields with the following IDs:
    • lng
    • lat
    • street_address
    • locality

    These fields are set up to automatically populate data from Google Maps autocomplete. Additionally, I have created a text field and linked it in the “Address Field” option of the Google Maps field, which is also set as a required field.

    The API key itself is functioning correctly.

    However, I have encountered an issue:

    • When the API key is added to both the Google Maps field settings and the Field Group settings, the lng and lat fields work correctly. However, the address autocomplete feature does not function. When I move the pointer on the map, I receive live updates for the lng and lat fields, which is exactly what I want.
    • When the API key is added only to the Google Maps field settings, the address autocomplete works, but the lng and lat fields do not populate.

    My ultimate goal is:
    I want to use the autocomplete feature for the initial data population. After that, I would like to manually adjust the data, and finally, move the pointer on the map to the exact location so it remains there. While Google Maps data is helpful, it is often inaccurate in my country, so I need the ability to fine-tune the data manually.

    Thank you in advance for your help!

    #47537
    PeterPeter
    Moderator

    Hello Simon,

    I cannot reproduce the issue on my test site:
    - add the Google map API key to the map field and field group settings (geo.api_key)
    - create a new post, add some keywords to autocomplete text field
    - select an address and it auto populates lat and long values
    here is the screen record https://drive.google.com/file/d/17vga7YGodag4vSBrjdWs7kuWRVXUB2ZX/view?usp=sharing

    you can try to activate only Meta Box plugins and a WordPress theme to see if it helps.

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