{% extends 'layouts/vertical.html' %} {% block title %}Leaflet Maps{% endblock title %} {% block extra_css %} {% endblock extra_css %} {% block page_content %}
{% set title='Leaflet' %} {% set subtitle='Maps' %} {% include 'partials/page-title.html' %}

Examples

Basic Map

A simple Leaflet map centered with default tile layer and controls.

Marker, Circle & Polygon

Shows how to add interactive markers, circles, and polygons on the map.

Draggable Marker with Popup

Allows dragging a marker with a popup that displays dynamic content.

User Location

Uses the browser's geolocation API to show the user's current location.

Custom Icons

Demonstrates using custom image icons for Leaflet map markers.

Layer Control

Toggles between multiple map layers or overlays using Leaflet’s layer control.

Interactive Choropleth Map

Displays region-based data using GeoJSON and interactive color scales.

{% endblock page_content %} {% block extra_javascript %} {% endblock extra_javascript %}