Created
October 10, 2019 19:36
-
-
Save KZeni/33f795b83303343655cf74e612acbe53 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
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