dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function(map) {
			this.writeDebug('dragSearch',arguments);
			var newCenter = map.getCenter(),
				newCenterCoords,
				_this = this;

			// Save the new zoom setting
			this.settings.mapSettings.zoom = map.getZoom();

			olat = mappingObj.lat = newCenter.lat();
			olng = mappingObj.lng = newCenter.lng();

			// Determine the new origin addresss
			var newAddress = new this.reverseGoogleGeocode(this);
			newCenterCoords = new google.maps.LatLng(mappingObj.lat, mappingObj.lng);
			newAddress.geocode({'latLng': newCenterCoords}, function (data) {
				if (data !== null) {
					mappingObj.origin = addressInput = data.address;
					_this.mapping(mappingObj);
				} else {
					// Unable to geocode
					_this.notify(_this.settings.addressErrorAlert);
				}
			});
		}
function(map) {
			this.writeDebug('dragSearch',arguments);
			var newCenter = map.getCenter(),
				newCenterCoords,
				_this = this;

			// Save the new zoom setting
			this.settings.mapSettings.zoom = map.getZoom();

			olat = mappingObj.lat = newCenter.lat();
			olng = mappingObj.lng = newCenter.lng();

			// Determine the new origin addresss
			var newAddress = new this.reverseGoogleGeocode(this);
			newCenterCoords = new google.maps.LatLng(mappingObj.lat, mappingObj.lng);
			newAddress.geocode({'latLng': newCenterCoords}, function (data) {
				if (data !== null) {
					mappingObj.origin = addressInput = data.address;
					_this.mapping(mappingObj);
				} else {
					// Unable to geocode
					_this.notify(_this.settings.addressErrorAlert);
				}
			});
		}
function ( map ) { this . writeDebug ( 'dragSearch' , arguments ) ; var newCenter = map . getCenter ( ) , newCenterCoords , _this = this ; // Save the new zoom setting this . settings . mapSettings . zoom = map . getZoom ( ) ; olat = mappingObj . lat = newCenter . lat ( ) ; olng = mappingObj . lng = newCenter . lng ( ) ; // Determine the new origin addresss var newAddress = new this . reverseGoogleGeocode ( this ) ; newCenterCoords = new google . maps . LatLng ( mappingObj . lat , mappingObj . lng ) ; newAddress . geocode ( { 'latLng' : newCenterCoords } , function ( data ) { if ( data !== null ) { mappingObj . origin = addressInput = data . address ; _this . mapping ( mappingObj ) ; } else { // Unable to geocode _this . notify ( _this . settings . addressErrorAlert ) ; } } ) ; }
Performs a new search when the map is dragged to a new position

@param map {Object} Google map
Performs a new search when the map is dragged to a new position