I have a map displaying cafes across the US, and some of the cafe's have multiple addresses attached to the same cafe post. I want to display the address of each pin as the user clicks on the pin, so as not to have a disconnect between the map and the listing below.
Conversely, I would like to be able to put a "focus on pin" link next to the listing of each address (multiple per post result in loop) that would focus (with pin color change) on the pin at that address.
You should be able to add the multiple addresses within the marker but clicking on the address to jump to that address's marker would need to be done by custom coding, which would be out of our support scope.
Are the all the addresses added to that single post?
I've been able to add the addresses within the popup, but it shows all of the addresses in each pin for a cafe. Example:
Cafe 1:
Address 1
Address 2
Address 3
Cafe 1/Pin 1 should only show Address 1
Cafe 1/Pin 2 should only show Address 2
etc.
Currently, if I tell the popup to display the address of the cafe through a shortcode, it lists all of the addresses on each of pins:
Cafe 1/Pin 1 shows A1, A2, A3
Can you show me an example of the change to the shortcode needed to single out only the address that the pin is currently at?
The For-Each shortcode doesn't select and display the address at all now, should I have it in a different position, or does it not work inside the map marker code?
Since the implementation of a new map on the client website is time sensitive, we've opted to split the posts with multiple location fields into multiple posts with single locations. I also feel that it will better display the most accurate locations when users search by location and radius:
with multiple locations per post:
I search chicago, and it displays all cafes in chicago, but if any of those cafes have a branch in LA, the map zooms out to include LA locations…
I'm also able to include separate phone numbers for each location.
Since I'm skirting the issue with this solution, I don't think you'll need access. But it may be a good/simpler feature to include in a future release of the maps plugin.
What I recommend that you do is to open a feature request ticket with a detailed explanation on what you would like to see included in our Toolset maps plugin.