Skip to content

3nln/next-leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Next.js Leaflet Map with Multiple Tile Layers

This project demonstrates how to integrate Leaflet with Next.js to create an interactive map that supports multiple tile layers.

Features

  • โœ… Leaflet integration in Next.js
  • โœ… Multiple tile layers (OpenStreetMap, Google Maps, Satellite, etc.)
  • โœ… Dynamic map component
  • โœ… Custom markers and popups
  • โœ… Optimized for performance in a Next.js environment

Installation

Clone the repository and install dependencies:

git clone https://github.com/JavohirTech/next-leaflet.git
cd next-leaflet
npm install

Running Locally

Start the development server:

npm run dev

Then open http://localhost:3000 in your browser.

Deployment

Deploy to Vercel

Click the button below to deploy your Next.js Leaflet map to Vercel:

Deploy to Vercel

Or manually deploy with the Vercel CLI:

npm install -g vercel
vercel

Deploy to Netlify

Click the button below to deploy your Next.js Leaflet map to Netlify:

Deploy to Netlify

Or manually deploy with the Netlify CLI:

npm install -g netlify-cli
netlify deploy

What This Includes

About

๐Ÿƒ Leaflet map in NextJS usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published