mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-02 20:57:29 +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'];
|
$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 {
|
||||||
|
Reference in New Issue
Block a user