Inclusion of alternative imagery layers

I am wondering if it is possible to include the ability to use other imagery than Goolge and OpenStreet Map in the map view?

For me the “Land Tasmania Aerial Photography Coverages” is has the best offering (details below). I imagine that others might be in a similar boat with different jurisdictions.

Can be viewed at here (change the base map): https://maps.thelist.tas.gov.au/listmap/app/list/map
Layer details here: https://services.thelist.tas.gov.au/arcgis/rest/services/Public/OpenDataWFS/MapServer/46

Cheers,

Spike

1 Like

Hi @spikusmax - yes this is possible! But it requires creating a new farmOS module. It also requires that the layers you want to include are available as a hosted tile set.

Basically, what we need to do is create a module that adds the layer to the farmOS OpenLayers map.

I am currently in the process of upgrading the farmOS OpenLayers map library to make it easier to do these kinds of things, in fact. I hope to release that this month. See Starting work on farmOS-map library

Once that’s done, there will be some example modules included in farmOS that you can use to build your own. So stay tuned for a newsletter update when that rolls out!

1 Like

Hello.
I made my first github repo with a selection of very useful wms from the local administrative region where I live:


It runs!!

2 Likes

Awesome @bonushenricus! If you’d like to create a pull request on https://github.com/farmOS/farmOS.org we can include that module in the list here: https://farmos.org/development/projects/#other-modules

I didn’t understand how
When I click on Pull request it asks me “Choose different branches or forks above to discuss and review changes.” Sorry: it’s my first try!

1 Like

I don’t know how add attributions of the layers (in this case CC-BY 3.0 Regione Emilia-Romagna)

1 Like

Oh no worries! I can add it real quick myself right now. :slight_smile:

Here is the commit: https://github.com/farmOS/farmOS.org/commit/0203b3d66243bfe5097c31cd1fa1df459c9b13c0

(Happy to also explain how you can do similar in the future, if you are interested. Basically just need to “Fork” the repo, make the change in your fork, then open a pull request from that change. All can be done through the GitHub UI - no need to use Git on the terminal.)

Ah! This is something we should open a new feature request for in the farmOS-map library! The ability to define attribution when adding a layer…

Here we go: Layer attribution · Issue #73 · farmOS/farmOS-map · GitHub

I just added the attribution capabilities: 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.

This will be available in the next release of farmOS-map and farmOS - but you can go ahead and add that option to your module in the meantime so it’s ready.