# How to make the map static or frozen?

**URL:** <https://community.glideapps.com/t/how-to-make-the-map-static-or-frozen/75088>\
**Category:** Ask for Help\
**Created:** [July 22, 2024, 8:31pm UTC](https://community.glideapps.com/t/how-to-make-the-map-static-or-frozen/75088 "2024-07-22T20:31:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaniv\_fogel](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yaniv_fogel/32/77555_2.png) [@yaniv\_fogel](https://community.glideapps.com/u/yaniv_fogel)\
**Post date:** [July 22, 2024, 8:31pm UTC](https://community.glideapps.com/t/how-to-make-the-map-static-or-frozen/75088/1 "2024-07-22T20:31:40Z")

</div>

Hi everyone,

For the map component, I can disable zoom, but users can still touch and move the map. I still want the user to interact with the locations on the map, but I don’t want them to be able to move the map so the locations disappear. Is there any way to make the map completely static or frozen while keeping the locations interactive?

Thanks

---

<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:** [July 22, 2024, 11:25pm UTC](https://community.glideapps.com/t/how-to-make-the-map-static-or-frozen/75088/2 "2024-07-22T23:25:15Z")

</div>

I think your best bet would have to be configuring a Mapbox embed yourself, and disable `dragPan` or set a bound for your map:

> **[Toggle interactions | Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/example/toggle-interaction-handlers/)**
>
> Enable or disable UI handlers on a map.

> **[Restrict map panning to an area | Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/example/restrict-bounds/)**
>
> Prevent a map from being panned to a different place by setting maxBounds.

---

<div class="post-metadata">

**Author:** ![yaniv\_fogel](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yaniv_fogel/32/77555_2.png) [@yaniv\_fogel](https://community.glideapps.com/u/yaniv_fogel)\
**Post date:** [July 23, 2024, 10:01pm UTC](https://community.glideapps.com/t/how-to-make-the-map-static-or-frozen/75088/3 "2024-07-23T22:01:29Z")

</div>

Thanks!
