dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function(markers, map) {
			this.writeDebug('checkVisibleMarkers',arguments);
			var _this = this;
			var locations, listHtml;

			// Empty the location list
			$('.' + this.settings.locationList + ' ul').empty();

			// Set up the new list
			$(markers).each(function(x, marker){
				if (map.getBounds().contains(marker.getPosition())) {
					// Define the location data
					_this.listSetup(marker, 0, 0);

					// Set up the list template with the location data
					listHtml = listTemplate(locations);
					$('.' + _this.settings.locationList + ' > ul').append(listHtml);
				}
			});

			// Re-add the list background colors
			$('.' + this.settings.locationList + ' ul li:even').css('background', this.settings.listColor1);
			$('.' + this.settings.locationList + ' ul li:odd').css('background', this.settings.listColor2);
		}
function(markers, map) {
			this.writeDebug('checkVisibleMarkers',arguments);
			var _this = this;
			var locations, listHtml;

			// Empty the location list
			$('.' + this.settings.locationList + ' ul').empty();

			// Set up the new list
			$(markers).each(function(x, marker){
				if (map.getBounds().contains(marker.getPosition())) {
					// Define the location data
					_this.listSetup(marker, 0, 0);

					// Set up the list template with the location data
					listHtml = listTemplate(locations);
					$('.' + _this.settings.locationList + ' > ul').append(listHtml);
				}
			});

			// Re-add the list background colors
			$('.' + this.settings.locationList + ' ul li:even').css('background', this.settings.listColor1);
			$('.' + this.settings.locationList + ' ul li:odd').css('background', this.settings.listColor2);
		}
function ( markers , map ) { this . writeDebug ( 'checkVisibleMarkers' , arguments ) ; var _this = this ; var locations , listHtml ; // Empty the location list $ ( '.' + this . settings . locationList + ' ul' ) . empty ( ) ; // Set up the new list $ ( markers ) . each ( function ( x , marker ) { if ( map . getBounds ( ) . contains ( marker . getPosition ( ) ) ) { // Define the location data _this . listSetup ( marker , 0 , 0 ) ; // Set up the list template with the location data listHtml = listTemplate ( locations ) ; $ ( '.' + _this . settings . locationList + ' > ul' ) . append ( listHtml ) ; } } ) ; // Re-add the list background colors $ ( '.' + this . settings . locationList + ' ul li:even' ) . css ( 'background' , this . settings . listColor1 ) ; $ ( '.' + this . settings . locationList + ' ul li:odd' ) . css ( 'background' , this . settings . listColor2 ) ; }
Updates the location list to reflect the markers that are displayed on the map

@param markers {Object} Map markers
@param map {Object} Google map
Updates the location list to reflect the markers that are displayed on the map