Skip to content

Latest commit

 

History

History
54 lines (46 loc) · 2.88 KB

callbacks.md

File metadata and controls

54 lines (46 loc) · 2.88 KB

jQuery Google Maps Store Locator callbacks

Several callbacks are available for use with the jQuery Store Locator plugin. The purpose of the callbacks is to allow developers to add custom functionality with JavaScript and/or jQuery upon certain events that happen when using the plugin. The functions listed below are executed at the time of these events.

When calling the plugin, a callback can be set to a function name or a function can be set up within the settings:

$('#bh-sl-map-container').storeLocator({
	callbackSuccess: function(){
		// Whatever you want here
	}
});

Separate function example:

function doSomethingOnSuccess() {
	// Whatever you want here
}

$('#bh-sl-map-container').storeLocator({
	callbackSuccess: doSomethingOnSuccess()
});
Function Default Description
callbackAutoGeoSuccess null Geolocation API success callback
callbackBeforeSend null Before location data request callback
callbackCloseDirections null Close directions callback
callbackCreateMarker null Create marker override callback
callbackDirectionsRequest null Directions request callback
callbackFilters null Filters callback
callbackFormVals null Form values callback
callbackGeocodeRestrictions null Geocoding component restrictions callback
callbackJsonp null JSONP callback
callbackListClick null Location list click callback
callbackMapSet null Map set callback
callbackMarkerClick null Marker click callback
callbackModalClose null Modal close callback
callbackModalOpen null Modal open callback
callbackModalReady null Modal ready callback
callbackNearestLoc null Nearest location callback
callbackNoResults null No results callback
callbackNotify null Notification callback
callbackOrder null Order callback
callbackPageChange null Page change callback
callbackRegion null Region callback
callbackSorting null Sorting callback
callbackSuccess null Success callback