Implement the tile layer (Close #3).

This commit is contained in:
David Molineus
2015-01-22 13:34:07 +01:00
parent 9dfb6698cf
commit 178da21895
4 changed files with 379 additions and 1 deletions

View File

@@ -78,6 +78,44 @@ $GLOBALS['TL_LANG']['tl_leaflet_layer']['disableDefaultStyle'][0] = 'Disa
$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableDefaultStyle'][1] = 'Do not load default marker cluster stylesheets.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['affectBounds'][0] = 'Affect map bounds';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['affectBounds'][1] = 'If the map support it the marker will be used to affect the initial map bounds.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'][0] = 'Minimum zoom';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'][1] = 'Minimum zoom number.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'][0] = 'Maximum zoom';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'][1] = 'Minimum zoom number.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'][0] = 'Maximum zoom where tiles are provided';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'][1] = 'Maximum zoom number the tiles source has available. If it is specified, the tiles on all zoom levels higher than maxNativeZoom will be loaded from maxZoom level and auto-scaled.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tileSize'][0] = 'Tile size';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tileSize'][1] = 'Tile size (width and height in pixels, assuming tiles are square).';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['subdomains'][0] = 'Subdomain';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['subdomains'][1] = 'Subdomains of the tile service. Each letter is handled as a subdomain.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['errorTileUrl'][0] = 'Error url';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['errorTileUrl'][1] = 'URL to the tile image to show in place of the tile that failed to load.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['attribution'][0] = 'Attribution';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['attribution'][1] = 'The tile layer attribution. Be aware of the conditions of the tile providers!';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tms'][0] = 'TMS Service';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['tms'][1] = 'Inverse the Y axis numbering for TMS services';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['continuousWorld'][0] = 'Continuous World';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['continuousWorld'][1] = 'If set to true, the tile coordinates won\'t be wrapped by world width (-180 to 180 longitude) or clamped to lie within world height (-90 to 90). Use this if you use Leaflet for maps that don\'t reflect the real world (e.g. game, indoor or photo maps).';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['noWrap'][0] = 'No wrap';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['noWrap'][1] = 'If set to true, the tiles just won\'t load outside the world width (-180 to 180 longitude) instead of repeating.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomOffset'][0] = 'Zoom offset';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomOffset'][1] = 'The zoom number used in tile URLs will be offset with this value.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomReverse'][0] = 'Reserve zoom';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zoomReverse'][1] = 'If set to true, the zoom number used in tile URLs will be reversed';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['opacity'][0] = 'Opacity';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['opacity'][1] = 'The opacity of the tile layer.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zIndex'][0] = 'zIndex';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['zIndex'][1] = 'The explicit zIndex of the tile layer. Not set by default.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['unloadvisibleTiles'][0] = 'Unload not visible tiles';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['unloadvisibleTiles'][1] = 'If true, all the tiles that are not visible after panning are removed.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['updateWhenIdle'][0] = 'Update then idle';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['updateWhenIdle'][1] = 'If false, new tiles are loaded during panning, otherwise only after it ';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['detectRetina'][0] = 'Detect retina displays';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['detectRetina'][1] = 'If true and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['reuseTiles'][0] = 'Reuse tiles';
$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']['groupTypes']['layer'][0] = 'Layer group';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes']['layer'][1] = 'Basic layer group. <br> See <a href="http://leafletjs.com/reference.html#layergroup" target="_blank">http://leafletjs.com/reference.html#layergroup</a>';