Pedro Cambra
26f55878cb
Map popup custom controller
2021-06-09 11:33:35 -04:00
Michael Stenta
d4d54927a7
Fix default view mode condition. $display->getMode() never returns "default". Instead load the view mode options by bundle to see if map_popup options are defined.
2021-06-09 11:33:35 -04:00
Michael Stenta
dbc2245d22
Add name and type to allowed default fields.
2021-06-09 11:33:35 -04:00
Michael Stenta
85efcaf324
Add a link to "View assets in this location", if the asset is a location.
2021-06-09 11:33:35 -04:00
Michael Stenta
bfcdcf4bbd
Add "View logs" to an array of links rendered as markup with a pipe separator.
2021-06-09 11:33:35 -04:00
Michael Stenta
a7f2ea885f
Hide more fields in map popups: group, id_tag, parent, season, status.
2021-06-09 11:33:35 -04:00
paul121
e7af56fe5f
Only display common fields on asset bundles that don't provide a map_popup view mode.
2021-06-09 11:33:35 -04:00
paul121
7ec99e10f2
Add link to view logs from the asset popup.
2021-06-09 11:33:35 -04:00
paul121
b1b30889cc
Render the asset map_popup view mode at /asset/*/map_popup
2021-06-09 11:33:34 -04:00
Michael Stenta
dff53dba7f
Add the dashboard map to the top region.
2021-06-07 12:13:41 -04:00
Michael Stenta
187bd7abcb
Move all Views hooks to *.views.inc and *.views_execution.inc include files.
2021-06-04 21:17:41 -04:00
Michael Stenta
709e8daa02
Refactor asset type and land/structure type layer color logic to use layer style definitions.
2021-04-16 07:47:25 -04:00
Michael Stenta
98ffd94b5a
Add a third-party setting for asset map layer color.
2021-04-14 08:57:21 -04:00
Michael Stenta
256deb62e6
Split asset layers into two groups: Assets and Location assets.
2021-04-08 19:34:03 -04:00
Michael Stenta
a27225e383
Ensure that farm_ui_map's hook_views_pre_render() runs first.
2021-04-08 15:37:23 -04:00
Michael Stenta
5ee898f819
Add bundle-specific exposed filters to the farm_asset_geojson View.
2021-04-08 15:37:23 -04:00
Michael Stenta
9481dd7207
Only add a single asset cluster layer to maps.
...
When there are multiple cluster layers the meaning of the
numbers becomes less discernible. Setting different cluster
icon colors may improve this, but a single layer is simple
for now. The exposed and contextual type filter allows
limiting the cluster counts by type if necessary.
2021-04-08 15:37:23 -04:00
Michael Stenta
a415eb0714
Refactor bundle filtering logic to take exposed type filter into account.
2021-04-08 15:37:23 -04:00
Michael Stenta
4f8583593a
Dynamically copy all exposed filters from farm_asset View to farm_asset_geojson Views.
...
This allows the map on /assets/% to be filtered with the same
exposed filters as the farm_asset View itself.
2021-04-08 15:37:23 -04:00
Michael Stenta
33c47849b8
Remove logic for adding separate land/structure type layers.
...
This needs to be refactored/moved to the land/structure modules.
2021-04-08 15:37:23 -04:00
Michael Stenta
b58f4f8b1a
Move dashboard map and block to farm_ui_map.
2021-04-08 14:59:39 -04:00
Michael Stenta
746e189664
Split map logic out of farm_ui_views to a new farm_ui_map module.
2021-04-08 11:24:55 -04:00