This repository was archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Display multiple listings on the same location #15
Copy link
Copy link
Open
Description
Having multiple listings on the same location are not being covered properly at the moment. Altough it might seem to be a good solution to offset the marker (#4) from the second property, it is not the perfect solution.
- Users won't properly understand why one of the markers is set off a few meters (?)
- A solution to control the priority for multiple listings on the same location needs to get implemented. Most likely in a way where users can choose the priority from within the listing editor. This is not very user-friendly since there is no overall control about all the priorities. With around 100 properties where a few share the same location with others this will become messy.
A better approach would be the following:
- For one listing on a specific spot, display the info window as usual.
- For 2 or 3 listings display all those listings in the info window - most likely as slider/carousel
- For more than 3 listings display 3 of them in the info window with a "more" button.
- This "more" button redirects to an archive of all listings from that spot.
What we need to do:
- Implement a method to filter geo coordinates, so listings on the same location (geocoordinates) can be grouped together. This needs most likely to go into the WPCasa core plugin. Probably it might be good to save the geo coordinates for each listing and perform a check if certain geo coordinates has already been added. In that case simply add the listing id to the array. In the end we should have a list with geocoordinates, each having at least one listing id assigned to.
- Rework the Info Windows and add 2 additional views (one for the single listing, one for displaying 2 or 3 listings as slider/carousel, and one for displaying the slider/carousel with a "more" button.
- Update all themes if necessary
- Add various filter and action hooks beside the options for customization purpose.
- It would be good to have an option to choose the maximum amount of listings displayed in the info window (1-5)
Reactions are currently unavailable