<?php
/* Источник схем покрытия для всех карт
Coverage source for the all maps
*/
$ttl = 60*15*1; //cache timeout in seconds время, через которое тайл считается протухшим
//$ttl = 15; //cache timeout in seconds время, через которое тайл считается протухшим
$ext = 'png'; 	// tile image type/extension
$ContentType = 'image/png'; 	// if content type differ then file extension
$minZoom = 0;
$maxZoom = 24;
$freshOnly = TRUE; 	// не показывать протухшие тайлы

$functionGetURL = <<<'EOFU'
function getURL($z,$x,$y,$getURLparams) {
/* 
*/
global $tileCacheServerPath;
if(!$tileCacheServerPath) $tileCacheServerPath = $getURLparams['tileCacheServerPath']; 	// эта переменная их config.php, но в tilesfromsource config.php загружается в функции, и переменная не global
//echo "getURL tileCacheServerPath=$tileCacheServerPath;\n";
$opts = array(
	'http'=>array(
		'timeout' => 180,
		'request_fulluri'=>TRUE
	)
);
$mapSourcesName = $getURLparams['r'];
$url = "http://localhost$tileCacheServerPath/tilesCOVER.php?z=$z&x=$x&y=$y&r=$mapSourcesName";
return array($url,$opts);
}
EOFU;
?>
