Skip to content

Commit

Permalink
Update event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesletesson committed Sep 25, 2013
1 parent 2e707fe commit 50921f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/jquery.storelocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,12 @@ $.fn.storeLocator = function(options) {
}

if(settings.storeOnMap === 'true'){
// Add event listener to filter the list when the map is fully loaded
google.maps.event.addListenerOnce(map, 'idle', function(){
checkVisibleMarker();
});


// Add event listener for center change
google.maps.event.addListener(map, 'center_changed', function() {
checkVisibleMarker();
Expand Down

0 comments on commit 50921f2

Please sign in to comment.