bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
495 stars 235 forks source link

distanceAlert -1 ignored if maxDistance is set to true #248

Open jotapee opened 5 years ago

jotapee commented 5 years ago

Hi, This is a feature request. I noticed that if maxDistance is set to true, and distanceAlert is set to -1, the alert will still keep showing. In my case I have a custom error message on the list and the alert is really annoying, based on the if statement on line 2816, the distanceAlert value is part of the else statement so it will not be taken in count when maxDistance is true. Thanks.