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