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; + } ), );