Created
May 7, 2019 07:20
-
-
Save DylanCodeCabin/9e505e2887854da4e383d9cb3d425cd5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(window).load(function(){ | |
for(var poly_i in WPGM_Path_Polygon){ | |
google.maps.event.addListener(WPGM_Path_Polygon[poly_i], 'mouseover', function(event){ | |
google.maps.event.trigger(this, 'click', {latLng: event.latLng}); | |
}); | |
google.maps.event.addListener(WPGM_Path_Polygon[poly_i], 'mousemove', function(event){ | |
for(var info_idx in infoWindow_poly){ | |
if(typeof infoWindow_poly[info_idx].close !== 'undefined'){ | |
infoWindow_poly[info_idx].close(); | |
} | |
} | |
google.maps.event.trigger(this, 'click', {latLng: event.latLng}); | |
}); | |
} | |
for(var map_idx in MYMAP){ | |
google.maps.event.addListener(MYMAP[map_idx].map.googleMap, 'mousemove', function(event){ | |
for(var info_idx in infoWindow_poly){ | |
if(typeof infoWindow_poly[info_idx].close !== 'undefined'){ | |
infoWindow_poly[info_idx].close(); | |
} | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment