Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KZeni/33f795b83303343655cf74e612acbe53 to your computer and use it in GitHub Desktop.
Save KZeni/33f795b83303343655cf74e612acbe53 to your computer and use it in GitHub Desktop.
function disableWPGMPolygonLineOpacityOnInteraction(){
if(window.location.href.indexOf("communities") > -1 || window.location.href.indexOf("community") > -1){
$(WPGM_Path_Polygon).each(function(i){
if(this !== window){
google.maps.event.addListener(WPGM_Path_Polygon[i], "mouseover", function(event) {
this.setOptions({strokeOpacity: 0});
});
google.maps.event.addListener(WPGM_Path_Polygon[i], "click", function(event) {
this.setOptions({strokeOpacity: 0});
});
}
});
}
}
disableWPGMPolygonLineOpacityOnInteraction();
setTimeout(function(){disableWPGMPolygonLineOpacityOnInteraction();},500);
setTimeout(function(){disableWPGMPolygonLineOpacityOnInteraction();},1000);
setTimeout(function(){disableWPGMPolygonLineOpacityOnInteraction();},2000);
setTimeout(function(){disableWPGMPolygonLineOpacityOnInteraction();},5000);
setTimeout(function(){disableWPGMPolygonLineOpacityOnInteraction();},10000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment