Initiate Map upon changing Address
-
Hi, I’ve been trying to use the code in the FAQ section to update my map’s info. ( Lat and Lng ).
I did this to see the available function that I can use but I think I’m not using the correct method here.
$j('.cf7-google-map-container.banner-coverage-area').on('drag.cf7-google-map update.cf7-google-map', function(e){ //the event has 5 address fields, e.address.line, e.address.city, e.address.pin, e.address.state, e.address.country. //some fields may be empty. $j('#search-covarage-area').val( e.address.line + e.address.city + e.address.pin + e.address.state + e.address.country ); e.gmap3.map({ center: center, zoom: 18, mapTypeId : google.maps.MapTypeId.ROADMAP }); console.log(e); });
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.
I tried .marker .map but the parameters seems incorrect.
https://prnt.sc/13perqc
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Initiate Map upon changing Address’ is closed to new replies.