Purpose
Returns information about a specific individual thematic layer in a map. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
IndividualThemeInfo ( map_window_id, thematic_layer_id, attribute )
map_window_id
is a Map window identifier.
thematic_layer_id
is a SmallInt
that identifies an individual thematic layer in a Map.
attribute
is a SmallInt
code indicating the type of information to return; see table below.
Return Value
Depends on the attribute
parameter.
Description
Theattribute
parameter can be any value from the table below.
Attribute code | ID | IndividualThemeInfo() returns |
---|---|---|
INDIVTHEME_INFO_ITEMS_COUNT | 1 | SmallInt result, representing the count of items in the theme (excluding All others range). |
INDIVTHEME_INFO_VARY_STYLE | 2 | SmallInt result, representing how styles are applied. Three values are possible.INDIVTHEME_INFO_VARY_BY_ALL(0) All attribute of a style are used. INDIVTHEME_INFO_VARY_BY_COLOR(1) Only color of style is used. INDIVTHEME_INFO_VARY_BY_SIZE(2) Only size of style is used. |
INDIVTHEME_INFO_REPLACE_STYLE | 3 | Logical result (T or F) whether individual theme style replaces the underlying reference layer's object style or not. |
INDIVTHEME_OTHERS_INFO_LINE | 4 | Line style clause used for displaying objects that belong to All others item. If the theme is not a line based theme, a default line style will be returned using the color of the predominant geometry (regions or points) all other item style. |
INDIVTHEME_OTHERS_INFO_PEN | 5 | Pen style clause used for displaying border of objects that belong to All others item. If the theme is not a region based theme, a default pen will be returned: Pen(1, 2, 0). |
INDIVTHEME_OTHERS_INFO_BRUSH | 6 | Brush style clause used for displaying objects that belong to All others item. If the theme is not a region based theme, a default brush will be returned using the color of the predominant geometry (lines or points) ‘all others’ item style. |
INDIVTHEME_OTHERS_INFO_SYMBOL | 7 | Symbol style clause used for displaying objects that belong to All others item. If the theme is not a point based theme, a default style will be returned using the the color of the predominant geometry (regions or lines) all other range style. |
See Also: