An interactive web app that teaches world geography. Click continents on a colorful map or use geolocation to discover famous rivers, mountains, and landmarks across the globe.
Video.Demo.mp4
Discover Your World is an educational web application that helps users explore global geography through an interactive, color-coded world map. Users can click on any continent to learn about its geographical features or use the geolocation feature to automatically discover information about their current location.
- Interactive World Map: Click on any colored continent to view detailed geographical information
- Geolocation Detection: Automatically detect your continent and display relevant data
- Continent Information: Learn about famous rivers, mountains, and landmarks for each continent
- User-Friendly Interface: Clear instructions and visual cues for easy navigation
- Responsive Design: Works seamlessly on desktop and mobile devices
- Custom Favicon: Professional branding with custom favicon icons
The application provides detailed information about all six continents:
| Continent | Major River | Highest Mountain | Famous Landmarks |
|---|---|---|---|
| North America | Mississippi River | Denali | Grand Canyon, Statue of Liberty, Niagara Falls |
| South America | Amazon River | Aconcagua | Machu Picchu, Galapagos Islands |
| Europe | Danube River | Mont Blanc | Eiffel Tower, Colosseum, Acropolis of Athens |
| Africa | Nile River | Mount Kilimanjaro | Sphinx, Table Mountain |
| Asia | Yangtze River | Mount Everest | Great Wall of China, Petra |
| Australia and Oceania | Murray River | Mount Kosciuszko | Sydney Opera House, Great Barrier Reef, Uluru |
- Open the application in your web browser
- Look at the colorful world map displayed on the page
- Click on any continent (each one has a different color)
- A pop-up will appear showing:
- Major rivers
- Highest mountains
- Famous landmarks
- Click the "Discover Location" button at the top
- Allow browser access to your location when prompted
- The app will automatically determine your continent
- View geographical information about your current location
Discover_Your_World/
โ
โโโ Discover_Your_World.html # Main HTML file
โโโ script.js # JavaScript functionality
โโโ README.md # Project documentation
โ
โโโ Favicons/ # Favicon files
โ โโโ favicon.ico
โ โโโ favicon-16x16.png
โ โโโ favicon-32x32.png
โ โโโ apple-touch-icon.png
โ โโโ site.webmanifest
โ
โโโ Assets/ # Image assets
โโโ continents.jpg # World map image
- HTML5: Structure, image mapping, and semantic markup
- CSS3: Styling and responsive design
- JavaScript (ES6): Interactive functionality
- Geolocation API: Browser-based location detection
- Image Maps: Clickable regions using
<area>tags
Tested and working on:
- โ Chrome (recommended)
- โ Firefox
- โ Safari
- โ Microsoft Edge
- โ Opera
Note: Geolocation features require HTTPS or localhost. Some browsers may restrict geolocation on file:// protocol.
- Uses HTML
<area>tags to define clickable regions - Each continent has specific coordinates matching its boundaries
- Rectangle shapes (
shape="rect") define the clickable zones - Each area has a unique ID matching the JavaScript data
- Data Storage: Continent information stored in a JavaScript object
- Event Listeners: Detect clicks on map areas and buttons
- Geolocation API: Accesses device GPS coordinates
- Coordinate Mapping: Converts latitude/longitude to continent identification
- Pop-up Alerts: Displays geographical information in browser alerts
- Clear visual instructions with emoji icons
- Helpful tip message guides users to click on continents
- Responsive button styling with hover effects
- Centered map image for optimal viewing
- Download or clone the project folder
- Ensure all files maintain the correct directory structure
- Open
Discover_Your_World.htmlin your web browser - Start exploring!
If geolocation doesn't work with file:// protocol, run a local server:
Using Python 3:
cd path/to/Discover_Your_World
python -m http.server 8000Using Node.js:
npx http-serverUsing VS Code:
- Install "Live Server" extension
- Right-click
Discover_Your_World.html - Select "Open with Live Server"
Then open: http://localhost:8000
This project demonstrates:
- โ HTML5 semantic structure and forms
- โ Image map implementation with clickable regions
- โ JavaScript DOM manipulation and event handling
- โ Browser Geolocation API usage
- โ Object-based data structures in JavaScript
- โ Conditional logic and coordinate calculations
- โ CSS styling and responsive design principles
- โ User experience design with clear instructions
Problem: Favicon doesn't appear in browser tab
Solution:
- Ensure using relative paths (e.g.,
Favicons/favicon.ico) - Clear browser cache with Ctrl+Shift+R (hard refresh)
- Close and reopen the browser
Problem: Location detection fails or shows error
Solution:
- Check browser permissions for location access
- Run on localhost or HTTPS (not
file://) - Ensure GPS/location services are enabled on your device
- Check browser console (F12) for specific error messages
Problem: Clicking continents doesn't show information
Solution:
- Verify the image path in the
srcattribute is correct - Check that all
<area>tags have matching IDs in JavaScript - Open browser console to check for JavaScript errors
- Ensure
script.jsis loaded properly
Problem: No alert appears when clicking continents
Solution:
- Check browser pop-up blocker settings
- Verify JavaScript is enabled in browser
- Ensure the
idattributes match between HTML and JavaScript
Created as a web development learning project
This project is open source and available for educational purposes.
Potential improvements for future versions:
- ๐จ Add custom CSS styling with colors and animations
- ๐ฑ Enhanced mobile responsiveness
- ๐ Country-level information within continents
- ๐ฏ Interactive quiz mode to test geography knowledge
- ๐ Multi-language support (Spanish, French, etc.)
- ๐ผ๏ธ Replace alert pop-ups with stylish modal windows
- ๐ Add statistics and fun facts about each continent
- ๐ต Background music and sound effects
- ๐บ๏ธ More detailed maps with cities and capitals
- ๐พ Save favorite locations feature
geography education interactive-map geolocation javascript html5 web-application learning world-map beginner-friendly
Enjoy exploring the world! ๐๐๐
Click a continent, discover its wonders!# Discover-Your-World