# Map Pin Grouping

**URL:** <https://community.glideapps.com/t/map-pin-grouping/39161>\
**Category:** Ask for Help\
**Created:** [March 2, 2022, 10:59pm UTC](https://community.glideapps.com/t/map-pin-grouping/39161 "2022-03-02T22:59:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveosborn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daveosborn/32/39833_2.png) [@daveosborn](https://community.glideapps.com/u/daveosborn)\
**Post date:** [March 2, 2022, 10:59pm UTC](https://community.glideapps.com/t/map-pin-grouping/39161/1 "2022-03-02T22:59:25Z")

</div>

When mapping thousands of locations on the map view, is there any way to group densely-clustered points together rather than limiting them?

---

<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:** [March 2, 2022, 11:47pm UTC](https://community.glideapps.com/t/map-pin-grouping/39161/2 "2022-03-02T23:47:20Z")

</div>

This has been requested many times but I don’t think we have any news to look forward to.

---

<div class="post-metadata">

**Author:** ![gannonatwork](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gannonatwork/32/91717_2.png) [@gannonatwork](https://community.glideapps.com/u/gannonatwork)\
**Post date:** [March 3, 2022, 12:18am UTC](https://community.glideapps.com/t/map-pin-grouping/39161/3 "2022-03-03T00:18:00Z")

</div>

Yes, as @ThinhDinh mentioned, it has been brought up several times and we asked about it back in 2019. I agree pin clustering would be a huge upgrade for the map component; I just don’t know how realistic it is given other development priorities. 🙏

---

<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:** [March 3, 2022, 8:27am UTC](https://community.glideapps.com/t/map-pin-grouping/39161/4 "2022-03-03T08:27:33Z")

</div>

I’ve not used the map component much, but it seems to me you could do this with a bit of computed column logic? Or is there a constraint that I’m not aware of that would prevent 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:** [March 3, 2022, 9:17am UTC](https://community.glideapps.com/t/map-pin-grouping/39161/5 "2022-03-03T09:17:17Z")

</div>

I think the main constraints are:

- How you determine points are “close” to each other. This can theoretically be done by taking the distance for all the points against a fixed point, then use some math columns to derive a “grouping value”.

- Cluster pins would have to get some sort of visualization (I believe the number of pins is the usual way to do that, but we don’t have a native way).

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f567bacc74793b9bb0387c7e5968e2e77fbd4367.jpeg)

- I assume people would want the ability to keep normal pins alongside clustered pins.

---

<div class="post-metadata">

**Author:** ![gannonatwork](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gannonatwork/32/91717_2.png) [@gannonatwork](https://community.glideapps.com/u/gannonatwork)\
**Post date:** [March 3, 2022, 12:59pm UTC](https://community.glideapps.com/t/map-pin-grouping/39161/6 "2022-03-03T12:59:39Z")

</div>

@ThinhDinh and @Darren_Murphy, I always appreciate your willingness jump in and talk us through workarounds. I think you’re on the right track and considering all aspects. Mapbox has [pin clustering built-in](https://docs.mapbox.com/mapbox-gl-js/example/cluster/) to it’s Mapbox GL JS application but my guess Glide currently has Mapbox.js deployed instead:

> If you’re using the [Mapbox.js](https://docs.mapbox.com/mapbox.js/api/v3.2.1/) library in an existing web application, making the switch to [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/api/) can lead to [performance improvements](https://www.mapbox.com/mapbox-gljs) that make the work required to transition worth the effort.

This documentation discusses the steps and resources needed to make the transition. That’s why I think it’s a matter of dev time prioritization. I’m sure it’s on the Glide roadmap somewhere (at least I hope) but other features are likely higher on the list. I’ll hold out hope it’s coming though. 🚀

---

<div class="post-metadata">

**Author:** ![james](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/james/32/71213_2.png) [@james](https://community.glideapps.com/u/james)\
**Post date:** [April 27, 2023, 6:17am UTC](https://community.glideapps.com/t/map-pin-grouping/39161/7 "2023-04-27T06:17:24Z")

</div>

It’s the year of power, so fingers crossed.
