Home › Forums › Front-end Issues › Adding Custom Markers to Map Field in Frontend Form › Reply To: Adding Custom Markers to Map Field in Frontend Form
Thanks! This solved my marker problem in 5 minutes!
Do you have any idea how to get the radius-circles to work?
If I add the following code inside acf.add_filter('google_map_marker_args', function(args, $field) {}
, the console tells me ‘google is not defined’.
Here’s the code:
var circle = new google.maps.Circle({
map : map,
radius : 1000,
fillColor : 'red',
strokeColor : 'red',
strokeWeight : 1
});
circle.bindTo('center', marker, 'position');
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.