|
CartoType API
|
#include <cartotype_style_sheet.h>
Public Member Functions | |
| CT_IMPORT void | EnableLayer (const MString &aLayerName) |
| CT_IMPORT void | EnableLayer (const char *aLayerName) |
| CT_IMPORT TResult | DisableLayer (const MString &aLayerName) |
| CT_IMPORT TResult | DisableLayer (const char *aLayerName) |
| CT_IMPORT TResult | AddConditionToLayer (const MString &aLayerName, const MString &aCondition) |
| CT_IMPORT TResult | AddConditionToLayer (const char *aLayerName, const char *aCondition) |
Public Attributes | |
| CMapDataBase * | iAuxDataBase |
| CPointerArray< CLayerParam > | iLayerParam |
| CPointerArray< CLayerStyle > | iCustomStyle |
| CPointerArray< CIcon > | iCustomIconList |
| bool | iDrawMapObjects |
| bool | iDrawLabels |
| MObjectStyleOverride * | iObjectStyleOverride |
Optional advanced parameters for controlling map drawing, including objects to be highlighted, layers to be omitted, custom layer styles, custom icons, and a custom object styles.
| CT_EXPORT TResult CMapDrawParam::AddConditionToLayer | ( | const MString & | aLayerName, |
| const MString & | aCondition | ||
| ) |
Add a condition, encoded as a string, to a named layer.
| CT_EXPORT TResult CMapDrawParam::AddConditionToLayer | ( | const char * | aLayerName, |
| const char * | aCondition | ||
| ) |
Add a condition, encoded as a string, to a named layer.
Disable a named layer. If the layer is already disabled this function has no effect.
| CT_EXPORT TResult CMapDrawParam::DisableLayer | ( | const char * | aLayerName | ) |
Disable a named layer. If the layer is already disabled this function has no effect.
| CT_EXPORT void CMapDrawParam::EnableLayer | ( | const MString & | aLayerName | ) |
Enable a named layer. If the layer is already enabled this function has no effect.
| CT_EXPORT void CMapDrawParam::EnableLayer | ( | const char * | aLayerName | ) |
Enable a named layer. If the layer is already enabled this function has no effect.
If non-null, the auxiliary database, containing objects to be highlighted, pushpins, etc.
Custom icons. Icons found here are used in preference over icons in the style sheet.
Custom styles. Styles found here are used in preference to those in the style sheet. To override the style for layer "my-layer", create a style, set its iName member to "my-layer", and add it to the iCustomStyle array using CPointerArray::Append. You can create a style similar to a style defined in the style sheet by copying the style in the style sheet using CMap::CopyLayerStyle, then modifying the returned style.
The custom style refers to the current scale, therefore it needs to be modified or recreated every time the scale changes.
True if labels are to be drawn.
True if map objects are to be drawn. Making this false allows labels only to be drawn so that they can be used as an overlay.
Parameters controlling which objects are drawn in a layer.
If non-null, iObjectStyleOverride->ObjectStyle is called for every object just before it is drawn, allowing the style of an object to be set according to its ID or attributes.
1.7.5.1