Custom Fields
Re-Envisioned
Support Meta Box Geolocation Ooops! No Api Key Found even if it's there

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 2 months ago.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #9934

    Anh Tran
    Keymaster

    Oops, sorry. For geolocation extension, the API key is loaded via a filter, please see the sample code here:

    https://docs.metabox.io/extensions/meta-box-geolocation/#google-api-key

    #9939

    Mauro
    Participant

    Works great now!… So I assume the MetaBox Builder field should not be there, or the code generated should add the filter for me.

    One question, I can show the address I type on the map, and the pin is placed in the correct location.

    If I place the red pin elsewhere can I have it populate the address using the position of the pin instead?

    #10061

    Anh Tran
    Keymaster

    Hi Mauro,

    I’ll update the Builder and Geolocation extensions to make the API key part easier.

    One question, I can show the address I type on the map, and the pin is placed in the correct location.

    Updating the pin in the map regarding the address is out of scope of the Geolocation. It autopopulates the address parts only. The map is handled by the map field.

    If I place the red pin elsewhere can I have it populate the address using the position of the pin instead?

    I’m afraid there is no reverse process. Only one way from address to location.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.