The deprecation of a Google Maps API caused Maps to break on most Oxygen sites, so we’re going to cover the fix that was released and what you need to do to get your maps working again.
Dynamic ACF Map Field Code from Video:
Add the following as a Code Snippet:
function get_raw_field( $field ) { $map_location = get_field( $field ); return $map_location['address']; }
Then on the Oxygen map element, click the dynamic data button next to the address field.
In the advanced section, use PHP Function Return Value.
For the function name, use get_raw_field and for the paramater, use the name of your ACF Map field.
Viola!
Learn more about my Oxygen Builder course here: https://jonathanjernigan.com/ultimate-oxygen-course/
Visit the premium forums: https://jonathanjernigan.com/forums/