Open Street Map not updating the address field
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by
prafgon.
-
AuthorPosts
-
March 24, 2020 at 7:12 PM #18684
prafgon
ParticipantHi 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.March 24, 2020 at 9:20 PM #18687prafgon
ParticipantI 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' ),March 25, 2020 at 9:37 AM #18691Anh Tran
KeymasterHi,
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).
March 25, 2020 at 3:37 PM #18695prafgon
ParticipantHi 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. 😉
-
AuthorPosts
- You must be logged in to reply to this topic.