mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-04 05:48:36 +01:00
Load language file in the onload callback.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Listener\Dca;
|
||||
|
||||
use Contao\Controller;
|
||||
use Contao\DataContainer;
|
||||
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
||||
use Netzmacht\LeafletPHP\Value\LatLng;
|
||||
@@ -50,6 +51,16 @@ class LeafletDcaListener
|
||||
$this->cacheDir = $cacheDir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the language files.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function loadLanguageFile(): void
|
||||
{
|
||||
Controller::loadLanguageFile('leaflet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the zoom range.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user