Created
August 31, 2017 19:56
-
-
Save JarrydLong/63ca31e9a2ab893e292be8efe27aef20 to your computer and use it in GitHub Desktop.
Reset the map to the original zoom level when closing the info window
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
| google.maps.event.addListener(infoWindow[wpmgza_marker_id],'closeclick',function(){ | |
| MYMAP[map_id].map.setZoom(parseInt(wpgmaps_localize[map_id]['map_start_zoom'])); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment