diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index 7663298..2c9c2b7 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -153,12 +153,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'default' => array( 'title' => array('title', 'alias', 'type'), 'config' => array(), - 'expert' => array(':hide', 'cache'), + 'expert' => array(':hide'), 'active' => array('active'), ), 'markers extends default' => array( '+expert' => array('pointToLayer'), - '+config' => array('deferred', 'boundsMode') + '+config' => array('boundsMode', 'deferred') ), 'group extends default' => array( '+title' => array('groupType'), @@ -166,7 +166,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array ), 'vectors extends default' => array( '+expert' => array('onEachFeature', 'pointToLayer'), - '+config' => array('deferred', 'boundsMode'), + '+config' => array('boundsMode', 'deferred'), ), 'reference extends default' => array( '+title' => array('reference', 'standalone') @@ -228,7 +228,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'metasubpalettes' => array( 'spiderfyOnMaxZoom' => array('spiderfyDistanceMultiplier'), - 'cache' => array('cacheLifeTime') + 'deferred' => array('cache'), + 'cache' => array('cacheLifeTime') ), 'fields' => array diff --git a/module/languages/en/tl_leaflet_layer.php b/module/languages/en/tl_leaflet_layer.php index ace7cee..ffbf3c5 100644 --- a/module/languages/en/tl_leaflet_layer.php +++ b/module/languages/en/tl_leaflet_layer.php @@ -118,6 +118,11 @@ $GLOBALS['TL_LANG']['tl_leaflet_layer']['reuseTiles'][0] = 'Reus $GLOBALS['TL_LANG']['tl_leaflet_layer']['reuseTiles'][1] = 'If true, all the tiles that are not visible after panning are placed in a reuse queue from which they will be fetched when new tiles become visible (as opposed to dynamically creating new ones).'; $GLOBALS['TL_LANG']['tl_leaflet_layer']['bounds'][0] = 'Bounds'; $GLOBALS['TL_LANG']['tl_leaflet_layer']['bounds'][1] = 'When this option is set, the TileLayer only loads tiles that are in the given geographical bounds. Each field defines a corner of the bounds as comma separated value (Latitude,longitude[,altitude]).'; +$GLOBALS['TL_LANG']['tl_leaflet_layer']['cache'][0] = 'Enable cache'; +$GLOBALS['TL_LANG']['tl_leaflet_layer']['cache'][1] = 'If enabled the dynamic loaded data is cached.'; +$GLOBALS['TL_LANG']['tl_leaflet_layer']['cacheLifeTime'][0] = 'Cache lifetime'; +$GLOBALS['TL_LANG']['tl_leaflet_layer']['cacheLifeTime'][1] = 'Indicates how long a cache entry is valid in seconds.'; + $GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][0] = 'Layer group'; $GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][1] = 'Basic layer group.
See http://leafletjs.com/reference.html#layergroup'; diff --git a/module/languages/en/tl_leaflet_map.php b/module/languages/en/tl_leaflet_map.php index 71dcb94..716736c 100644 --- a/module/languages/en/tl_leaflet_map.php +++ b/module/languages/en/tl_leaflet_map.php @@ -87,6 +87,10 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][0] = 'Locate maximu $GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaximumAge'][1] = 'Maximum age of detected location in milliseconds. Use cached value if time has not passed.'; $GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][0] = 'Load data dynamically in bounds'; $GLOBALS['TL_LANG']['tl_leaflet_map']['dynamicLoad'][1] = 'If enabled the map requests data from the layers for the current bounds only and make a new request if bounds has changed.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][0] = 'Enable cache'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cache'][1] = 'If enabled the generated map javascript is cached.'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][0] = 'Cache lifetime'; +$GLOBALS['TL_LANG']['tl_leaflet_map']['cacheLifeTime'][1] = 'Indicates how long a cache entry is valid in seconds.'; $GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBoundsOptions']['load'][0] = 'At map initialization'; $GLOBALS['TL_LANG']['tl_leaflet_map']['adjustBoundsOptions']['load'][1] = 'Calculate bounds when the map is initialized. All static and already loaded deferred featured are included.';