Skip to content

Commit e414873

Browse files
committed
Empty tile response for jpg and webp
1 parent c28d188 commit e414873

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tileserver.php

-2
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,11 @@ public function getCleanTile($scale = 1, $format = 'png') {
417417
echo '{"message":"Tile does not exist"}';
418418
break;
419419
case 'webp':
420-
default:
421420
header('Access-Control-Allow-Origin: *');
422421
header('Content-type: image/webp');
423422
echo base64_decode('UklGRhIAAABXRUJQVlA4TAYAAAAvQWxvAGs=');
424423
break;
425424
case 'jpg':
426-
default:
427425
header('Access-Control-Allow-Origin: *');
428426
header('Content-type: image/jpg');
429427
echo base64_decode('/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=');

0 commit comments

Comments
 (0)