"use client"; import { useState } from 'react'; import ComprehensivePolishMap from '../../components/ui/ComprehensivePolishMap'; export default function ComprehensivePolishMapPage() { const [selectedLocation, setSelectedLocation] = useState('krakow'); // Different locations to test the layers const locations = { krakow: { center: [50.0647, 19.9450], zoom: 14, name: "Kraków", description: "Historic city center with good cadastral data coverage" }, warsaw: { center: [52.2297, 21.0122], zoom: 14, name: "Warszawa", description: "Capital city with extensive planning data" }, gdansk: { center: [54.3520, 18.6466], zoom: 14, name: "Gdańsk", description: "Port city with detailed property boundaries" }, wroclaw: { center: [51.1079, 17.0385], zoom: 14, name: "Wrocław", description: "University city with good orthophoto coverage" }, poznan: { center: [52.4064, 16.9252], zoom: 14, name: "Poznań", description: "Industrial center with road network data" } }; const currentLocation = locations[selectedLocation]; // Test markers for selected location const testMarkers = [ { position: currentLocation.center, popup: `${currentLocation.name} - ${currentLocation.description}` } ]; return (

🇵🇱 Comprehensive Polish Geospatial Data Platform

All Polish Layers Implementation Complete! 🎉

This comprehensive map includes all layers from your OpenLayers implementation, converted to work seamlessly with your Leaflet-based React/Next.js project.

Base Layers:
  • • Polish Orthophoto (Standard & High Resolution)
  • • OpenStreetMap, Google Maps, Esri Satellite
Overlay Layers:
  • • Cadastral Data, Spatial Planning
  • • LP-Portal Roads, Street Names, Parcels, Surveys
{/* Location Selector */}

🎯 Select Test Location:

{Object.entries(locations).map(([key, location]) => ( ))}

Current: {currentLocation.description}

{/* Map Container */}

Interactive Map: {currentLocation.name}

Use the layer control (top-right) to toggle between base layers and enable overlay layers. Combine orthophoto with cadastral data for detailed property analysis.

{/* Layer Information */}
{/* Base Layers */}

🗺️ Base Layers

Polish Orthophoto (Standard)

High-quality aerial imagery from Polish Geoportal

Polish Orthophoto (High Resolution)

Ultra-high resolution aerial imagery for detailed analysis

OpenStreetMap

Community-driven map data

Google Maps

Satellite imagery and road overlay

{/* Overlay Layers */}

📊 Overlay Layers

📋 Polish Cadastral Data

Property boundaries, parcels, and building outlines

Opacity: 80% - Semi-transparent overlay

🏗️ Polish Spatial Planning

Zoning data and urban planning information

Opacity: 70% - Semi-transparent overlay

🛣️ LP-Portal Roads

Detailed road network data

Opacity: 90% - Mostly opaque for visibility

🏷️ LP-Portal Street Names

Street names and road descriptions

Opacity: 100% - Fully opaque for readability

📐 LP-Portal Parcels & Surveys

Property parcels and survey markers

Opacity: 60-80% - Variable transparency

{/* Transparency Information */}

🎨 Layer Transparency Handling

Base Layers (Opaque):

Polish Orthophoto 100% Opaque
Google Satellite/Roads 100% Opaque

Overlay Layers (Transparent):

📋 Cadastral Data 80% Opacity
🏗️ Spatial Planning 70% Opacity
🛣️ Roads 90% Opacity
🏷️ Street Names 100% Opacity
📐 Parcels 60% Opacity
📍 Survey Markers 80% Opacity

Smart Transparency: Each overlay layer has been optimized with appropriate transparency levels. Property boundaries are semi-transparent (60-80%) so you can see the underlying imagery, while text labels are fully opaque (100%) for maximum readability.

{/* Usage Guide */}

📋 How to Use This Comprehensive Map

Basic Navigation:

  • • Use mouse wheel to zoom in/out
  • • Click and drag to pan around
  • • Use layer control (top-right) to switch layers
  • • Select different Polish cities above to test

Advanced Features:

  • • Combine orthophoto with cadastral overlay
  • • Enable multiple overlays simultaneously
  • • Use high-resolution orthophoto for detail work
  • • Compare with Google/OSM base layers
{/* Technical Implementation */}

⚙️ Technical Implementation Details

WMTS Integration:

  • • Proper KVP URL construction
  • • EPSG:3857 coordinate system
  • • Standard and high-res orthophoto
  • • Multiple format support (JPEG/PNG)

WMS Overlays:

  • • Polish government services
  • • LP-Portal municipal data
  • • Transparent overlay support
  • • Multiple layer combinations

React/Leaflet:

  • • React-Leaflet component integration
  • • Dynamic layer switching
  • • Responsive design
  • • Performance optimized
); }