dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function (currentMarker, storeStart, page) {
			this.writeDebug('_defineLocationData',arguments);
			var indicator = '';
			this._createLocationVariables(currentMarker.get('id'));

			var altDistLength,
				distLength;

			if (locationData.distance <= 1) {
				if (this.settings.lengthUnit === 'km') {
					distLength = this.settings.kilometerLang;
					altDistLength = this.settings.mileLang;
				}
				else {
					distLength = this.settings.mileLang;
					altDistLength = this.settings.kilometerLang;
				}
			}
			else {
				if (this.settings.lengthUnit === 'km') {
					distLength = this.settings.kilometersLang;
					altDistLength = this.settings.milesLang;
				}
				else {
					distLength = this.settings.milesLang;
					altDistLength = this.settings.kilometersLang;
				}
			}

			// Set up alpha character
			var markerId = currentMarker.get('id');
			// Use dot markers instead of alpha if there are more than 26 locations
			if (this.settings.disableAlphaMarkers === true || this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
				indicator = markerId + 1;
			}
			else {
				if (page > 0) {
					indicator = String.fromCharCode('A'.charCodeAt(0) + (storeStart + markerId));
				}
				else {
					indicator = String.fromCharCode('A'.charCodeAt(0) + markerId);
				}
			}

			// Define location data
			return {
				location: [$.extend(locationData, {
					'markerid' : markerId,
					'marker'   : indicator,
					'altlength': altDistLength,
					'length'   : distLength,
					'origin'   : originalOrigin
				})]
			};
		}
function (currentMarker, storeStart, page) {
			this.writeDebug('_defineLocationData',arguments);
			var indicator = '';
			this._createLocationVariables(currentMarker.get('id'));

			var altDistLength,
				distLength;

			if (locationData.distance <= 1) {
				if (this.settings.lengthUnit === 'km') {
					distLength = this.settings.kilometerLang;
					altDistLength = this.settings.mileLang;
				}
				else {
					distLength = this.settings.mileLang;
					altDistLength = this.settings.kilometerLang;
				}
			}
			else {
				if (this.settings.lengthUnit === 'km') {
					distLength = this.settings.kilometersLang;
					altDistLength = this.settings.milesLang;
				}
				else {
					distLength = this.settings.milesLang;
					altDistLength = this.settings.kilometersLang;
				}
			}

			// Set up alpha character
			var markerId = currentMarker.get('id');
			// Use dot markers instead of alpha if there are more than 26 locations
			if (this.settings.disableAlphaMarkers === true || this.settings.storeLimit === -1 || this.settings.storeLimit > 26 || (this.settings.fullMapStart === true && firstRun === true && (isNaN(this.settings.fullMapStartListLimit) || this.settings.fullMapStartListLimit > 26 || this.settings.fullMapStartListLimit === -1))) {
				indicator = markerId + 1;
			}
			else {
				if (page > 0) {
					indicator = String.fromCharCode('A'.charCodeAt(0) + (storeStart + markerId));
				}
				else {
					indicator = String.fromCharCode('A'.charCodeAt(0) + markerId);
				}
			}

			// Define location data
			return {
				location: [$.extend(locationData, {
					'markerid' : markerId,
					'marker'   : indicator,
					'altlength': altDistLength,
					'length'   : distLength,
					'origin'   : originalOrigin
				})]
			};
		}
function ( currentMarker , storeStart , page ) { this . writeDebug ( '_defineLocationData' , arguments ) ; var indicator = '' ; this . _createLocationVariables ( currentMarker . get ( 'id' ) ) ; var altDistLength , distLength ; if ( locationData . distance <= 1 ) { if ( this . settings . lengthUnit === 'km' ) { distLength = this . settings . kilometerLang ; altDistLength = this . settings . mileLang ; } else { distLength = this . settings . mileLang ; altDistLength = this . settings . kilometerLang ; } } else { if ( this . settings . lengthUnit === 'km' ) { distLength = this . settings . kilometersLang ; altDistLength = this . settings . milesLang ; } else { distLength = this . settings . milesLang ; altDistLength = this . settings . kilometersLang ; } } // Set up alpha character var markerId = currentMarker . get ( 'id' ) ; // Use dot markers instead of alpha if there are more than 26 locations if ( this . settings . disableAlphaMarkers === true || this . settings . storeLimit === - 1 || this . settings . storeLimit > 26 || ( this . settings . fullMapStart === true && firstRun === true && ( isNaN ( this . settings . fullMapStartListLimit ) || this . settings . fullMapStartListLimit > 26 || this . settings . fullMapStartListLimit === - 1 ) ) ) { indicator = markerId + 1 ; } else { if ( page > 0 ) { indicator = String . fromCharCode ( 'A' . charCodeAt ( 0 ) + ( storeStart + markerId ) ) ; } else { indicator = String . fromCharCode ( 'A' . charCodeAt ( 0 ) + markerId ) ; } } // Define location data return { location : [ $ . extend ( locationData , { 'markerid' : markerId , 'marker' : indicator , 'altlength' : altDistLength , 'length' : distLength , 'origin' : originalOrigin } ) ] } ; }
Define the location data for the templates - private

@param currentMarker {Object} Google Maps marker
@param storeStart {number} optional first location on the current page
@param page {number} optional current page
@returns {Object} extended location data object
Define the location data for the templates - private