Created
June 2, 2023 06:31
-
-
Save DylanCodeCabin/5c0ca3d6371409a62240590565ccae85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
$(document.body).on('markersplaced.wpgmza', () => { | |
for(let m in WPGMZA.maps){ | |
for(let i in WPGMZA.maps[m].markers){ | |
const marker = WPGMZA.maps[m].markers[i]; | |
if(marker && marker.googleMarker){ | |
google.maps.event.addListener(marker.googleMarker, 'mouseover', function (e) { | |
if(e && e.domEvent && e.domEvent.target){ | |
try{ | |
e.domEvent.target.removeAttribute('title'); | |
e.domEvent.target.parentElement.removeAttribute('title'); | |
} catch(ex) {} | |
} | |
}); | |
} | |
} | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment