dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function () {
			this.writeDebug('_start');
			var _this = this,
					doAutoGeo = this.settings.autoGeocode,
					latlng;

			// Full map blank start
			if (_this.settings.fullMapStartBlank !== false) {
				var $mapDiv = $('#' + _this.settings.mapID);
				$mapDiv.addClass('bh-sl-map-open');
				var myOptions = _this.settings.mapSettings;
				myOptions.zoom = _this.settings.fullMapStartBlank;

				latlng = new google.maps.LatLng(this.settings.defaultLat, this.settings.defaultLng);
				myOptions.center = latlng;

				// Create the map
				_this.map = new google.maps.Map(document.getElementById(_this.settings.mapID), myOptions);

				// Re-center the map when the browser is re-sized
				google.maps.event.addDomListener(window, 'resize', function() {
					var center = _this.map.getCenter();
					google.maps.event.trigger(_this.map, 'resize');
					_this.map.setCenter(center);
				});

				// Only do this once
				_this.settings.fullMapStartBlank = false;
				myOptions.zoom = originalZoom;
			}
			else {
				// If a default location is set
				if (this.settings.defaultLoc === true) {
					this.defaultLocation();
				}

				// If there is already have a value in the address bar
				if ($.trim($('#' + this.settings.addressID).val()) !== ''){
					_this.writeDebug('Using Address Field');
					_this.processForm(null);
					doAutoGeo = false; // No need for additional processing
				}
				// If show full map option is true
				else if (this.settings.fullMapStart === true) {
					if ((this.settings.querystringParams === true && this.getQueryString(this.settings.addressID)) || (this.settings.querystringParams === true && this.getQueryString(this.settings.searchID)) || (this.settings.querystringParams === true && this.getQueryString(this.settings.maxDistanceID))) {
						_this.writeDebug('Using Query String');
						this.processForm(null);
						doAutoGeo = false; // No need for additional processing
					}
					else {
						this.mapping(null);
					}
				}
			}

			// HTML5 auto geolocation API option
			if (this.settings.autoGeocode === true && doAutoGeo === true) {
				_this.writeDebug('Auto Geo');

				_this.htmlGeocode();
			}

			// HTML5 geolocation API button option
			if (this.settings.autoGeocode !== null) {
				_this.writeDebug('Button Geo');

				$(document).on('click.'+pluginName, '#' + this.settings.geocodeID, function () {
					_this.htmlGeocode();
				});
			}
		}
function () {
			this.writeDebug('_start');
			var _this = this,
					doAutoGeo = this.settings.autoGeocode,
					latlng;

			// Full map blank start
			if (_this.settings.fullMapStartBlank !== false) {
				var $mapDiv = $('#' + _this.settings.mapID);
				$mapDiv.addClass('bh-sl-map-open');
				var myOptions = _this.settings.mapSettings;
				myOptions.zoom = _this.settings.fullMapStartBlank;

				latlng = new google.maps.LatLng(this.settings.defaultLat, this.settings.defaultLng);
				myOptions.center = latlng;

				// Create the map
				_this.map = new google.maps.Map(document.getElementById(_this.settings.mapID), myOptions);

				// Re-center the map when the browser is re-sized
				google.maps.event.addDomListener(window, 'resize', function() {
					var center = _this.map.getCenter();
					google.maps.event.trigger(_this.map, 'resize');
					_this.map.setCenter(center);
				});

				// Only do this once
				_this.settings.fullMapStartBlank = false;
				myOptions.zoom = originalZoom;
			}
			else {
				// If a default location is set
				if (this.settings.defaultLoc === true) {
					this.defaultLocation();
				}

				// If there is already have a value in the address bar
				if ($.trim($('#' + this.settings.addressID).val()) !== ''){
					_this.writeDebug('Using Address Field');
					_this.processForm(null);
					doAutoGeo = false; // No need for additional processing
				}
				// If show full map option is true
				else if (this.settings.fullMapStart === true) {
					if ((this.settings.querystringParams === true && this.getQueryString(this.settings.addressID)) || (this.settings.querystringParams === true && this.getQueryString(this.settings.searchID)) || (this.settings.querystringParams === true && this.getQueryString(this.settings.maxDistanceID))) {
						_this.writeDebug('Using Query String');
						this.processForm(null);
						doAutoGeo = false; // No need for additional processing
					}
					else {
						this.mapping(null);
					}
				}
			}

			// HTML5 auto geolocation API option
			if (this.settings.autoGeocode === true && doAutoGeo === true) {
				_this.writeDebug('Auto Geo');

				_this.htmlGeocode();
			}

			// HTML5 geolocation API button option
			if (this.settings.autoGeocode !== null) {
				_this.writeDebug('Button Geo');

				$(document).on('click.'+pluginName, '#' + this.settings.geocodeID, function () {
					_this.htmlGeocode();
				});
			}
		}
function ( ) { this . writeDebug ( '_start' ) ; var _this = this , doAutoGeo = this . settings . autoGeocode , latlng ; // Full map blank start if ( _this . settings . fullMapStartBlank !== false ) { var $mapDiv = $ ( '#' + _this . settings . mapID ) ; $mapDiv . addClass ( 'bh-sl-map-open' ) ; var myOptions = _this . settings . mapSettings ; myOptions . zoom = _this . settings . fullMapStartBlank ; latlng = new google . maps . LatLng ( this . settings . defaultLat , this . settings . defaultLng ) ; myOptions . center = latlng ; // Create the map _this . map = new google . maps . Map ( document . getElementById ( _this . settings . mapID ) , myOptions ) ; // Re-center the map when the browser is re-sized google . maps . event . addDomListener ( window , 'resize' , function ( ) { var center = _this . map . getCenter ( ) ; google . maps . event . trigger ( _this . map , 'resize' ) ; _this . map . setCenter ( center ) ; } ) ; // Only do this once _this . settings . fullMapStartBlank = false ; myOptions . zoom = originalZoom ; } else { // If a default location is set if ( this . settings . defaultLoc === true ) { this . defaultLocation ( ) ; } // If there is already have a value in the address bar if ( $ . trim ( $ ( '#' + this . settings . addressID ) . val ( ) ) !== '' ) { _this . writeDebug ( 'Using Address Field' ) ; _this . processForm ( null ) ; doAutoGeo = false ; // No need for additional processing } // If show full map option is true else if ( this . settings . fullMapStart === true ) { if ( ( this . settings . querystringParams === true && this . getQueryString ( this . settings . addressID ) ) || ( this . settings . querystringParams === true && this . getQueryString ( this . settings . searchID ) ) || ( this . settings . querystringParams === true && this . getQueryString ( this . settings . maxDistanceID ) ) ) { _this . writeDebug ( 'Using Query String' ) ; this . processForm ( null ) ; doAutoGeo = false ; // No need for additional processing } else { this . mapping ( null ) ; } } } // HTML5 auto geolocation API option if ( this . settings . autoGeocode === true && doAutoGeo === true ) { _this . writeDebug ( 'Auto Geo' ) ; _this . htmlGeocode ( ) ; } // HTML5 geolocation API button option if ( this . settings . autoGeocode !== null ) { _this . writeDebug ( 'Button Geo' ) ; $ ( document ) . on ( 'click.' + pluginName , '#' + this . settings . geocodeID , function ( ) { _this . htmlGeocode ( ) ; } ) ; } }
Checks for default location, full map, and HTML5 geolocation settings - private
Checks for default location full map and HTML5 geolocation settings - private