# Starting work on farmOS-map library

**URL:** <https://farmos.discourse.group/t/starting-work-on-farmos-map-library/43>\
**Category:** Development\
**Created:** [July 12, 2019, 6:43pm UTC](https://farmos.discourse.group/t/starting-work-on-farmos-map-library/43 "2019-07-12T18:43:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [July 12, 2019, 6:43pm UTC](https://farmos.discourse.group/t/starting-work-on-farmos-map-library/43/1 "2019-07-12T18:43:50Z")

</div>

We’ve started working on [https://github.com/farmOS/farmOS-map/](https://github.com/farmOS/farmOS-map/)

The goal is to extract the farmOS map out into its own library, written purely in Openlayers Javascript.

The motivation for doing so is twofold:

1. We want to be able to include maps in the farmOS Field Kit app (offline/native mobile app): [https://github.com/farmOS/farmOS-client](https://github.com/farmOS/farmOS-client)
2. The [Drupal Openlayers](https://drupal.org/project/openlayers) module is the single biggest dependency we have in farmOS right now which does not have an upgrade path for Drupal 8. By simplifying our maps to pure Openlayers JS (without the Drupal module wrappers), we can drop it as a dependency. This will allow us to upgrade to Drupal 8 and reuse the farmOS-map library in farmOS 2.0.

So in many ways, this is one of the first big steps towards farmOS 2.0, along with the Field Kit app.

My hope is that it will also encourage more developers to contribute to the farmOS mapping features, by making it more approachable as standard Openlayers JavaScript code. If you have ideas, or want to join in, let us know!

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [September 24, 2019, 2:50pm UTC](https://farmos.discourse.group/t/starting-work-on-farmos-map-library/43/2 "2019-09-24T14:50:13Z")

</div>

Update: been making steady progress! @jgaehring is working on integrating farmOS-map into Field Kit for drawing custom movement geometries, and I am working on integrating it into farmOS itself. See the following issues/milestones to track ongoing progress:

- [https://www.drupal.org/project/farm/issues/3083352](https://www.drupal.org/project/farm/issues/3083352)
- [https://github.com/farmOS/farmOS-map/milestone/1](https://github.com/farmOS/farmOS-map/milestone/1)

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [September 24, 2019, 3:08pm UTC](https://farmos.discourse.group/t/starting-work-on-farmos-map-library/43/3 "2019-09-24T15:08:18Z")

</div>

Relevant comment in the farmOS 2.x issue: [https://www.drupal.org/project/farm/issues/2361735#comment-13270320](https://www.drupal.org/project/farm/issues/2361735#comment-13270320)
