Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom (bounding box) doesn't work when searching, does work when using taxonomyFilters. This seems like a bug? #251

Open
mvaneijgen opened this issue Apr 3, 2019 · 0 comments

Comments

@mvaneijgen
Copy link

I've made a video to better explain the problem: https://youtu.be/cmw6H5Ogybk

IMAGE ALT TEXT HERE

Zooming based on the amount of pointers that a filters works when using taxonomyFilters, but doesn't work when just searching. How do I get both to work the same way?

Here is what my code looks like:

var schoolLocator = $("#bh-sl-map-container").storeLocator({
    // Import data
    dataRaw: [{...data}],
    dataType: "json",
    // Google map settingsMap settings
    originMarker: true,
    // Show map on frist load with all markers in zoom
    fullMapStart: true,
    slideMap: true,
    // Extra options
    maxDistance: true,
    // autoGeocode: true, // Auto check where users lives
    distanceAlert: -1,
    distanceErrorAlert: false,
    lengthUnit: 'km',
    // Custom filters
    taxonomyFilters : {
      'onderwijstype' : 'onderwijstype-filter',
    },
    // Disable popup alerts
    callbackNotify: function() {
      console.warn('No results');
    }
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant