<DOWNLOAD>

Map look definitions

Here you will find specification that determine look of MapSend or MMO maps on the PC screen. Please use MSmapView program to modify the definitions to change the map look. This determine look of the map on the PC screen, not on the GPSR.

1. Predefined SEM types
Appearance of the layer on the map is determined by numbers in the parenthesis in the [GROUP] section of the map.ini file:

[GROUPS]
_______________A_ B__ C___ D__ E___ F__ G
1=World_Cities 3 34 ( 6 ) 35 ( 4 ) 36 ( 6 )
……………………………………

A= number of layers, B,D,F-layer number C,E,G – definitions in some database (discussed below), that determine look of the layers on the PC screen.

The definition numbers are independent for every type of layers: points, lines and areas.

In the map.ini (usually) there is a table showing names of some predefined type, MapSend uses names (!Name!) to show them on the Status Bar when object is pointed by mouse. The table is located in the [SEM_TYPES] section. Numbers in the table are not used by MapSend; absence of the table does not affect look of the map.

[SEM_TYPES]
____name___A_B_ C__D__ E
13= !Park! 2 12 13 12 14
……………………………………………….


A=number of definitions, B,D- type of the object (11-point,12-area (polygon), 13-line (chain)), C and E are number of entries (definitions) in the database that determine look of the layers (similar to C,E,G in the example shown above).

Database is located in [GLOBALOPTIONS], [LABEL_ICONS], [LABEL_FONTS] sections of the map.ini file. [GLOBALOPTIONS] section determines look of the point, line and area objects, [LABEL_FONTS] determines look of the labels (independently for each type of object) and [LABEL_ICONS] determines icons and their look for some line objects (like highways).

2. Point presentation

[GLOBALOPTIONS]______ 0_________ 1___________ N
M_NPOINT_NAME = 7 ( Airport ) ( Town )…………(SomeName)………
______________________0____________________1____________________N
M_NPOINT = 7 i Images\airport.bmp i Images\city_t.bmp……i Images\SomeIcon.bmp

If look of some point layer is defined by N number; it means it will have “SomeName” name (internal name, not shown in the map) and the point will be shown by “SomeIcon.bmp”

[LABEL_FONTS]__________0_________1_______________N
M_NPOINT_NAME = 7 ( Airport ) ( Town )…………(SomeLabelName)…………….

____________________0____________________________ 1___________________________ N
M_NPOINT =7 0 0 0 0 s 255 255 255   255 0 0 0 8 s 255 255 255 255   ;.. 255 0 0 7 s 0 255 0 255

Definition----(Label)-----------------------------------------------------------------

In the definition A B C D s E F G H:
A,B,C – are R,G,B components of the label’s color
D- number of the entry for Font definition (see below)
E,F,G – are R,G,B components of the label’s outline (border) color
H=0 or 255, 0 means there is no outline, 255 means outline
Sometimes short form is used A B C D if there is no outline
-----------------------------------------------------------------------------------------------

Font definitions:
__________________0__________________________ 1__________________________________7
FONT_TBL = 16 (Arial) -11 400 0 0 0    (Arial) -13 700 0 0 0   …… (Arial) -13 700 0 255 0

These Font entries are used by all three types of labels (for point, line or area (polygon)).

Definition----(Fonts)-------------------------------------------------------------------

___A_____ B__ C_ D_ E_ F
(Arial) -13 700 0 0 0

A=Font Name;
B= font height (more convenient font.size in points is connected with this value by relation
Size=-Height*72/PixelsPerInch)
C= 400 or 700 (some characteristic of the font weight; 400 – normal, 700 – bold)
D= 0 or 255, 255 means italic, 0-regular
E=0 or 255, 255 means underlined, 0-regular
F=0 or 255, 255 means strikeout, 0-regular
----------------------------------------------------------------------------------------------
Summary of point presentation:

Point presentation can be determined by 16 parameters. In the above example:

[GROUPS]
SomePointLayer 1 (N)

Point will be shown as “SomeIcon.bmp”; Label will be shown by Red color, with Arial font of –13 height, Bold, no Italic, Underline, no StrikeOut. Label will have Green outline.
Internal names for the point and the label are not used by MapSend.

3. Line presentation

_______________________0_______ 1____________ N
M_DCHAIN_NAME = 36 ( Other ) ( Dam ) ….. ( SomeName )
___________________0___________ 1____________ N
M_DCHAIN = 36   0 0 0 1    99 192 254 1    99 192 254 21

Definition----(Line)-----------------------------------------------------------------

A_B__C__DE
0 0 255 21

A,B,C- RGB components of line’s color.
E=thickness
if E=1 then D can be
0 solid
1 dash
2 dot
3 dash-dot
4 dash-dot-dot

if only one number is used instead of DE, it denotes thickness of the solid line.
------------------------------------------------------------------------------------------------
_______________________0_______ 1_______________ N
M_DCHAIN_NAME = 36 ( Other ) ( Dam )………………. ( SomeName )
___________________0_____________________ 1_________________________________ N
M_DCHAIN = 36   0 0 0 12     0 0 255 10 s 255 255 255 255    …..0 0 255 10 s 255 0 0 255

M_DCHAIN_NAME-internal name of the label
M_DCHAIN determines label appearance and the definition is similar to point’s labels described above.

Labels of the line object can be inserted in the icon. This is typical for freeways and highways. The icons and their appearance are determined in the special section:

[LABEL_ICONS]
M_DCHAIN = 10 18 3 8 21 15 Images\icon_i.bmp 35 3 8 21 15 Images\icon_i.bmp N 5 5 23 12 Images\SomeIcon.bmp

Definition----(Line Icon)--------------------------------------------------------------------

N A B C D Images\SomeIcon.bmp

N is the line definition number

Icon is stretched to fit the width of the label, A,B,C,D determine relative positions of the label and the icon and width of the icon. Say, Label has width L.W, and Icon has I.H and I.W height and width. I.H is not modified by these numbers and always stay constant. (0) denotes original size of the icon.
Initially I.W=I.W(0)+L.W, label located at left-top of the icon.

A labels moves A points to the right; icon expands (if A positive): I.W=I.W+A .
B = D label moves B points to down (positive) or up (negative)
C label position stays constant, I.W=I.W-C; C can be positive (compression) or negative (expansion)
D =B

-----------------------------------------------------------------------------------------------

Summary of line presentation:

Line presentation can be determined by 25 parameters. In the above example:

[GROUPS]
SomeLineLayer 1 (N)

Line will be shown with blue dotted line ; Label will be shown by Blue color, with the 10 font entry. Label will have Red outline. Label will be placed in the SomeIcon.bmp; Label position and the icon width will be determined as discussed above.
Internal names for the Line and the Label are not used by MapSend.

3. Area (polygon) presentation

Labels and Names are similar to Point and Line;

Area definition:


[GLOBALOPTIONS]
_________________________N
M_DAREA = 66 ……… 0 255 0 3 0 0 255 0………………..

Definition----(Area)--------------------------------------------------------------------

A___B__C__D_E___F___G__H
34 59 192 1 99 192 254 2

A,B,C – R,G,B color of the outline (border)
D = thickness of the border
E,F,G –R,G,B color of the fill
H - bits ab - b=1 no area; a=1 no border
-------------------------------------------------------------------------------------------

Summary of area presentation:

Area presentation can be determined by 24 parameters. In the above example:

[GROUPS]
SomeAreaLayer 1 (N)

Area will be shown as a Blue polygon with Green border of the thickness 3. Both fill and border will be shown. Label presentation is the same as for the point and the label Internal names for the Area and the Label are not used by MapSend.

4. BackGround color of the map

Background color of the whole map is defined in the mapsend.ini file (MapSend software) or in the mmoffice.ini file (MMO)

[MAP]
Background_Color=252 250 214

This pale-yellow color shows lands at high zoom level.

5. Multiple entries

In some cases [GROUP] section has multiple entries for 1 layer:

[LAYERS]
-------------------------------
12=High_ways hwy
--------------------------------

[GROUPS]
4=Roads 4 12 ( 14 15 18 57 66 ) 13 ( 40 46 64 ) 14 ( 27 36 ) 15 ( 49 )

In this example layer 12 can be represented by 14, 15, 18, 57 or 66 definitions of the line presentation. Layer 12 consists of roads (highways) of different types, the numbers in parenthesis are references to the Raima database.

6. MapSend and MMO features

6.1 MMO 1.00, MMO1.10, MMO2.00

MMO\MAP\map.ini file contain both [SEM_TYPES] section and sections with all definitions. The only map.ini file is used for all definitions. When MMO creates custom map it also creates new entries in the [SEM_TYPES] section and in [GLOBALOPTIONS], [LABEL_ICONS], [LABEL_FONTS] sections. These new definitions will represent colors, borders, line type as it was at map creation process. These definitions are very limited and are not suitable for complex maps, so better edit or replace definitions after the map was created (manually or using my MSmapV tool).
When custom map is joined with MapSend software, the MMO definitions are replaced with default definitions (zeros type) since MapSend does not have appropriate definitions. That is why, for example, custom map with points (MMO creates new 10 type) will be shown with “airport.bmp” icon in MapSend (default 0 point definition).

6.2 MapSend World Wide basemap.

There are 2 map.ini files: in the a) MSWW\MAP folder and in the b) MSWW\MAP\World folder. SEM_TYPES are shown in the a) map.ini. Both a) and b) map.ini contain the same definitions; curiously enough, look of all area types (countries, ocean, parks, rivers…) depends on a) map.ini content while look of all points and line types depends on b) map.ini. So if you want edit areas, edit a) map.ini, if you want edit lines or points, edit b) map.ini

6.3 MapSend Topo for the USA

Everything is defined in the MMTopo\MAP\map.ini file.