Support Forum
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.
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'
),
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).
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. 😉