-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added interactive map #60
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Thank you @serenade2400 for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better.
Resolve these error
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to compile.
./src/components/Mapcomponent.js
Module not found: Can't resolve 'leaflet/dist/leaflet.css'
https://nextjs.org/docs/messages/module-not-found
Build failed because of webpack errors
Error: Command "npm run build" exited with 1
src/components/Mapcomponent.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this file extension as .tsx
} | ||
/* Add this to your CSS file */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this css from here and add it to it's relevant component css files
@@ -12,6 +12,11 @@ import Notify_Banner from "/public/notify-early-banner.jpg" | |||
import PahadiWomen from "/public/bhotiaWoman.webp" | |||
import Screen from "@/components/Screen"; | |||
import Festivals from "@/components/Festivals"; | |||
import dynamic from 'next/dynamic' | |||
const UttarakhandMap = dynamic(() => import('../components/Mapcomponent'), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add this feature in home page add it another different page
@@ -11,7 +11,7 @@ | |||
"dependencies": { | |||
"@vercel/speed-insights": "^1.0.12", | |||
"leaflet": "^1.9.4", | |||
"next": "14.2.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change the version
"eslint": "^8", | ||
"eslint-config-next": "14.2.5", | ||
"postcss": "^8.4.47", | ||
"tailwindcss": "^3.4.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use tailwindcss
@@ -122,3 +122,6 @@ a { | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
@tailwind base; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tailwindcss
Integrated Leaflet.js with React using react-leaflet for interactive maps.
Added Uttarakhand boundary visualization using GeoJSON data.
Fixed marker icons and displayed district markers with popups for cultural and historical info.
Enhanced UI with centered map and dynamic zoom for better region visibility.