Hi @nzsnowman
connect to our own Mapbox content (we need to override the satellite imagery with the client’s AutoCAD drawings).
farmOS comes with a very basic Mapbox module that adds two of Mapbox’s default layers to the map:
- Mapbox Satellite
- Mapbox Outdoors
It is very simple, and does not have any support for other Mapbox layers or features at this time.
This is pretty much the extent of the code: https://github.com/farmOS/farmOS/blob/2.x/modules/core/map/modules/mapbox/js/farmOS.map.behaviors.mapbox.js
If you are interested in expanding the Mapbox capabilities in farmOS, I would recommend starting a custom module to experiment in. And if you reach a point where your code might be generally useful to others, we can explore merging it into the upstream farmOS core Mapbox module!
we need to override the satellite imagery with the client’s AutoCAD drawings
Or, if your needs are just simply adding a custom layer, you may be able to just add a very simple map behavior (like the one linked above) that simply hard-codes the custom Mapbox layer URL. We use a custom library called farmOS-map (based on OpenLayers) for adding features to maps. Here is the README section on adding layers: GitHub - farmOS/farmOS-map: farmOS-map is an OpenLayers wrapper library designed for agricultural mapping needs. It can be used in any project that has similar requirements.
Add custom module(s) to simplify data entry of Log info (simple, land/function, eg. Spray Vineyard, default everything else, is where we need to get to)
I would recommend using “Quick forms” for this.
We have some basic information for getting started in the farmOS.org docs:
Quick forms are largely just Drupal’s core Form API, though, so you can find a lot more information and tutorials on the internet.
The Drupal Examples module is always a good reference when you are getting starting with module development: https://www.drupal.org/project/examples/
All instructions re. modules eventually (after long rabbit holes ) involve CLI instructions. With Plesk we do not have access to a CLI interpreter (at least not that I’ve found) so I need another solution.
If you plan to do any custom development you will want to set up a local development environment SEPARATE from your “live” deployment. The farmOS development environment is based on a Docker image that includes all the CLI tools you need. I can’t recommend it strongly enough.
Instructions here: Getting started | farmOS
Never mess around with your live database, or you can end up breaking things. On this note, be sure to familiarize yourself with the upgrade procedure as well so you are comfortable upgrading when new versions of farmOS are released: Updating farmOS | farmOS
I’m willing to pay for a solution - or instructions on how to get from point A. (vanilla farmOS) to B. achieving a custom module, which we can then add code to a redeploy.
That’s great! Consider posting a dedicated thread over on the brand new Jobs Board, and describe which bits you’re specifically interested in paying for, information for contacting you, etc.