jQuery-Store-Locator-Plugin
jQuery-Store-Locator-Plugin copied to clipboard
Store locator on bootstrap
hi bjorn,
i'm mamat from indonesia. i'm using you're storelocator but found some issue.
as shown on pic below, first time loading page everything seems normal, but when I click other menu, item in loc-list duplicate, when i'm move again to other menu then back again, items is triple.
my app menu is based on ajax, so when I refreshed the page, everything back to normal, but I don't want to refresh every time if I want to loading storelocator.

here is video version https://www.dropbox.com/s/cqqvb3e24hf38t0/storelocator%20on%20bootstrap.mp4?dl=0
here is the live version, http://daengs.com/mdbgi/admin/index.php user operator username : abc password : abc
please help did I miss something? kindly need your help.
I'm also getting the same issue when creating the map in a Bootstrap Modal and I reopen the modal. I used the "debug" option and it seems like the visibleMarkersList object array is increasing each time. (e.g. the first time I open the map this array is 2, the second time it's 4, third time is 6, etc.)
I've noticed if I call the .storeLocator('destroy') method it resets the map correctly to the right number of items however.
Hi, my sollution is to "refresh" the div.
I have made a button an use script to trigger the refresh.
