bjorn2404 / jQuery-Store-Locator-Plugin

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

Pagination does not work after filtering #258

Open dachande opened 4 years ago

dachande commented 4 years ago

I currently have the problem that the pagination is not responding any more when locations have been filtered. I have attached a small video to better describe the problem:

aq-distributors

I'm using the latest version (v3.0.3) of the storeLocator plugin and the following options are used when initializing the plugin:

$('#bh-sl-map-container').storeLocator({
    debug: false,
    autoGeocode: false,
    bounceMarker: true,
    dataRaw: window.distributors,
    dataType: 'json',
    distanceAlert: -1,
    fullMapStart: true,
    infowindowTemplatePath: templates + '/infowindow-description.html',
    listTemplatePath: templates + '/location-list-description.html',
    locationsPerPage: 24,
    mapID: 'map',
    mapSettings: { zoom: 5 },
    maxDistance: true,
    pagination: true,
    slideMap: false,
    storeLimit: -1,
    taxonomyFilters: {
        category: 'category-filters-container1',
        state: 'state-filter',
        postal: 'postal-filter',
        country: 'country-filter'
    }
})