Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.