3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Remove "Other locations" layer from dashboard.

This commit is contained in:
Michael Stenta 2021-04-05 15:49:58 -04:00
parent fe95745153
commit ce2a6304c8

View file

@ -106,20 +106,6 @@ class MapRenderEventSubscriber implements EventSubscriberInterface {
}
}
// Add other locations layer to the dashboard.
// @todo Limit this layer to only the non-location asset types.
// The current view doesn't allow the "type" filter to override the
// contextual filter that defaults to "all" asset types.
$layers['other_locations'] = [
'group' => $group,
'label' => $this->t('Other locations'),
'filters' => [
'is_location' => 1,
],
'color' => 'grey',
'zoom' => TRUE,
];
// Add the asset_type_layers behavior.
$event->addBehavior('asset_type_layers');