From ce2a6304c8166085a227e1862941a1c467a00879 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Mon, 5 Apr 2021 15:49:58 -0400 Subject: [PATCH] Remove "Other locations" layer from dashboard. --- .../EventSubscriber/MapRenderEventSubscriber.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/ui/map/src/EventSubscriber/MapRenderEventSubscriber.php b/modules/ui/map/src/EventSubscriber/MapRenderEventSubscriber.php index 1753cc0d..caf9e72f 100644 --- a/modules/ui/map/src/EventSubscriber/MapRenderEventSubscriber.php +++ b/modules/ui/map/src/EventSubscriber/MapRenderEventSubscriber.php @@ -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');