mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-01 20:20:21 +02:00
Cleaning of image format choser for wmts #58
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user