From 37065f2183c1909c07347195638e6ff446d0abac Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 9 Nov 2016 11:47:57 +0100 Subject: [PATCH] Add query to the tree view. --- module/config/config.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/config/config.php b/module/config/config.php index f0c9e4b..7250c30 100644 --- a/module/config/config.php +++ b/module/config/config.php @@ -274,6 +274,13 @@ $GLOBALS['LEAFLET_LAYERS'] = array 'overpass' => array( 'children' => false, 'icon' => 'system/modules/leaflet/assets/img/overpass.png', + 'label' => function ($row, $label) { + if ($row['overpassQuery']) { + $label .= ' ' . \StringUtil::substr($row['overpassQuery'], 50) . ''; + } + + return $label; + } ), );