1 | // Array of countries and cities, with children having references to their parents rather than vice-versa. |
---|
2 | // Used with dijit/tree/ObjectStoreModel. |
---|
3 | |
---|
4 | define([ |
---|
5 | { id: "earth", name:"The earth", type:"planet", population: "6 billion"}, |
---|
6 | { id: "AF", name:"Africa", type:"continent", population:"900 million", area: "30,221,532 sq km", |
---|
7 | timezone: "-1 UTC to +4 UTC", parent: "earth"}, |
---|
8 | { id: "EG", name:"Egypt", type:"country", parent: "AF" }, |
---|
9 | { id: "KE", name:"Kenya", type:"country", parent: "AF" }, |
---|
10 | { id: "Nairobi", name:"Nairobi", type:"city", parent: "KE" }, |
---|
11 | { id: "Mombasa", name:"Mombasa", type:"city", parent: "KE" }, |
---|
12 | { id: "SD", name:"Sudan", type:"country", parent: "AF" }, |
---|
13 | { id: "Khartoum", name:"Khartoum", type:"city", parent: "SD" }, |
---|
14 | { id: "AS", name:"Asia", type:"continent", parent: "earth" }, |
---|
15 | { id: "CN", name:"China", type:"country", parent: "AS" }, |
---|
16 | { id: "IN", name:"India", type:"country", parent: "AS" }, |
---|
17 | { id: "RU", name:"Russia", type:"country", parent: "AS" }, |
---|
18 | { id: "MN", name:"Mongolia", type:"country", parent: "AS" }, |
---|
19 | { id: "OC", name:"Oceania", type:"continent", population:"21 million", parent: "earth"}, |
---|
20 | { id: "AU", name:"Australia", type:"country", population:"21 million", parent: "OC"}, |
---|
21 | { id: "EU", name:"Europe", type:"continent", parent: "earth" }, |
---|
22 | { id: "DE", name:"Germany", type:"country", parent: "EU" }, |
---|
23 | { id: "FR", name:"France", type:"country", parent: "EU" }, |
---|
24 | { id: "ES", name:"Spain", type:"country", parent: "EU" }, |
---|
25 | { id: "IT", name:"Italy", type:"country", parent: "EU" }, |
---|
26 | { id: "NA", name:"North America", type:"continent", parent: "earth" }, |
---|
27 | { id: "MX", name:"Mexico", type:"country", population:"108 million", area:"1,972,550 sq km", parent: "NA" }, |
---|
28 | { id: "Mexico City", name:"Mexico City", type:"city", population:"19 million", timezone:"-6 UTC", parent: "MX"}, |
---|
29 | { id: "Guadalajara", name:"Guadalajara", type:"city", population:"4 million", timezone:"-6 UTC", parent: "MX" }, |
---|
30 | { id: "CA", name:"Canada", type:"country", population:"33 million", area:"9,984,670 sq km", parent: "NA" }, |
---|
31 | { id: "Ottawa", name:"Ottawa", type:"city", population:"0.9 million", timezone:"-5 UTC", parent: "CA"}, |
---|
32 | { id: "Toronto", name:"Toronto", type:"city", population:"2.5 million", timezone:"-5 UTC", parent: "CA" }, |
---|
33 | { id: "US", name:"United States of America", type:"country", parent: "NA" }, |
---|
34 | { id: "SA", name:"South America", type:"continent", parent: "earth" }, |
---|
35 | { id: "BR", name:"Brazil", type:"country", population:"186 million", parent: "SA" }, |
---|
36 | { id: "AR", name:"Argentina", type:"country", population:"40 million", parent: "SA" } |
---|
37 | ]); |
---|