Michael Stenta
98c682b0cb
Install farm_metrics on new and existing sites.
2020-02-26 11:03:58 -05:00
Michael Stenta
209cb5e48a
Only show metrics dashboard pane if the user has access to metrics.
2020-02-26 10:40:27 -05:00
Michael Stenta
14b72d7930
Remove unused variable.
2020-02-26 10:40:27 -05:00
Michael Stenta
41758a29d2
Allow all farm roles to access metrics.
2020-02-26 10:40:27 -05:00
Michael Stenta
1db1671256
Move hook_farm_access_perms() to module file for consistency.
2020-02-26 10:40:27 -05:00
Paul Weidner
b7cb769191
Refactor hook_farm_metrics to use a 'key' to identify arrays of metrics.
...
Without this, the 'farm_metrics.json' endpoint returns an array indexed by element ID, which would be more difficult for consumers of the 'farm_metrics.json' API to parse.
2020-02-26 10:40:27 -05:00
Paul Weidner
ec82d5d9d6
Create farm_metrics.json endpoint to expose metrics over API.
2020-02-26 10:40:27 -05:00
Paul Weidner
6a114b7fc8
Refactor farm_ui.farm_dashboard.inc to farm_ui.farm_metrics.inc.
2020-02-26 10:40:27 -05:00
Paul Weidner
0833072bf5
Refactor farm_area.farm_dashboard.inc to farm_area.farm_metrics.inc.
2020-02-26 10:40:27 -05:00
Paul Weidner
de788dfd89
Remove 'farm_dashboard_metrics' from farm_dashboard hook_hook_info.
2020-02-26 10:39:40 -05:00
Paul Weidner
7ee3c604a4
Init farm_metrics modules from existing farm_dashboard code.
2020-02-26 10:39:40 -05:00
Michael Stenta
6611a52cb7
Update farmOS-map library to v1.0.0.
2020-02-26 09:53:07 -05:00
Michael Stenta
d3eec67e7c
Revert "farmOS 7.x-1.3."
...
This reverts commit 725f21b45fcd3546602cde8858440bd2488de83e.
2020-02-21 11:57:20 -05:00
Michael Stenta
6a7458cb71
farmOS 7.x-1.3.
2020-02-21 11:57:20 -05:00
Michael Stenta
73ae680f9b
Prepare for release of farmOS 7.x-1.3.
2020-02-21 11:57:20 -05:00
Michael Stenta
01f8866ce1
Update the farmOS-map library to v0.9.5.
2020-02-21 11:57:20 -05:00
Michael Stenta
27c83e92d5
Make sure farmOS.map.behaviors.geofield runs after farmOS.map.behaviors.wkt.
2020-02-20 23:30:56 -05:00
Michael Stenta
0656c75550
Fix PHP Notice: Undefined index: default_value in farm_ui_farm_info()
2020-02-20 14:25:18 -05:00
Michael Stenta
4311198721
Issue #3083352 : Migrate to farmOS-map library
2020-02-17 13:50:18 -05:00
Michael Stenta
76bedcb779
Make the Mapbox Satellite layer visible by default.
2020-02-17 13:41:22 -05:00
Michael Stenta
19579e91df
When the map popup is closed, return focus to the map.
2020-02-17 12:50:24 -05:00
Michael Stenta
797a8c4428
Swap the Mapbox layers so that Satellite appears on top.
2020-02-17 12:50:24 -05:00
Michael Stenta
79190d5870
Update farmOS-map library to v0.9.4.
2020-02-17 12:50:24 -05:00
Michael Stenta
7fe30ec0ab
Fix Movement Geometry field settings on existing sites.
2020-02-10 14:53:28 -05:00
Michael Stenta
c2da059acf
Remove "Calculated area" from area details.
2020-02-10 14:27:50 -05:00
Michael Stenta
cd87da08f4
Display polygon/linestring measurement in map popups.
2020-02-10 14:27:50 -05:00
Michael Stenta
09691e0c4a
Update farmOS-map.js library to v0.9.3.
2020-02-10 14:27:50 -05:00
Michael Stenta
388ce9faa8
Remove "Calculated area" from area term page. It is shown in the map now.
2020-02-10 14:27:50 -05:00
Michael Stenta
7a6ae6552c
Update farmOS-map.js library to v0.9.2 to fix MapKnitter layers behind Google layers.
2020-02-10 14:27:50 -05:00
Michael Stenta
d297855250
Uninstall Openlayers modules and dependencies on existing sites.
2020-02-10 14:27:50 -05:00
Michael Stenta
b1a961ae86
Remove Openlayers modules, patches, dependencies, configuration, and related code.
2020-02-10 14:27:50 -05:00
Michael Stenta
9f6bbb8253
Update farmOS-map library to v0.9.1 and add weights to behaviors.
2020-02-10 14:27:50 -05:00
Michael Stenta
c80436607e
If a map is inside a collapsed fieldset, update the map size when the fieldset is expanded.
2020-02-10 14:27:50 -05:00
Michael Stenta
dd717a1f5c
Fix zoom to all areas when WKT is empty.
2020-02-10 14:27:50 -05:00
Michael Stenta
6d8d070198
Fix duplicate measure behavior on editable maps.
2020-02-10 14:27:50 -05:00
Michael Stenta
3984b8d8dd
When AJAX reloads a geofield map, look for new WKT in $form_state['input'].
2020-02-10 14:27:50 -05:00
Michael Stenta
c3ca0cc041
Destroy farmOS-map instances when Drupal behaviors are detached.
2020-02-10 14:27:50 -05:00
Michael Stenta
18e86f9550
Refactor Drupal.behaviors.farm_map so that Drupal.settings.farm_map.maps is not needed.
2020-02-10 14:27:50 -05:00
Michael Stenta
7034539eed
Update Tours.
2020-02-10 14:27:49 -05:00
Michael Stenta
9b5eb5a1d9
Remove old farm_map_show variable.
2020-02-10 14:27:49 -05:00
Michael Stenta
b8b13fd747
Restrict access to the map header block so it isn't shown to anonymous users.
2020-02-10 14:27:49 -05:00
Michael Stenta
ae60c5f9c2
Display asset cluster maps in the farm map header block.
2020-02-10 14:27:49 -05:00
Michael Stenta
d792512680
Add behaviors for asset cluster maps.
2020-02-10 14:27:49 -05:00
Michael Stenta
164709c169
Add cluster support to the popup behavior.
2020-02-10 14:27:49 -05:00
Michael Stenta
8bb7fe4bf6
Add JS to toggle expand/collapse map header and remember state in localstorage.
2020-02-10 14:27:49 -05:00
Michael Stenta
59abbb1304
Remove dashboard map pane.
2020-02-10 14:27:49 -05:00
Michael Stenta
40359f7b7a
Show the map block as a top banner on the homepage.
2020-02-10 14:27:49 -05:00
Michael Stenta
0f121776f6
Provide a Farm Map block.
2020-02-10 14:27:49 -05:00
Michael Stenta
e9e48590b5
Mapbox module: add Mapbox API key to farm map settings form and add the Mapbox Satellite layer to maps.
2020-02-10 14:27:49 -05:00
Michael Stenta
0d3a71e7f9
Refactor Google Maps integration to use a farmOS-map behavior.
2020-02-10 14:27:49 -05:00