dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function (marker, location, infowindow, storeStart, page) {
			this.writeDebug('createInfowindow',arguments);
			var _this = this;
			// Define the location data
			var locations = this._defineLocationData(marker, storeStart, page);

			// Set up the infowindow template with the location data
			var formattedAddress = infowindowTemplate(locations);

			// Opens the infowindow when list item is clicked
			if (location === 'left') {
				infowindow.setContent(formattedAddress);
				infowindow.open(marker.get('map'), marker);
			}
			// Opens the infowindow when the marker is clicked
			else {
				google.maps.event.addListener(marker, 'click', function () {
					infowindow.setContent(formattedAddress);
					infowindow.open(marker.get('map'), marker);
					// Focus on the list
					var markerId = marker.get('id');
					var $selectedLocation = $('.' + _this.settings.locationList + ' li[data-markerid=' + markerId + ']');

					if ($selectedLocation.length > 0) {
						// Marker click callback
						if (_this.settings.callbackMarkerClick) {
							_this.settings.callbackMarkerClick.call(this, marker, markerId, $selectedLocation, locationset[markerId]);
						}

						$('.' + _this.settings.locationList + ' li').removeClass('list-focus');
						$selectedLocation.addClass('list-focus');

						// Scroll list to selected marker
						var $container = $('.' + _this.settings.locationList);
						$container.animate({
							scrollTop: $selectedLocation.offset().top - $container.offset().top + $container.scrollTop()
						});
					}

					// Custom selected marker override
					if (_this.settings.selectedMarkerImg !== null) {
						_this.changeSelectedMarker(marker);
					}
				});
			}
		}
function (marker, location, infowindow, storeStart, page) {
			this.writeDebug('createInfowindow',arguments);
			var _this = this;
			// Define the location data
			var locations = this._defineLocationData(marker, storeStart, page);

			// Set up the infowindow template with the location data
			var formattedAddress = infowindowTemplate(locations);

			// Opens the infowindow when list item is clicked
			if (location === 'left') {
				infowindow.setContent(formattedAddress);
				infowindow.open(marker.get('map'), marker);
			}
			// Opens the infowindow when the marker is clicked
			else {
				google.maps.event.addListener(marker, 'click', function () {
					infowindow.setContent(formattedAddress);
					infowindow.open(marker.get('map'), marker);
					// Focus on the list
					var markerId = marker.get('id');
					var $selectedLocation = $('.' + _this.settings.locationList + ' li[data-markerid=' + markerId + ']');

					if ($selectedLocation.length > 0) {
						// Marker click callback
						if (_this.settings.callbackMarkerClick) {
							_this.settings.callbackMarkerClick.call(this, marker, markerId, $selectedLocation, locationset[markerId]);
						}

						$('.' + _this.settings.locationList + ' li').removeClass('list-focus');
						$selectedLocation.addClass('list-focus');

						// Scroll list to selected marker
						var $container = $('.' + _this.settings.locationList);
						$container.animate({
							scrollTop: $selectedLocation.offset().top - $container.offset().top + $container.scrollTop()
						});
					}

					// Custom selected marker override
					if (_this.settings.selectedMarkerImg !== null) {
						_this.changeSelectedMarker(marker);
					}
				});
			}
		}
function ( marker , location , infowindow , storeStart , page ) { this . writeDebug ( 'createInfowindow' , arguments ) ; var _this = this ; // Define the location data var locations = this . _defineLocationData ( marker , storeStart , page ) ; // Set up the infowindow template with the location data var formattedAddress = infowindowTemplate ( locations ) ; // Opens the infowindow when list item is clicked if ( location === 'left' ) { infowindow . setContent ( formattedAddress ) ; infowindow . open ( marker . get ( 'map' ) , marker ) ; } // Opens the infowindow when the marker is clicked else { google . maps . event . addListener ( marker , 'click' , function ( ) { infowindow . setContent ( formattedAddress ) ; infowindow . open ( marker . get ( 'map' ) , marker ) ; // Focus on the list var markerId = marker . get ( 'id' ) ; var $selectedLocation = $ ( '.' + _this . settings . locationList + ' li[data-markerid=' + markerId + ']' ) ; if ( $selectedLocation . length > 0 ) { // Marker click callback if ( _this . settings . callbackMarkerClick ) { _this . settings . callbackMarkerClick . call ( this , marker , markerId , $selectedLocation , locationset [ markerId ] ) ; } $ ( '.' + _this . settings . locationList + ' li' ) . removeClass ( 'list-focus' ) ; $selectedLocation . addClass ( 'list-focus' ) ; // Scroll list to selected marker var $container = $ ( '.' + _this . settings . locationList ) ; $container . animate ( { scrollTop : $selectedLocation . offset ( ) . top - $container . offset ( ) . top + $container . scrollTop ( ) } ) ; } // Custom selected marker override if ( _this . settings . selectedMarkerImg !== null ) { _this . changeSelectedMarker ( marker ) ; } } ) ; } }
Create the infowindow

@param marker {Object} Google Maps marker object
@param location {string} indicates if the list or a map marker was clicked
@param infowindow Google Maps InfoWindow constructor
@param storeStart {number}
@param page {number}
Create the infowindow