"use client"; import dynamic from 'next/dynamic'; const DebugPolishOrthophotoMap = dynamic( () => import('../../components/ui/DebugPolishOrthophotoMap'), { ssr: false, loading: () =>
Loading map...
} ); export const dynamicParams = true; export default function DebugPolishOrthophotoPage() { // Test marker in Poland const testMarkers = [ { position: [50.0647, 19.9450], // Krakow popup: "Kraków - Test Location" } ]; return (

Debug Polish Geoportal Orthophoto

Debug Mode Active

This page tests multiple URL formats for Polish Geoportal orthophoto tiles. Check the browser console and the debug panel on the map for network request information.

Debug Map with Multiple Orthophoto Options

Try switching between different Polish orthophoto options using the layer control. Google layers are included as working references.

URL Formats Being Tested:

Option 1 (WMTS KVP EPSG:3857): ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTO&STYLE=default&TILEMATRIXSET=EPSG:3857&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg Standard Web Mercator projection
Option 2 (WMTS KVP EPSG:2180): ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTO&STYLE=default&TILEMATRIXSET=EPSG:2180&TILEMATRIX=EPSG:2180:{z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg Polish coordinate system
Option 3 (Alternative TILEMATRIXSET): ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTO&STYLE=default&TILEMATRIXSET=GoogleMapsCompatible&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg Google Maps compatible matrix
Option 4 (PNG format): ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTO&STYLE=default&TILEMATRIXSET=EPSG:3857&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png PNG format instead of JPEG

Debug Instructions:

  1. 1. Open browser Developer Tools (F12) and go to Network tab
  2. 2. Switch between different Polish orthophoto options in the layer control
  3. 3. Look for requests to geoportal.gov.pl in the Network tab
  4. 4. Check the debug panel on the map for request/response info
  5. 5. Note which options return 200 OK vs 404/403 errors
  6. 6. Compare with working Google layers
); }