Major World Cities
Copy this iframe to your website:
<iframe src="https://dmccreary.github.io/claude-skills/sims/test-world-cities/main.html" width="100%" height="360px"></iframe>
An interactive map showcasing ten major cities across different continents, demonstrating the geographic distribution of global population centers. Click on any marker to see the details of the city.
Overview
This map displays major cities from around the world, representing different continents and cultural regions. Each marker can be clicked to reveal information about the city, including its significance and a link to learn more.
Features
Interactive Elements
- Zoom and Pan - Use mouse wheel or touch gestures to zoom, click and drag to pan
- Marker Popups - Click on markers to view detailed information about each city
- Reset View - Return to the initial map position and zoom level
Visual Design
- Clean, minimalist marker design using Leaflet defaults
- Informative popups with city names, descriptions, and external links
- Responsive layout that adapts to different screen sizes
- Minimal padding optimized for textbook integration
Map Details
Center Coordinates: 20°N, 0°E
Initial Zoom Level: 2 (world view)
Number of Markers: 10 cities
Base Map: OpenStreetMap
Cities Featured:
- New York City, USA
- London, United Kingdom
- Tokyo, Japan
- Sydney, Australia
- Mexico City, Mexico
- São Paulo, Brazil
- Moscow, Russia
- New Delhi, India
- Cairo, Egypt
- Nairobi, Kenya
Educational Applications
This map can be used to teach:
- Geography: Identifying major cities and their locations on different continents
- Demographics: Understanding global population distribution
- Cultural Studies: Exploring diverse urban centers worldwide
- Economics: Examining major financial and trade hubs
- History: Studying the development of major metropolitan areas
Bloom's Taxonomy Alignment
- Remember: Locate and name major world cities
- Understand: Explain the geographic distribution of population centers
- Apply: Use the map to identify cities by continent or region
- Analyze: Compare the locations of cities across different hemispheres
- Evaluate: Assess the strategic importance of city locations
- Create: Design additional maps showing specific themes (trade routes, climate zones, etc.)
Technical Details
- Library: Leaflet 1.9.4
- CDN: unpkg.com (with SRI integrity checks)
- Browser Compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)
- Dependencies: Leaflet CSS and JavaScript (loaded from CDN)
- Responsive: Yes - adapts to mobile, tablet, and desktop screens
Lesson Plan
Learning Objectives
After completing this lesson, students will be able to:
- Understand (Understand) how Leaflet.js renders interactive web maps
- Apply (Apply) geographic coordinate systems to place markers on maps
- Analyze (Analyze) the trade-offs between different map tile providers
- Create (Create) custom interactive maps with markers and popups
- Evaluate (Evaluate) map visualizations for clarity and information density
Target Audience
- Primary: Web developers, data visualization specialists
- Secondary: Geographic information systems (GIS) students, digital cartographers
- Level: Undergraduate computer science or professional development
- Prerequisites: Basic JavaScript, HTML, and CSS; understanding of latitude/longitude
Activities
Activity 1: Map Interaction Exploration (15 minutes)
- Pan across the map to view all continents
- Zoom in to street level on 3 different cities
- Click markers to view city information popups
- Compare the map styles between OpenStreetMap and other tile providers (if multiple available)
- Note: How does the map behave on mobile vs. desktop?
Activity 2: Coordinate Analysis (20 minutes)
- Verify 5 city coordinates are accurate using an external source (e.g., Google Maps)
- Calculate the distance between Tokyo (35.68°N, 139.65°E) and São Paulo (23.55°S, 46.63°W)
- Identify which cities are in the Southern Hemisphere (latitude < 0)
- Explain why London has negative longitude despite being far from the Prime Meridian
Activity 3: Add Your Own Markers (35 minutes)
- Choose 5 cities not currently on the map
- Look up their latitude/longitude coordinates
- Add JavaScript code to place markers for these cities:
L.marker([latitude, longitude]).addTo(map)
.bindPopup('<b>City Name</b><br>Country<br>Population: X');
- Customize marker icons or colors for different continents
- Verify all markers appear correctly when the map loads
Activity 4: Create a Thematic Map (50 minutes)
Design a map showing:
- Theme selection: Choose a topic (e.g., capital cities, UNESCO sites, tech hubs)
- Data collection: Gather 15-20 locations with coordinates
- Marker customization: Use different icons/colors for categories
- Popup content: Include relevant information (population, facts, images)
- Map bounds: Set initial view to show all markers
- Deployment: Test the map in fullscreen and iframe modes
Assessment
Formative Assessment:
- During Activity 2: Can students correctly interpret latitude/longitude coordinates?
- During Activity 3: Do added markers appear in correct geographic locations?
Summative Assessment:
Create a complete custom interactive map:
- Data Quality (25 points): Accurate coordinates for 15+ locations
- Visualization Design (30 points): Effective use of markers, popups, and zoom levels
- Interactivity (20 points): Smooth panning, zooming, and popup functionality
- Code Quality (15 points): Clean JavaScript, proper Leaflet.js API usage
- Documentation (10 points): README explaining map theme and data sources
Success Criteria:
- Map loads without errors and displays all markers
- Coordinate accuracy within 0.1 degrees
- Popups provide useful contextual information
- Map is responsive and works on mobile devices
- Initial view shows all markers within bounds
Extension Activities
- Advanced: Implement clustering for overlapping markers at low zoom levels
- Integration: Load marker data from external GeoJSON file
- Styling: Create custom map tiles or use Mapbox for advanced styling
- Analytics: Add heatmap layer showing data density
References
Version History
- v1.0 (2025-01-16): Initial test map with 10 major world cities
Generated using the map-generator skill for intelligent textbooks
1---2name: major-world-cities3description: An interactive map showcasing ten major cities across different continents, demonstrating the geographic distribution of global population centers. Click on any marker to see the details of the city.4---567# Major World Cities89<iframe src="main.html" width="100%" height="360px"></iframe>10[Run Major World Cities in Fullscreen](main.html){ .md-button .md-button--primary }1112**Copy this iframe to your website:**1314```html15<iframe src="https://dmccreary.github.io/claude-skills/sims/test-world-cities/main.html" width="100%" height="360px"></iframe>16```1718An interactive map showcasing ten major cities across different continents, demonstrating the geographic distribution of global population centers. Click on any marker to see the details of the city.1920## Overview2122This map displays major cities from around the world, representing different continents and cultural regions. Each marker can be clicked to reveal information about the city, including its significance and a link to learn more.2324## Features2526### Interactive Elements2728- **Zoom and Pan** - Use mouse wheel or touch gestures to zoom, click and drag to pan29- **Marker Popups** - Click on markers to view detailed information about each city30- **Reset View** - Return to the initial map position and zoom level3132### Visual Design3334- Clean, minimalist marker design using Leaflet defaults35- Informative popups with city names, descriptions, and external links36- Responsive layout that adapts to different screen sizes37- Minimal padding optimized for textbook integration3839## Map Details4041**Center Coordinates**: 20°N, 0°E4243**Initial Zoom Level**: 2 (world view)4445**Number of Markers**: 10 cities4647**Base Map**: OpenStreetMap4849**Cities Featured**:50511. New York City, USA522. London, United Kingdom533. Tokyo, Japan544. Sydney, Australia555. Mexico City, Mexico566. São Paulo, Brazil577. Moscow, Russia588. New Delhi, India599. Cairo, Egypt6010. Nairobi, Kenya6162## Educational Applications6364This map can be used to teach:6566- **Geography**: Identifying major cities and their locations on different continents67- **Demographics**: Understanding global population distribution68- **Cultural Studies**: Exploring diverse urban centers worldwide69- **Economics**: Examining major financial and trade hubs70- **History**: Studying the development of major metropolitan areas7172## Bloom's Taxonomy Alignment7374- **Remember**: Locate and name major world cities75- **Understand**: Explain the geographic distribution of population centers76- **Apply**: Use the map to identify cities by continent or region77- **Analyze**: Compare the locations of cities across different hemispheres78- **Evaluate**: Assess the strategic importance of city locations79- **Create**: Design additional maps showing specific themes (trade routes, climate zones, etc.)8081## Technical Details8283- **Library**: Leaflet 1.9.484- **CDN**: unpkg.com (with SRI integrity checks)85- **Browser Compatibility**: All modern browsers (Chrome, Firefox, Safari, Edge)86- **Dependencies**: Leaflet CSS and JavaScript (loaded from CDN)87- **Responsive**: Yes - adapts to mobile, tablet, and desktop screens8889## Lesson Plan9091### Learning Objectives9293After completing this lesson, students will be able to:9495- **Understand** (Understand) how Leaflet.js renders interactive web maps96- **Apply** (Apply) geographic coordinate systems to place markers on maps97- **Analyze** (Analyze) the trade-offs between different map tile providers98- **Create** (Create) custom interactive maps with markers and popups99- **Evaluate** (Evaluate) map visualizations for clarity and information density100101### Target Audience102103- **Primary**: Web developers, data visualization specialists104- **Secondary**: Geographic information systems (GIS) students, digital cartographers105- **Level**: Undergraduate computer science or professional development106- **Prerequisites**: Basic JavaScript, HTML, and CSS; understanding of latitude/longitude107108### Activities109110**Activity 1: Map Interaction Exploration (15 minutes)**1111121. Pan across the map to view all continents1132. Zoom in to street level on 3 different cities1143. Click markers to view city information popups1154. Compare the map styles between OpenStreetMap and other tile providers (if multiple available)1165. Note: How does the map behave on mobile vs. desktop?117118**Activity 2: Coordinate Analysis (20 minutes)**1191201. Verify 5 city coordinates are accurate using an external source (e.g., Google Maps)1212. Calculate the distance between Tokyo (35.68°N, 139.65°E) and São Paulo (23.55°S, 46.63°W)1223. Identify which cities are in the Southern Hemisphere (latitude < 0)1234. Explain why London has negative longitude despite being far from the Prime Meridian124125**Activity 3: Add Your Own Markers (35 minutes)**1261271. Choose 5 cities not currently on the map1282. Look up their latitude/longitude coordinates1293. Add JavaScript code to place markers for these cities:130 ```javascript131 L.marker([latitude, longitude]).addTo(map)132 .bindPopup('<b>City Name</b><br>Country<br>Population: X');133 ```1344. Customize marker icons or colors for different continents1355. Verify all markers appear correctly when the map loads136137**Activity 4: Create a Thematic Map (50 minutes)**138139Design a map showing:1401411. **Theme selection**: Choose a topic (e.g., capital cities, UNESCO sites, tech hubs)1422. **Data collection**: Gather 15-20 locations with coordinates1433. **Marker customization**: Use different icons/colors for categories1444. **Popup content**: Include relevant information (population, facts, images)1455. **Map bounds**: Set initial view to show all markers1466. **Deployment**: Test the map in fullscreen and iframe modes147148### Assessment149150**Formative Assessment:**151- During Activity 2: Can students correctly interpret latitude/longitude coordinates?152- During Activity 3: Do added markers appear in correct geographic locations?153154**Summative Assessment:**155156Create a complete custom interactive map:1571581. **Data Quality** (25 points): Accurate coordinates for 15+ locations1592. **Visualization Design** (30 points): Effective use of markers, popups, and zoom levels1603. **Interactivity** (20 points): Smooth panning, zooming, and popup functionality1614. **Code Quality** (15 points): Clean JavaScript, proper Leaflet.js API usage1625. **Documentation** (10 points): README explaining map theme and data sources163164**Success Criteria:**165- Map loads without errors and displays all markers166- Coordinate accuracy within 0.1 degrees167- Popups provide useful contextual information168- Map is responsive and works on mobile devices169- Initial view shows all markers within bounds170171### Extension Activities172173- **Advanced**: Implement clustering for overlapping markers at low zoom levels174- **Integration**: Load marker data from external GeoJSON file175- **Styling**: Create custom map tiles or use Mapbox for advanced styling176- **Analytics**: Add heatmap layer showing data density177178179## References180181- [Leaflet Official Documentation](https://leafletjs.com/reference.html)182- [OpenStreetMap](https://www.openstreetmap.org/)183- [World Cities Database](https://simplemaps.com/data/world-cities)184185## Version History186187- **v1.0** (2025-01-16): Initial test map with 10 major world cities188189---190191*Generated using the map-generator skill for intelligent textbooks*