Add a configurable setting that allows the maps displayed in the farm dashboard, farm areas page, and farm asset list pages to be turned off.

This was a request made by a farm that is the Fijian islands, where the Google Map layers are not sufficient, so they prefer not to use the farmOS mapping features at all. Allowing the map to be turned off can greatly speed up the page load time, and reduce the overall amount of stuff on the page.

I see this as a good first step towards a future goal I have: create a collapsible map that is displayed throughout the farmOS UI, which changes based on the context of the page you're in, and can be hidden ("collapsed") to the side (saved in a cookie variable between page loads to remember your preference).

Comments

m.stenta created an issue. See original summary.

  • m.stenta committed 4054601 on 7.x-1.x
    Issue #2822310: Allow dashboard maps to be disabled
    
m.stenta’s picture

Status: Active » Fixed

Done! Added a boolean variable "farm_map_show" in the farm_map module, along with admin config for turning it on and off. Other modules (farm_area, farm_crop, farm_livestock, etc) now check that variable to see if it is TRUE or FALSE before displaying their dashboard-level maps.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

m.stenta’s picture

Project: Farm Map » farmOS

Moving old issues to the canonical farmOS project for easier searching. Apologies for email spam if anyone is following these. :-)