# Use reference layers across several Collect projects

**URL:** <https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601>\
**Category:** Ideas\
**Tags:** odk-collect\
**Created:** [August 4, 2021, 12:10pm UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601 "2021-08-04T12:10:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_May](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/florian_may/32/7758_2.png) [@Florian\_May](https://forum.getodk.org/u/Florian_May)\
**Post date:** [August 4, 2021, 12:10pm UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/1 "2021-08-04T12:10:52Z")

</div>

**1. What is the problem? Be very detailed.**  
This is a minor issue.

On ODK Collect v 2021.2, multiple projects are supported. I've noticed that reference layers are now kept in separate directories, divided by project.

We have the use case of different projects capturing data in the same areas, therefore needing the same reference layers.  
Our reference layers however are pretty huge, and we might not have the storage space on our devices to duplicate them for each project. It would be efficient if we could reuse them across projects.

Edit:  
It would be great if the layers could live in a predictable path (without project hashes, which can differ across devices for the same project).

**2. What app or server are you using and on what device and operating system? Include version numbers.**  
ODK Collect 2021.2.0

**3. What you have you tried to fix the problem?**  
Starting the discussion here.

**4. What steps can we take to reproduce the problem?**

**5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.**

---

<div class="post-metadata">

**Author:** ![seadowg](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/seadowg/32/10045_2.png) [@seadowg](https://forum.getodk.org/u/seadowg)\
**Post date:** [August 4, 2021, 5:03pm UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/2 "2021-08-04T17:03:19Z")

</div>

This was actually something we initially planned for 2021.2 but ended up getting de-prioritized. You'll see there is a task in [https://github.com/getodk/collect/issues/4669](https://github.com/getodk/collect/issues/4669) that refers to that kind of feature, and I'll update that to link to this post. We're hoping that will be in our 2021.3 release.

To make sure we're going in the right direction: our plan was that there would be a `layers` directory at the top level (next to `projects`) and that all projects would have access to layers copied into that directory (as well as layers in the project specific `layers` directory). Does that sound right for your use case?

---

<div class="post-metadata">

**Author:** ![Florian\_May](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/florian_may/32/7758_2.png) [@Florian\_May](https://forum.getodk.org/u/Florian_May)\
**Post date:** [August 4, 2021, 10:58pm UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/3 "2021-08-04T22:58:41Z")

</div>

Perfect, that would work nicely! Thanks Callum!

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [October 25, 2021, 4:35am UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/4 "2021-10-25T04:35:15Z")

</div>

Split this topic on October 25, 2021, 4:35am UTC

7 posts were split to a new topic: [Add offline map layers without having to put files in Collect directory](https://forum.getodk.org/t/add-offline-map-layers-without-having-to-put-files-in-collect-directory/35499)

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [October 25, 2021, 4:38am UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/5 "2021-10-25T04:38:54Z")

</div>

This is now ready to try out in [the v2021.3 beta](https://forum.getodk.org/t/odk-collect-v2021-3-beta-visual-updates-and-improved-error-messages/35153/3).

---

<div class="post-metadata">

**Author:** ![Florian\_May](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/florian_may/32/7758_2.png) [@Florian\_May](https://forum.getodk.org/u/Florian_May)\
**Post date:** [October 26, 2021, 4:19am UTC](https://forum.getodk.org/t/use-reference-layers-across-several-collect-projects/34601/6 "2021-10-26T04:19:05Z")

</div>

Tested on 2021.3 Beta 2, Android 11, works!

I've also reset the project in order to prune the older form versions, which is not the direct upgrade path.

`.mbtiles` files in `/sdcard/Android/data/org.odk.collect.android/files/layers` are available in the one (and only) project on the device.
