mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-01-18 06:38:39 +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'];
|
$profile = $m['profile'];
|
||||||
$bounds = $m['bounds'];
|
$bounds = $m['bounds'];
|
||||||
$format = $m['format'];
|
$format = $m['format'];
|
||||||
if ($format == 'jpgpng'){
|
$mime = ($format == 'jpg') ? 'image/jpeg' : 'image/' . $format;
|
||||||
$mime = 'image/jpgpng';
|
|
||||||
} else {
|
|
||||||
$mime = ($format == 'jpg') ? 'image/jpeg' : 'image/png';
|
|
||||||
}
|
|
||||||
if ($profile == 'geodetic') {
|
if ($profile == 'geodetic') {
|
||||||
$tileMatrixSet = "WGS84";
|
$tileMatrixSet = "WGS84";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user