The description file is needed and its file extension is .kgm
. It should begin with <map>
and end with </map>
.
Inside of those tags there should be:
<mapFile>
and </mapFile>
: the name of the file (without any path) containing the map image, for example, “europe.png”.
<name>
and </name>
: the name of map, for example, “Europe”.
A <division>
and </division>
for each division in the map.
Each division has these tags:
<name>
and </name>
: the name of the division, for example, “Albania”.
<capital>
and </capital>
: the name of the capital of the division, for example, “Tirana”.
<ignore>
and </ignore>
: can be set to yes
, allowClickMode
and no
. If this tag is set to yes
then the division will be ignored when asking for divisions in that map. It is then as if this division does not exist in KGeography quiz modes. If this tag is set to allowClickMode
then KGeography will ask for the division in the mode but not in other quiz modes. Setting this tag to no
means the division will appear in all modes (browse and quizzes). This tag is optional and when there is no <ignore>
tag that means as it is set to no
. For example “Algeria” has this tag set to yes
in the “Europe” map which means that “Algeria” will not be part of any quiz in the “Europe” map.
<flag>
and </flag>
: the file (without any path) containing the flag of the division, for example, “albania.png”. This tag is optional. Not needed for the divisions whose <ignore>
tag is set to yes
.
<color>
and </color>
: the color the division has in the map.
The color is defined using three tags:
<red>
and </red>
: red component of the color. Valid values are between 0 and 255.
<green>
and </green>
: green component of the color. Valid values are between 0 and 255.
<blue>
and </blue>
: blue component of the color. Valid values are between 0 and 255.
It is convenient to create 2 or 3 false divisions like “Water”, “Frontier” and “Coast” and set them with the <ignore>
tag set to yes
.
All names (capitals and divisions) must be in English.
Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team