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:
parent
0acdc04e32
commit
abb4087942
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user