Custom Fields
Re-Envisioned
Support General Open Street Map not updating the address field

  • Creator
    Topic
  • #18684
    Resolved prafgon
    Participant

    Hi there!

    I apologize if this is a silly question but I’m a bit confused about the correct way the Open Street Map field should work.

    I have a meta field with the OSM and a standard text input that is attached to the address_field:

    array(
              'id' => EXR::$prefix . 'location_address',
              'name' => esc_html__('Location Address', EXR::$text_domain),
              'tab' => 'location',
              'type' => 'text'
            ),
            array(
              'id' => EXR::$prefix . 'location',
              'name' => esc_html__('Map Location', EXR::$text_domain),
              'tab' => 'location',
              'type' => 'osm',
              'std' => '43.263623, 6.644852,15',
              'address_field' => EXR::$prefix . 'address'
            ),

    When I start typing the address in the text input and choose/select one, the map gets updated properly. However, when I move the map pin around, the text input does NOT get updated at all. Is this is a known bug? Or an expected behavior?

    In addition, the “Find address” button below the map is NOT displayed at all. No JS conflicts/errors at all.

    Thanks!
    F.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #18687
    prafgon
    Participant

    I just noticed I pasted an outdated code. Here it is:

    array(
              'id' => EXR::$prefix . 'location_address',
              'name' => esc_html__('Location Address', EXR::$text_domain),
              'tab' => 'location',
              'type' => 'text'
            ),
            array(
              'id' => EXR::$prefix . 'location',
              'name' => esc_html__('Map Location', EXR::$text_domain),
              'tab' => 'location',
              'type' => 'osm',
              'std' => '43.263623, 6.644852,15',
              'address_field' => EXR::$prefix . 'location_address'
            ),
    #18691
    Anh Tran
    Keymaster

    Hi,

    When moving the marker on the map, only map location is updated. The address is not updated. This is the designed behavior.

    In addition, the “Find address” button below the map is NOT displayed at all. No JS conflicts/errors at all.

    Thanks for your feedback. We decided to remove the “Find address” button, since it’s confusing to many users (the input with autocomplete already works and they don’t understand the purpose of the button).

    #18695
    prafgon
    Participant

    Hi Anh!

    Thanks for your prompt response and clarification. I think I wouldn’t be posting this if the “Find address” button was removed from the documentation as we were basing our assumptions on that. 😉

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