🔍 Visual Comparison: PHP vs CLI Tiles

Legend:
🟣 Purple border = CLI extracted tile
🟢 Green border = PHP served tile

If they look identical, PHP is working correctly!
0, 'x' => 0, 'y' => 0, 'desc' => 'World view'], ['z' => 1, 'x' => 0, 'y' => 0, 'desc' => 'Hemisphere'], ['z' => 2, 'x' => 0, 'y' => 1, 'desc' => 'Regional'], ['z' => 3, 'x' => 1, 'y' => 3, 'desc' => 'Sub-regional'], ['z' => 4, 'x' => 3, 'y' => 6, 'desc' => 'Local'], ]; foreach ($test_tiles as $tile): $z = $tile['z']; $x = $tile['x']; $y = $tile['y']; $desc = $tile['desc']; $cli_file = "cli_{$z}_{$x}_{$y}.png"; $php_url = "tile.php?tile=raster.pmtiles&z={$z}&x={$x}&y={$y}"; ?>

Test: z=, x=, y=

CLI Extracted

CLI tile
File not found
Run CLI extraction first

PHP Served

PHP tile
CLI file size: bytes
CLI checksum: CLI file not extracted yet

How to use:

  1. First, extract tiles using CLI:
    cd test_pm
    ./compare_php_vs_cli.sh
  2. Then refresh this page to see the comparison
  3. Tiles should look identical if everything is working