Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Empty tile response for jpg and webp
Browse files Browse the repository at this point in the history
  • Loading branch information
daliborjanak committed May 3, 2016
1 parent c28d188 commit e414873
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tileserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,11 @@ public function getCleanTile($scale = 1, $format = 'png') {
echo '{"message":"Tile does not exist"}';
break;
case 'webp':
default:
header('Access-Control-Allow-Origin: *');
header('Content-type: image/webp');
echo base64_decode('UklGRhIAAABXRUJQVlA4TAYAAAAvQWxvAGs=');
break;
case 'jpg':
default:
header('Access-Control-Allow-Origin: *');
header('Content-type: image/jpg');
echo base64_decode('/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=');
Expand Down

0 comments on commit e414873

Please sign in to comment.