• I’m curious to know if there’s support for this feature. If you’ve used Yelp, this is a feature that updates the search results to show new results within the new bounding area defined by the map’s viewport.

    For example, user searches for stores in California(California stores display), then pans to Nevada(sees nothing until they perform a search operation specifically for Nevada).

    If it’s not supported, but I can hook into the function that fires off the search, I imagine I could wire something in myself when the “bounds_changed” map event is fired. Any insight for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There’s no build in support for this, but it’s possible if you’re comfortable with code, and don’t mind editing the core file.

    If you don’t mind editing the core file, then I can you point you in the right direction.

    Thread Starter David Yonehara

    (@david-yonehara)

    Thank you for the response, that would be greatly appreciated. If you know which file(s) I’d need to touch that’d be super useful!

    Very well designed plugin by the way. The hooks and documentation for customizing the store pages, etc, has been very useful thus far, and the CSV importer worked flawlessly.

    Thread Starter David Yonehara

    (@david-yonehara)

    Feel like I’m very close, but missing something crucial. Tried hooking into your function via a new button:

    $( “.wpsl-redo-search-in-map” ).on( “click”, function() {
    findStoreLocations( map.getCenter(), false, false, infoWindow );
    });

    It acts the same as the reset button currently, and zooms out to show all results. Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redo Search in Map’ is closed to new replies.