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

fix to return correct transparent png #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tileserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function getCleanTile($scale = 1, $format = 'png') {
header('Access-Control-Allow-Origin: *');
header('Content-type: image/png');
// 256x256 transparent optimised png tile
echo unpack('H', '89504e470d0a1a0a0000000d494844520000010000000100010300000066bc3a2500000003504c5445000000a77a3dda0000000174524e530040e6d8660000001f494441541819edc1010d000000c220fba77e0e37600000000000000000e70221000001f5a2bd040000000049454e44ae426082');
echo hex2bin('89504e470d0a1a0a0000000d494844520000010000000100010300000066bc3a2500000003504c5445000000a77a3dda0000000174524e530040e6d8660000001f494441541819edc1010d000000c220fba77e0e37600000000000000000e70221000001f5a2bd040000000049454e44ae426082');
break;
}
die;
Expand Down