"use client"; import dynamic from 'next/dynamic'; const ImprovedPolishOrthophotoMap = dynamic( () => import('../../components/ui/ImprovedPolishOrthophotoMap'), { ssr: false, loading: () =>
Loading map...
} ); export default function ImprovedPolishOrthophotoPage() { const testMarkers = [ { position: [50.0647, 19.9450], // Krakow popup: "Kraków - Testing WMTS" } ]; return (

Improved Polish WMTS Implementation

Custom WMTS Layer Implementation

This version uses a custom WMTS layer that properly constructs KVP URLs based on the GetCapabilities response. Check the debug panel on the map to see the actual requests being made.

Custom WMTS Layer with Proper KVP URLs

This implementation builds proper WMTS GetTile requests with all required parameters. Monitor the debug panel and browser network tab for request details.

WMTS Parameters Being Tested:

Tile Matrix Sets Available:
  • • EPSG:3857 (Web Mercator)
  • • EPSG:4326 (WGS84)
  • • EPSG:2180 (Polish National Grid)
Formats Available:
  • • image/jpeg (default)
  • • image/png

Testing Instructions:

  1. 1. Open Browser Developer Tools (F12) → Network tab
  2. 2. Filter by "geoportal.gov.pl" to see WMTS requests
  3. 3. Switch between different Polish WMTS options
  4. 4. Check if requests return 200 OK or error codes
  5. 5. Compare with Google Satellite (known working)
  6. 6. Monitor the debug panel for request URLs

Expected Behavior:

If the Polish orthophoto tiles appear, you should see aerial imagery of Poland. If they don't load, check the network requests - they should show proper WMTS GetTile URLs with all required parameters (SERVICE, REQUEST, LAYER, TILEMATRIXSET, etc.).

); }