]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('KitchenSink.data.GeoData', {\r |
2 | requires: [\r | |
3 | 'KitchenSink.data.Init'\r | |
4 | ]\r | |
5 | }, function() {\r | |
6 | Ext.ux.ajax.SimManager.register({\r | |
7 | '/KitchenSink/GeoData': {\r | |
8 | type: 'json',\r | |
9 | data: {\r | |
10 | children: [{\r | |
11 | mtype: 'Territory',\r | |
12 | name: 'North America',\r | |
13 | children :[{\r | |
14 | mtype: 'Country',\r | |
15 | name: 'USA',\r | |
16 | children: [{\r | |
17 | mtype: 'City',\r | |
18 | name: 'Redwood City',\r | |
19 | leaf: true\r | |
20 | }, {\r | |
21 | mtype: 'City',\r | |
22 | name: 'Frederick, MD',\r | |
23 | leaf: true\r | |
24 | }]\r | |
25 | }, {\r | |
26 | mtype: 'Country',\r | |
27 | name: 'Canada',\r | |
28 | children: [{\r | |
29 | mtype: 'City',\r | |
30 | name: 'Vancouver',\r | |
31 | leaf: true\r | |
32 | }, {\r | |
33 | mtype: 'City',\r | |
34 | name: 'Toronto',\r | |
35 | leaf: true\r | |
36 | }]\r | |
37 | }, {\r | |
38 | mtype: 'Country',\r | |
39 | name: 'Mexico',\r | |
40 | children: [{\r | |
41 | mtype: 'City',\r | |
42 | name: 'Mexico City',\r | |
43 | leaf: true\r | |
44 | }, {\r | |
45 | mtype: 'City',\r | |
46 | name: 'Chihuahua',\r | |
47 | leaf: true\r | |
48 | }]\r | |
49 | }]\r | |
50 | }, {\r | |
51 | mtype: 'Territory',\r | |
52 | name: 'Europe, ME, Africa',\r | |
53 | children :[{\r | |
54 | mtype: 'Country',\r | |
55 | name: 'England',\r | |
56 | children: [{\r | |
57 | mtype: 'City',\r | |
58 | name: 'Nottingham',\r | |
59 | leaf: true\r | |
60 | }, {\r | |
61 | mtype: 'City',\r | |
62 | name: 'London',\r | |
63 | leaf: true\r | |
64 | }]\r | |
65 | }, {\r | |
66 | mtype: 'Country',\r | |
67 | name: 'Netherlands',\r | |
68 | children: [{\r | |
69 | mtype: 'City',\r | |
70 | name: 'Amsterdam',\r | |
71 | leaf: true\r | |
72 | }, {\r | |
73 | mtype: 'City',\r | |
74 | name: 'Haaksbergen',\r | |
75 | leaf: true\r | |
76 | }]\r | |
77 | }, {\r | |
78 | mtype: 'Country',\r | |
79 | name: 'Italy',\r | |
80 | children: [{\r | |
81 | mtype: 'City',\r | |
82 | name: 'Ferrara',\r | |
83 | leaf: true\r | |
84 | }, {\r | |
85 | mtype: 'City',\r | |
86 | name: 'Milan',\r | |
87 | leaf: true\r | |
88 | }]\r | |
89 | }, {\r | |
90 | mtype: 'Country',\r | |
91 | name: 'Kenya',\r | |
92 | children: [{\r | |
93 | mtype: 'City',\r | |
94 | name: 'Kampala',\r | |
95 | leaf: true\r | |
96 | }]\r | |
97 | }, {\r | |
98 | mtype: 'Country',\r | |
99 | name: 'Croatia',\r | |
100 | children: [{\r | |
101 | mtype: 'City',\r | |
102 | name: 'Split',\r | |
103 | leaf: true\r | |
104 | }, {\r | |
105 | mtype: 'City',\r | |
106 | name: 'Dubrovnik',\r | |
107 | leaf: true\r | |
108 | }]\r | |
109 | }]\r | |
110 | }, {\r | |
111 | mtype: 'Territory',\r | |
112 | name: 'South America, Caribbean',\r | |
113 | children :[{\r | |
114 | mtype: 'Country',\r | |
115 | name: 'Brazil',\r | |
116 | children: [{\r | |
117 | mtype: 'City',\r | |
118 | name: 'Rio de Janeiro',\r | |
119 | leaf: true\r | |
120 | }, {\r | |
121 | mtype: 'City',\r | |
122 | name: 'Brasilia',\r | |
123 | leaf: true\r | |
124 | }]\r | |
125 | }, {\r | |
126 | mtype: 'Country',\r | |
127 | name: 'Argentina',\r | |
128 | children: [{\r | |
129 | mtype: 'City',\r | |
130 | name: 'Buenos Aires',\r | |
131 | leaf: true\r | |
132 | }]\r | |
133 | }, {\r | |
134 | mtype: 'Country',\r | |
135 | name: 'Chile',\r | |
136 | children: [{\r | |
137 | mtype: 'City',\r | |
138 | name: 'Santiago',\r | |
139 | leaf: true\r | |
140 | }]\r | |
141 | }]\r | |
142 | }, {\r | |
143 | mtype: 'Territory',\r | |
144 | name: 'Central and South Asia',\r | |
145 | children :[{\r | |
146 | mtype: 'Country',\r | |
147 | name: 'Russian Federation',\r | |
148 | children: [{\r | |
149 | mtype: 'City',\r | |
150 | name: 'Moscow',\r | |
151 | leaf: true\r | |
152 | }, {\r | |
153 | mtype: 'City',\r | |
154 | name: 'Yekaterinburg',\r | |
155 | leaf: true\r | |
156 | }]\r | |
157 | }, {\r | |
158 | mtype: 'Country',\r | |
159 | name: 'India',\r | |
160 | children: [{\r | |
161 | mtype: 'City',\r | |
162 | name: 'Mumbai',\r | |
163 | leaf: true\r | |
164 | }, {\r | |
165 | mtype: 'City',\r | |
166 | name: 'Bangalore',\r | |
167 | leaf: true\r | |
168 | }]\r | |
169 | }, {\r | |
170 | mtype: 'Country',\r | |
171 | name: 'Kazakhstan',\r | |
172 | children: [{\r | |
173 | mtype: 'City',\r | |
174 | name: 'Astana',\r | |
175 | leaf: true\r | |
176 | }]\r | |
177 | }, {\r | |
178 | mtype: 'Country',\r | |
179 | name: 'Turkmenistan',\r | |
180 | children: [{\r | |
181 | mtype: 'City',\r | |
182 | name: 'Ashgabat',\r | |
183 | leaf: true\r | |
184 | }]\r | |
185 | }]\r | |
186 | }, {\r | |
187 | mtype: 'Territory',\r | |
188 | name: 'East Asia and Pacific',\r | |
189 | children :[{\r | |
190 | mtype: 'Country',\r | |
191 | name: 'Australia',\r | |
192 | children: [{\r | |
193 | mtype: 'City',\r | |
194 | name: 'Sydney',\r | |
195 | leaf: true\r | |
196 | }, {\r | |
197 | mtype: 'City',\r | |
198 | name: 'Canberra',\r | |
199 | leaf: true\r | |
200 | }]\r | |
201 | }, {\r | |
202 | mtype: 'Country',\r | |
203 | name: 'China',\r | |
204 | children: [{\r | |
205 | mtype: 'City',\r | |
206 | name: 'Beijing',\r | |
207 | leaf: true\r | |
208 | }, {\r | |
209 | mtype: 'City',\r | |
210 | name: 'Chengdu',\r | |
211 | leaf: true\r | |
212 | }]\r | |
213 | }, {\r | |
214 | mtype: 'Country',\r | |
215 | name: 'Japan',\r | |
216 | children: [{\r | |
217 | mtype: 'City',\r | |
218 | name: 'Tokyo',\r | |
219 | leaf: true\r | |
220 | }, {\r | |
221 | mtype: 'City',\r | |
222 | name: 'Osaka',\r | |
223 | leaf: true\r | |
224 | }]\r | |
225 | }]\r | |
226 | }]\r | |
227 | }\r | |
228 | }\r | |
229 | });\r | |
230 | });\r |