Skip to content

antcoop-vu/leaflet-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet Experiments

A collection of interactive mapping applications built with Leaflet.js, demonstrating various use cases and design patterns for web-based mapping solutions.

🌟 Quick Start

🚀 View the Main Project Landing Page

Start exploring with the Bella Vista Restaurant contact map - the main demonstration of our interactive mapping capabilities.

🗺️ Project Overview

This repository contains three distinct mapping experiments, each showcasing different aspects of Leaflet.js integration with modern web technologies:

  1. Restaurant Contact Map - Business location finder
  2. Nashville Pizza Locations - Local business directory with interactive maps
  3. Nashville Traffic Dashboard - Real-time incident tracking system

🔗 Live Demos

Click the links below to view each mapping experiment:

🚀 Features

Restaurant Contact Map (index.html)

  • Interactive location finder for Bella Vista Restaurant
  • Responsive design with TailwindCSS
  • Alpine.js for reactive UI components
  • Custom styling with gradient backgrounds and hover effects
  • Multiple restaurant locations with detailed contact information

Nashville Pizza Locations (nashville-pizza.html)

  • Pizza restaurant locator for Smoky Mountain Pizza Co.
  • Custom fonts (Fredoka One & Open Sans) for branding
  • Location cards with hover animations
  • Interactive map markers with location selection
  • Responsive grid layout for location details

Nashville Traffic Dashboard (nashville-traffic.html)

  • Real-time traffic incident visualization
  • Professional dashboard UI with Inter and JetBrains Mono fonts
  • Incident filtering and selection
  • Detailed incident cards with status indicators
  • Large-format map optimized for data visualization

🛠️ Technologies Used

  • Leaflet.js - Open-source JavaScript library for interactive maps
  • Alpine.js - Lightweight reactive framework
  • TailwindCSS - Utility-first CSS framework
  • HTML5 - Modern semantic markup
  • JavaScript ES6+ - Modern JavaScript features

📦 Getting Started

Prerequisites

  • A modern web browser with JavaScript enabled
  • Local web server (optional, but recommended for development)

Installation

  1. Clone the repository:

    git clone https://github.com/antcoop-vu/leaflet-experiments.git
    cd leaflet-experiments/contact-map
  2. Open any HTML file in your browser:

    • index.html - Restaurant contact map
    • nashville-pizza.html - Pizza location finder
    • nashville-traffic.html - Traffic incident dashboard
  3. For development with live reload (optional):

    # Using Python 3
    python -m http.server 8000
    
    # Using Node.js (if you have live-server installed)
    npx live-server
    
    # Using PHP
    php -S localhost:8000

🎨 Design Patterns

Component Architecture

  • Alpine.js data stores for state management
  • Modular CSS with component-based styling
  • Responsive design principles throughout

Map Integration

  • Custom markers and popups
  • Interactive location selection
  • Responsive map containers
  • Smooth animations and transitions

UI/UX Features

  • Hover effects on interactive elements
  • Gradient backgrounds for visual appeal
  • Card-based layouts for information display
  • Mobile-first responsive design

📁 File Structure

contact-map/
├── index.html              # Restaurant contact map
├── nashville-pizza.html    # Pizza location finder
├── nashville-traffic.html  # Traffic incident dashboard
└── README.md              # Project documentation

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📧 Contact

Project Link: https://github.com/antcoop-vu/leaflet-experiments

📄 License

This project is open source and available under the MIT License.

🙏 Acknowledgments

  • OpenStreetMap contributors for map data
  • Leaflet.js community for the amazing mapping library
  • TailwindCSS team for the utility-first CSS framework
  • Alpine.js team for the lightweight reactive framework

Explore the power of interactive web mapping with these practical examples! 🗺️✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages