Google Maps Field does not Update its values from the Address Field.

Support MB Geolocation Google Maps Field does not Update its values from the Address Field.

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by PeterPeter.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45223
    Kevin PottKevin Pott
    Participant

    Hey everyone, i'm having some problems with the Google Maps Field.

    I Created a CPT "Dealer Business Information". Which is tied to userdata saved in a custom table.
    Within this CPT there are the fields "Business: Address", "Business: ZIP", "Business City" and "Business: Country". And some other, for this issue not necessary fields.
    Also there is a Google Maps field. The API is set and the "Address Field" is filled in with the following:
    "business_group_address_line_1,business_group_address_city,business_group_address_country" which are three of the four IDs of the above mentioned Fields.

    But: Entering the fields Values like Address, City and so on, the Map WON'T update.
    It's default Value is in the northwest of Africa, even tho i gave it a default Latitude and Longitude which is in germany.

    When creating a fresh user and entering the custom Field Business information in this field, it stays at its default value in africa. Even when Updating the Adress Lines in the frontent form, backend or with WS-Form it does not change its value. It only works when clicking on the Map and chage the location like this, which is NOT what i would like. It should automatically update its value: How?

    Field Setting: https://imgur.com/a/kU22xjC

    Kind regards and thanks for reading,
    Kevin

    #45231
    PeterPeter
    Moderator

    Hello Kevin,

    It's the wrong address field for the map and geolocation. You need to add one address field to the map field settings, and the address field ID has to begin with address (like address or address_something).

    Please follow the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#address-field

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