A beautiful, interactive web guide that extends your hand-drawn city map with multimedia content for each location marker.
- 12 Interactive Markers: Clickable buttons corresponding to map locations
- Multimedia Support: Images, audio, video, and external links
- Responsive Design: Works perfectly on all devices
- Modern UI: Beautiful gradients, smooth animations, and clean typography
- Easy Customization: Simple to update content and styling
- Static Hosting: Can be hosted anywhere, including GitHub Pages
The project consists of three main files:
index.html- Main webpage structurestyles.css- Styling and responsive designscript.js- Interactive functionality and content management
Edit the script.js file to add your own content for each marker:
const markerContent = {
1: {
title: "Your Location Name",
description: "Description of this location",
images: ["path/to/image1.jpg", "path/to/image2.jpg"],
audio: "path/to/audio.mp3", // Optional
video: "path/to/video.mp4", // Optional
externalLink: "https://example.com" // Optional
},
// ... repeat for markers 2-12
};Create these folders and add your content:
your-project/
├── images/ # Photos for each marker
├── audios/ # Audio files (MP3 format)
├── videos/ # Video files (MP4 format)
├── index.html
├── styles.css
└── script.js
Open index.html in your web browser to test everything works.
Edit the CSS variables in styles.css:
body {
background: linear-gradient(135deg, #YOUR_COLOR1 0%, #YOUR_COLOR2 100%);
}- Add buttons to the HTML
- Add content data to
script.js - Update the CSS grid if needed
The design is fully responsive and uses CSS Grid for the marker layout. Adjust the .markers-grid class to change the arrangement.
- Create a new GitHub repository
- Upload your project files
- Go to Settings → Pages
- Select "Deploy from a branch" → Choose "main" branch
- Your site will be available at
https://yourusername.github.io/repository-name
- Drag and drop your project folder to netlify.com
- Get instant hosting with a custom URL
- Connect your GitHub for automatic updates
- Connect your GitHub repository to vercel.com
- Automatic deployments on every push
- Custom domain support
Since this is a static site, you can host it anywhere that serves HTML files.
- Generate QR Code: Use any QR code generator (like qr-code-generator.com)
- URL: Point it to your hosted webpage URL
- Print: Add it to your hand-drawn map
- Test: Scan with your phone to ensure it works
- Pure HTML/CSS/JavaScript: No frameworks or build tools needed
- Responsive Design: Mobile-first approach with CSS Grid and Flexbox
- Modern CSS: Uses CSS Grid, custom properties, and smooth animations
- Accessibility: Semantic HTML and keyboard navigation support
- Performance: Lightweight and fast loading
city-map-guide/
├── index.html # Main webpage
├── styles.css # Styling and animations
├── script.js # Content and interactions
├── images/ # Location photos
│ ├── marker1-1.jpg
│ ├── marker1-2.jpg
│ └── ...
├── audio/ # Audio files
│ ├── marker1-narration.mp3
│ └── ...
├── videos/ # Video files
│ ├── marker1-tour.mp4
│ └── ...
└── README.md # This file
- Photos: Show the location, architecture, or atmosphere
- Audio: Historical narration, ambient sounds, or guided tours
- Video: Short clips of the location or activities
- External Links: Official websites, booking pages, or social media
- Descriptions: Interesting facts, opening hours, or visitor tips
- Check file paths are correct
- Ensure image files exist in the
images/folder - Use relative paths (e.g.,
images/photo.jpgnotC:/photos/photo.jpg)
- Check file formats (MP3 for audio, MP4 for video)
- Ensure files are in the correct folders
- Test with different browsers
- Check all three files are in the same folder
- Ensure file names match exactly (case-sensitive)
- Try opening in a different browser
If you need help:
- Check the troubleshooting section above
- Verify all files are present and named correctly
- Test with a simple setup first (just text, no media)
- Check browser console for error messages
Your interactive city map guide is now ready to use. People can scan the QR code on your hand-drawn map and explore each location with rich multimedia content. The design is beautiful, responsive, and easy to maintain.
Happy mapping! 🗺️✨