TdxMapLayers.Items Property
Provides indexed access to stored map layers.
Declaration
property Items[Index: Integer]: TdxMapLayer read; write; default;
Property Value
| Type | Description |
|---|---|
| TdxMapLayer | A map layer. Use the Count property to identify the number of accessible map layers. To access all public API members of a map layer, you need to cast the returned object to the corresponding terminal TdxMapLayer class descendant. Tip You can call the ClassType function or use any other RTTI functionality to identify the actual map layer type. |
Remarks
Map layer indexes in the collection also determine the Z-order (draw order) of corresponding layers. A map layer with the highest index is displayed on top of all other layers.
Tip
The more transparent elements a map layer has, the higher collection index (Z-order) it should have. Otherwise, an opaque layer overlaps all transparent layers beneath it.
For example, we recommend that you display a map item layer with shapes and other markers on top of all other layers.