bjorn2404 / jQuery-Store-Locator-Plugin

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

Searching by name after searching by address does not clear origin #160

Closed craigpestell closed 7 years ago

craigpestell commented 8 years ago

When using the search by name feature, if I first search by address, then by name, the map stays on the last address location and does not show all the stores by name.

I fixed this by adding mappingObj.origin = undefined; to the last section of processForm function, in the else if(searchInput !== '') { case.

bjorn2404 commented 7 years ago

Thanks, fixed in v2.7.2