Skip Navigation

[Resolved] Refresh results from map view

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Mario Hernandez 6 years ago.

Assisted by: Nigel.

Author
Posts
#1164591
Captura de pantalla 2018-12-12 a las 10.08.45.jpg

Good morning,

we need to refresh the results shown in the directory based on the current map view.

Is it possible to refresh the results when navigating on the map?

This means that if you go to your preferred zone in the map and show 3 markers, you will see only those posts in the loop, and a "show all" button to show the rest.

Thank you,

Mario

#1164754

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mario

That's not possible, I'm afraid.

Both the list of posts and the markers on the map are generated from the same database query.

If you apply filters the query is re-run, and both the list of results and map update accordingly.

Moving the map does nothing to affect the underlying query that generates the list of posts.

I expect this would be problematic to implement.

When the map is moved so that different markers are included, it would be necessary to reverse-engineer the query that would generate the same list of markers, re-run the query and update the list of posts and the map (which would be redrawn to include the same markers but would not necessarily align exactly with the changes the user made).

If you were creating a custom solution not built on Toolset you would be able to achieve something like this, but I think the obstacles to building it with Toolset are such that it wouldn't even be accepted as a feature request.

#1168630

My question is resolved now. Thank you!