{"id":14510022,"date":"2021-06-02T05:44:31","date_gmt":"2021-06-02T05:44:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/initiate-map-upon-changing-address\/"},"modified":"2021-06-02T05:46:28","modified_gmt":"2021-06-02T05:46:28","slug":"initiate-map-upon-changing-address","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/initiate-map-upon-changing-address\/","title":{"rendered":"Initiate Map upon changing Address"},"content":{"rendered":"<p>Hi, I&#8217;ve been trying to use the code in the FAQ section to update my map&#8217;s info. ( Lat and Lng ).<\/p>\n<p>I did this to see the available function that I can use but I think I&#8217;m not using the correct method here.<\/p>\n<pre><code>$j(&#039;.cf7-google-map-container.banner-coverage-area&#039;).on(&#039;drag.cf7-google-map update.cf7-google-map&#039;, function(e){\n         \/\/the event has 5 address fields, e.address.line, e.address.city, e.address.pin, e.address.state, e.address.country.\n         \/\/some fields may be empty.\n         $j(&#039;#search-covarage-area&#039;).val( e.address.line + e.address.city + e.address.pin + e.address.state + e.address.country ); \n        e.gmap3.map({\n            center: center,\n            zoom: 18,\n            mapTypeId : google.maps.MapTypeId.ROADMAP\n        });\n        \n        console.log(e);\n    });<\/code><\/pre>\n<p>I want to do it vice versa. When I drag the marker the data attributes should change to the correct location, same with the address field too.<\/p>\n<p>I tried .marker .map but the parameters seems incorrect.<\/p>\n<p><a href=\"https:\/\/prnt.sc\/13perqc\">https:\/\/prnt.sc\/13perqc<\/a><br \/>\nThank you!<\/p>\n","protected":false},"template":"","class_list":["post-14510022","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14510022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14510022\/revisions"}],"predecessor-version":[{"id":14510026,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14510022\/revisions\/14510026"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14510022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}