Here's a simple SVG world map using basic shapes and paths. This is a minimalistic, stylized representation (not geographically accurate) meant to illustrate continents in a rough layout:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-180 -90 360 180" width="800" height="400">
<!-- Background -->
<rect width="100%" height="100%" fill="#87CEEB"/>
<!-- Continents (simplified) -->
<!-- Africa -->
<polygon points="20,-10 40,-10 40,10 30,20 20,10" fill="#4CAF50"/>
<!-- Europe -->
<polygon points="0,-10 15,-15 25,-5 20,0 10,0" fill="#4CAF50"/>
<!-- Asia -->
<polygon points="40,-20 70,-25 80,0 60,10 40,0" fill="#4CAF50"/>
<!-- North America -->
<polygon points="-100,0 -80,-20 -50,-10 -40,10 -70,20" fill="#4CAF50"/>
<!-- South America -->
<polygon points="-50,10 -40,30 -60,40 -70,25" fill="#4CAF50"/>
<!-- Australia -->
<polygon points="110,30 120,40 130,35 120,25" fill="#4CAF50"/>
<!-- Equator -->
<line x1="-180" y1="0" x2="180" y2="0" stroke="#FF9800" stroke-width="0.5"/>
<!-- Prime Meridian -->
<line x1="0" y1="-90" x2="0" y2="90" stroke="#FF9800" stroke-width="0.5"/>
</svg>
🌍 Explanation:
<svg>: Sets up the canvas with a viewBox from -180 to 180 in longitude and -90 to 90 in latitude (global coordinates).
<rect>: Fills the background with a light blue to represent oceans.
<polygon>: Each continent is represented by a simple polygon with only a few points.
- Colors:
- Green (
#4CAF50) for landmasses.
- Orange (
#FF9800) for equator and prime meridian lines.
- Lines:
- The equator (horizontal line at y=0).
- The prime meridian (vertical line at x=0).
🧭 Notes:
- This is not a precise geographic map, but it shows a basic layout of major continents.
- You can expand this by adding more polygons or paths for more detail.
- You can also add labels, scale, or more realistic shapes if needed later.
Let me know if you'd like to add country borders, labels, or switch to a specific projection like Mercator!