@@ -253,15 +253,26 @@ unm49 sortedTerritoryNames. " --> a SortedCollection('Afghanistan' 'Albania' 'Al
253
253
unm49 territoryNames. " --> a Set('Sierra Leone' 'Guadeloupe' 'Niger' 'Jordan' 'Aruba' ... 'Saudi Arabia' 'Austria' 'Vanuatu' 'Denmark' 'Lao People''s Democratic Republic')"
254
254
` ` `
255
255
256
+ Countries could be displayed in a friendly-way using a list selector :
257
+
258
+ ` ` ` smalltalk
259
+ TerritoryUIList open
260
+ title: 'United Nations Countries';
261
+ roots: (TCountryOrganization @ 'UN.M49') sortedTerritories.
262
+ ` ` `
263
+
264
+ { width=50% }
265
+
266
+ \pagebreak
267
+
256
268
# ## Accessing Countries
257
269
258
270
The UN.M49 is the default organization chosen to resolve Country objects using a shortcut with any String matching a country name, for example :
259
271
260
272
` ` ` smalltalk
261
273
'Bulgaria' asTerritorialCountry.
262
274
` ` `
263
- 
264
- _Inspecting Bulgaria as an United Nations country_
275
+ { width=70% }
265
276
266
277
The country resolver can be changed to any of the available country organizations (see _Accessing Country Organizations_), and can be easily done by evaluating :
267
278
@@ -276,8 +287,8 @@ Evaluating the expression again reflects the territorial object retrieved throug
276
287
" Reset to default "
277
288
TCountryOrganization currentOrganization: 'UN.M49'.
278
289
` ` `
279
- 
280
- _Inspecting Bulgaria as an ISO 3166-3 country_
290
+
291
+ { width=70% }
281
292
282
293
If the country is not registered in the selected organization, the resolver will raise an Error exception. For example, selecting the _Council of Arab Economic Unity_ as source organization for countries and then searching for a non-member country :
283
294
@@ -390,6 +401,8 @@ TerritorialOpenGeoCodesCountryCapitals territorialCapitals.
390
401
391
402
Note : Only English names are supported in the current version.
392
403
404
+ \pagebreak
405
+
393
406
# ## Accessing Cities
394
407
395
408
In a perfect world, the following expression would be the most intuitive way to name a city :
@@ -830,9 +843,7 @@ TerritorialFlags currentCountryRepository openCountryFlagMediumNamed: 'mauritani
830
843
TerritorialFlags currentCountryRepository openCountryFlagMediumNamed: 'belize'.
831
844
` ` `
832
845
833
- 
834
-
835
- _Displaying country flags in Pharo_
846
+ 
836
847
837
848
\pagebreak
838
849
@@ -906,8 +917,7 @@ TerritorialMaps currentRepository: TerritorialOSM
906
917
'Paris@FR' asTerritorialCity openMap.
907
918
` ` `
908
919
909
- 
910
- _Paris at zoom level = 9_
920
+ { width=70% }
911
921
912
922
It is possible to change the OSM map provider by setting another OSM class repository :
913
923
@@ -916,8 +926,7 @@ TerritorialMaps currentRepository: TerritorialOSM
916
926
'Paris@FR' asTerritorialCity openMap.
917
927
` ` `
918
928
919
- 
920
- _Paris at zoom level = 13_
929
+ { width=70% }
921
930
922
931
# # GoogleMaps
923
932
@@ -1131,11 +1140,9 @@ The first window presents two choices:
1131
1140
- Create a new territorial composite or single territory.
1132
1141
- Browse already created territories.
1133
1142
1134
- 
1135
- _Territorial Wizard_
1143
+ { width=50% }
1136
1144
1137
- 
1138
- _Territory Viewer_
1145
+ { width=50% }
1139
1146
1140
1147
# ## Browsing Territories
1141
1148
@@ -1145,20 +1152,17 @@ Browsing presents a new viewer window with in-image territories, and a Load butt
1145
1152
1146
1153
Composition of territories is sub-divided in two additional choices. Creating a new composite territory or creating/selecting a new single territory.
1147
1154
1148
- 
1155
+ { width=50% }
1149
1156
1150
1157
Next to selection of a New Territory, the wizard request for a name to identify the new territory :
1151
1158
1152
- 
1159
+ { width=50% }
1153
1160
1154
1161
Finally, a Territory Composer is displayed where territories can be browsed and composed (or selected if a single territory was chosen).
1155
1162
1156
- 
1157
- _Territory Composer for Composite selection_
1158
-
1159
- 
1160
- _Territory Composer for Single territory creation_
1163
+ { width=75% }
1161
1164
1165
+ { width=75% }
1162
1166
1163
1167
\pagebreak
1164
1168
0 commit comments