Closed joesparacio closed 8 years ago
UPDATE: We installed the latest version of Handlebars and your plugin, and we are now getting results when autoGeocode is set to true, but the maxDistance limit is not applied. It looks like you are only checking this value on form submit. Is it possible to initialize the locator with a maxDistance value so it works with autoGeocode?
Hi, sorry for the delay. There currently isn't a way to handle that with the plugin.
This issue has been addressed in v2.5.3
We just added a hidden input field with id="bh-sl-maxdistance" and a value of 75. For certain product categories, we are setting maxDistance to "true" to limit the results. This works fine when you manually enter an address, city, state, or ZIP code, but always returns zero results if you let the browser detect your location (see below).
Using browser geo-location:
Using ZIP code 90040:
Any thoughts?