Home › Forums › Front-end Issues › Show marker on div hover outside the acf-map › Reply To: Show marker on div hover outside the acf-map
OK guys, me being impatient to wait for an answer found a solution, so I’m just gonna paste it here for anyone else running into something like this. It was simple really, I just didn’t realize since I rely too much on jQuery sometimes. Here:
var listing = document.querySelector('.card-' +postID);
listing.addEventListener('mouseover', function() {
infowindow.open( map, marker );
});
listing.addEventListener('mouseout', function() {
infowindow.close();
});
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.