Skip to content

Commit 112ced7

Browse files
codergautamclaude
andcommitted
Commit 3: Expand country database to 25 major countries with GeoJSON boundaries
- Add 19 additional countries to the game with simplified polygon boundaries - Include major countries from all continents: Europe (Germany, France, Spain, UK, Italy, Turkey), Asia (India, Japan, Indonesia, Thailand, Iran, Kazakhstan, Mongolia, Saudi Arabia), Africa (Egypt, Nigeria, South Africa), and Americas (Mexico, Argentina) - All countries have easy-to-click polygon sizes for better gameplay - Maintain geographic accuracy while keeping boundaries simple for performance - Complete coverage of major world regions for comprehensive geography practice 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 10b0d91 commit 112ced7

File tree

1 file changed

+190
-1
lines changed

1 file changed

+190
-1
lines changed

components/LeafletMap.js

Lines changed: 190 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ export default function LeafletMap({ onCountryClick, highlightCountry, gameState
173173
]]
174174
}
175175
},
176+
{
177+
type: "Feature",
178+
properties: { name: "Mexico" },
179+
geometry: {
180+
type: "Polygon",
181+
coordinates: [[
182+
[-117, 32], [-117, 14], [-86, 14], [-86, 32], [-117, 32]
183+
]]
184+
}
185+
},
176186
{
177187
type: "Feature",
178188
properties: { name: "Brazil" },
@@ -183,6 +193,16 @@ export default function LeafletMap({ onCountryClick, highlightCountry, gameState
183193
]]
184194
}
185195
},
196+
{
197+
type: "Feature",
198+
properties: { name: "Argentina" },
199+
geometry: {
200+
type: "Polygon",
201+
coordinates: [[
202+
[-73, -22], [-73, -55], [-53, -55], [-53, -22], [-73, -22]
203+
]]
204+
}
205+
},
186206
{
187207
type: "Feature",
188208
properties: { name: "Russia" },
@@ -203,6 +223,16 @@ export default function LeafletMap({ onCountryClick, highlightCountry, gameState
203223
]]
204224
}
205225
},
226+
{
227+
type: "Feature",
228+
properties: { name: "India" },
229+
geometry: {
230+
type: "Polygon",
231+
coordinates: [[
232+
[68, 35], [68, 8], [97, 8], [97, 35], [68, 35]
233+
]]
234+
}
235+
},
206236
{
207237
type: "Feature",
208238
properties: { name: "Australia" },
@@ -212,8 +242,167 @@ export default function LeafletMap({ onCountryClick, highlightCountry, gameState
212242
[110, -10], [110, -45], [155, -45], [155, -10], [110, -10]
213243
]]
214244
}
245+
},
246+
{
247+
type: "Feature",
248+
properties: { name: "Egypt" },
249+
geometry: {
250+
type: "Polygon",
251+
coordinates: [[
252+
[25, 32], [25, 22], [35, 22], [35, 32], [25, 32]
253+
]]
254+
}
255+
},
256+
{
257+
type: "Feature",
258+
properties: { name: "South Africa" },
259+
geometry: {
260+
type: "Polygon",
261+
coordinates: [[
262+
[16, -22], [16, -35], [33, -35], [33, -22], [16, -22]
263+
]]
264+
}
265+
},
266+
{
267+
type: "Feature",
268+
properties: { name: "Nigeria" },
269+
geometry: {
270+
type: "Polygon",
271+
coordinates: [[
272+
[3, 14], [3, 4], [15, 4], [15, 14], [3, 14]
273+
]]
274+
}
275+
},
276+
{
277+
type: "Feature",
278+
properties: { name: "Germany" },
279+
geometry: {
280+
type: "Polygon",
281+
coordinates: [[
282+
[6, 55], [6, 47], [15, 47], [15, 55], [6, 55]
283+
]]
284+
}
285+
},
286+
{
287+
type: "Feature",
288+
properties: { name: "France" },
289+
geometry: {
290+
type: "Polygon",
291+
coordinates: [[
292+
[-5, 51], [-5, 42], [8, 42], [8, 51], [-5, 51]
293+
]]
294+
}
295+
},
296+
{
297+
type: "Feature",
298+
properties: { name: "Spain" },
299+
geometry: {
300+
type: "Polygon",
301+
coordinates: [[
302+
[-10, 44], [-10, 36], [4, 36], [4, 44], [-10, 44]
303+
]]
304+
}
305+
},
306+
{
307+
type: "Feature",
308+
properties: { name: "United Kingdom" },
309+
geometry: {
310+
type: "Polygon",
311+
coordinates: [[
312+
[-8, 61], [-8, 50], [2, 50], [2, 61], [-8, 61]
313+
]]
314+
}
315+
},
316+
{
317+
type: "Feature",
318+
properties: { name: "Italy" },
319+
geometry: {
320+
type: "Polygon",
321+
coordinates: [[
322+
[6, 47], [6, 36], [19, 36], [19, 47], [6, 47]
323+
]]
324+
}
325+
},
326+
{
327+
type: "Feature",
328+
properties: { name: "Turkey" },
329+
geometry: {
330+
type: "Polygon",
331+
coordinates: [[
332+
[26, 42], [26, 36], [45, 36], [45, 42], [26, 42]
333+
]]
334+
}
335+
},
336+
{
337+
type: "Feature",
338+
properties: { name: "Saudi Arabia" },
339+
geometry: {
340+
type: "Polygon",
341+
coordinates: [[
342+
[34, 32], [34, 16], [56, 16], [56, 32], [34, 32]
343+
]]
344+
}
345+
},
346+
{
347+
type: "Feature",
348+
properties: { name: "Iran" },
349+
geometry: {
350+
type: "Polygon",
351+
coordinates: [[
352+
[44, 40], [44, 25], [64, 25], [64, 40], [44, 40]
353+
]]
354+
}
355+
},
356+
{
357+
type: "Feature",
358+
properties: { name: "Kazakhstan" },
359+
geometry: {
360+
type: "Polygon",
361+
coordinates: [[
362+
[46, 56], [46, 40], [87, 40], [87, 56], [46, 56]
363+
]]
364+
}
365+
},
366+
{
367+
type: "Feature",
368+
properties: { name: "Mongolia" },
369+
geometry: {
370+
type: "Polygon",
371+
coordinates: [[
372+
[87, 52], [87, 41], [120, 41], [120, 52], [87, 52]
373+
]]
374+
}
375+
},
376+
{
377+
type: "Feature",
378+
properties: { name: "Japan" },
379+
geometry: {
380+
type: "Polygon",
381+
coordinates: [[
382+
[129, 46], [129, 30], [146, 30], [146, 46], [129, 46]
383+
]]
384+
}
385+
},
386+
{
387+
type: "Feature",
388+
properties: { name: "Indonesia" },
389+
geometry: {
390+
type: "Polygon",
391+
coordinates: [[
392+
[95, 6], [95, -11], [141, -11], [141, 6], [95, 6]
393+
]]
394+
}
395+
},
396+
{
397+
type: "Feature",
398+
properties: { name: "Thailand" },
399+
geometry: {
400+
type: "Polygon",
401+
coordinates: [[
402+
[97, 21], [97, 5], [106, 5], [106, 21], [97, 21]
403+
]]
404+
}
215405
}
216-
// We'll add more countries in the next commit
217406
]
218407
};
219408
};

0 commit comments

Comments
 (0)