<!DOCTYPE html>

<html lang="en">
<head>
        <?php echo view('partials/title-meta', array('title' => 'Leaflet Maps')) ?>

        <!-- leaflet CSS -->
<link href="/plugins/leaflet/leaflet.css" rel="stylesheet"/>

        <?= $this->include('partials/head-css') ?>
    </head>
<body>
<div class="wrapper">
            <?php echo view('partials/topbar', array('subtitle' => 'Maps', 'title' => 'Leaflet')) ?> <?= $this->include('partials/sidenav') ?>

            <!-- Start Page Content here -->
<div class="page-content">
<main>
                    <?php echo view('partials/page-title', array('subtitle' => 'Maps', 'title' => 'Leaflet')) ?>

                    <div class="container-fluid">
<div class="grid xl:grid-cols-2 gap-base">
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Basic Map</h4>
<p class="text-default-400">A simple Leaflet map centered with default tile layer and controls.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="basicMap"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Marker Circle &amp; Polygon</h4>
<p class="text-default-400">Shows how to add interactive markers, circles, and polygons on the map.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="shapeMap"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Draggable Marker With Popup</h4>
<p class="text-default-400">Allows dragging a marker with a popup that displays dynamic content.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="dragMap"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">User Location</h4>
<p class="text-default-400">Uses the browser's geolocation API to show the user's current location.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="userLocation"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Custom Icons</h4>
<p class="text-default-400">Demonstrates using custom image icons for Leaflet map markers.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="customIcons"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Layer Control</h4>
<p class="text-default-400">Toggles between multiple map layers or overlays using Leaflet’s layer control.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="layerControl"></div>
</div>
</div>
<!-- end card-->
<div class="card">
<div class="card-header block">
<h4 class="card-title mb-1.25">Interactive Choropleth Map</h4>
<p class="text-default-400">Displays region-based data using GeoJSON and interactive color scales.</p>
</div>
<div class="card-body">
<div class="leaflet-map z-30 h-75" id="geoJson"></div>
</div>
</div>
<!-- end card-->
</div>
<!-- end grid-->
</div>
</main>

                <?= $this->include('partials/footer') ?>
            </div>
<!-- End Page content -->
</div>

        <?= $this->include('partials/customizer') ?> <?= $this->include('partials/footer-scripts') ?>

        <!-- leaflet plugin -->
<script src="/plugins/leaflet/leaflet.js"></script>
<!-- leaflet map -->
<script src="/js/maps/leaflet-data.js"></script>
<script src="/js/pages/maps-leaflet.js"></script>
</body>
</html>