# Clicking map pin only displays one listing

**URL:** <https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916>\
**Category:** Ask for Help\
**Created:** [October 8, 2020, 1:50pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916 "2020-10-08T13:50:10Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 8, 2020, 1:50pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/1 "2020-10-08T13:50:10Z")

</div>

**Context** : my app provides users with listings of activities; each listing has one address, but each address can have multiple listings/activities associated to it.

**Problem** : when a user searches in map view, they click on a pin: this displays only one of several activities related to that address - any idea why that may be and how I could fix it?

Here for instance there are 5 activities associated to this pin/address, but only one of them gets displayed.

 ![Screenshot 2020-10-08 at 15.52.27](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/4368d855c4a6dfb431fb3681475ac33a42fde4e5.jpeg)

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![PaulVu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paulvu/32/14973_2.png) [@PaulVu](https://community.glideapps.com/u/PaulVu)\
**Post date:** [October 8, 2020, 1:56pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/2 "2020-10-08T13:56:34Z")

</div>

I think this feature is just focus to display one location. user can press to another location - and then will show destail of that.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 8, 2020, 2:01pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/3 "2020-10-08T14:01:50Z")

</div>

You can have the location as an item and show actions related to it in the details view.

Allow search by having a joined list column to combine all activities’ name.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 8, 2020, 7:38pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/4 "2020-10-08T19:38:26Z")

</div>

Sorry if I am misunderstanding @ThinhDinh , but location is set up as a component, yes, and here is the action - should I change something?

 ![Screenshot 2020-10-08 at 21.25.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/009c795092c6d8a4dd1537c21f7a90860d4312e1.jpeg)

Next, I created a joined list column with all the activities names - but I am not sure where to connect it?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 8, 2020, 10:35pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/5 "2020-10-08T22:35:33Z")

</div>

I imagine you can keep the old setup, then do the following:

- Make a relation matching the address ID to the sheet where you store the activities, which also has the address ID. Set it to match multiple.

- Create a joined list column, point it to the activities name column in the relation.

- Display it in the details part of the map.

- In the details view of each address, show an inline list with the source being the relation you created above.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 8:38am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/6 "2020-10-09T08:38:01Z")

</div>

Many thanks @ThinhDinh. Just tried setting it up, but not quite there yet.

- The relation should be done in the same sheet where activities are stored, correct? 

- The joined list should also be done in the master sheet? 

- Display joined list in details part of the map, as such?

 ![Screenshot 2020-10-09 at 10.35.33](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/1/189cb70d05edff0eb5e6824bd33cedc659d7e07a.jpeg)

- And the in-line list in the map details view?

 ![Screenshot 2020-10-09 at 10.34.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/371fc186142f2e546a462b89dc09dd335a203b04.jpeg)

Thanks so much in advance.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 9, 2020, 9:09am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/7 "2020-10-09T09:09:17Z")

</div>

Do you have a sheet which only stores address, and a sheet with events associated to addresses?

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 9:11am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/8 "2020-10-09T09:11:45Z")

</div>

I don’t but I could just pull the info out of Master and create it now.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 9, 2020, 9:20am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/9 "2020-10-09T09:20:24Z")

</div>

I think you can just keep the current setup. Due to the nature of the map displaying only 1 pin per location you don’t need to have a further sheet anyway.

In your joined list, you should point the first part to the relation \> Activity instead of master activity.

Then you will see a comma separated list of activities for each address populated.

Use that for your details field in the map.

In the detailed view (after you click inside), add an inline list of the relation you created.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 9:59am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/10 "2020-10-09T09:59:40Z")

</div>

Excellent, all good now! Thanks very much for your help, @ThinhDinh.

On a related topic, do you know if there is any way to configure search results in map view? I would like results to appear as pins on a map, not items in a list.

 ![Screenshot 2020-10-09 at 11.57.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/a/ac7c336eccaf596b00f8d6ad443fb982bcf71c9c.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 9, 2020, 10:26am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/11 "2020-10-09T10:26:29Z")

</div>

In the map display, you should be able to configure it to show a map as the default view.

Or probably you are having too many pins, just my guess.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 10:36am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/12 "2020-10-09T10:36:59Z")

</div>

Yes my default view is set up as Map. It works fine, it’s only when user does a Search that the view switches to List for some reason.

 ![Screenshot 2020-10-09 at 12.37.27](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c91314088d8488696b2ec41662e9e34f86701a95.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 9, 2020, 11:00am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/13 "2020-10-09T11:00:37Z")

</div>

In my experience that is the intended behavior of a map view.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 11:43am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/14 "2020-10-09T11:43:12Z")

</div>

You mean results should be displayed as a list when the default view is set up as map, under maps layout? Sorry if I am misunderstanding.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 9, 2020, 11:48am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/15 "2020-10-09T11:48:57Z")

</div>

The result will always be shown in a list view, that’s what I experienced.

---

<div class="post-metadata">

**Author:** ![StephM](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@StephM](https://community.glideapps.com/u/StephM)\
**Post date:** [October 9, 2020, 12:05pm UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/16 "2020-10-09T12:05:07Z")

</div>

Ok, thanks @ThinhDinh. That is helpful.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [November 25, 2024, 7:27am UTC](https://community.glideapps.com/t/clicking-map-pin-only-displays-one-listing/16916/17 "2024-11-25T07:27:32Z")

</div>


