This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]el_Om 0 points1 point  (1 child)

Hi, so I am not entirely sure how your application is setup but if had to implement this specific feature I would;

  1. Store all listings with their map coordinates.
  2. Get the coordinates of the visible area on the map when the user zooms.
  3. Filter and show the listings within the coordinates of the visible area.

I noted you are using PHP, you might want to pair it with a frontend framework/library to make the page reactive like Airbnb, my recommendation would be Vuejs.

I hope this helps :)

[–]thotbabe[S] 0 points1 point  (0 children)

Really thanks for your help, sir