Skip to content

Instantly share code, notes, and snippets.

@DylanCodeCabin
Created June 2, 2023 06:31
Show Gist options
  • Save DylanCodeCabin/5c0ca3d6371409a62240590565ccae85 to your computer and use it in GitHub Desktop.
Save DylanCodeCabin/5c0ca3d6371409a62240590565ccae85 to your computer and use it in GitHub Desktop.
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