1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-01-17 22:28:37 +01:00

Cleaning of image format choser for wmts #58

This commit is contained in:
Dalibor Janák 2015-12-01 23:03:54 +01:00
parent 0acdc04e32
commit abb4087942

View File

@ -764,11 +764,7 @@ class Wmts extends Server {
$profile = $m['profile'];
$bounds = $m['bounds'];
$format = $m['format'];
if ($format == 'jpgpng'){
$mime = 'image/jpgpng';
} else {
$mime = ($format == 'jpg') ? 'image/jpeg' : 'image/png';
}
$mime = ($format == 'jpg') ? 'image/jpeg' : 'image/' . $format;
if ($profile == 'geodetic') {
$tileMatrixSet = "WGS84";
} else {