Skip to main content

TdxCustomMapControl.Layers Property

Provides access to a collection of map layers defined within the map control.

Declaration

property Layers: TdxMapLayers read; write;

Property Value

Type
TdxMapLayers

Remarks

Refer to the TdxMapLayers class description for information on available collection management capabilities. At design time, the Layers property provides the collection editor, which offers similar capabilities. To invoke the collection editor, do one of the following:

  • Switch to the Object Inspector and click the ellipsis button next to the Layers property;

  • Double-click the Map Control component;

  • Click “Layers Editor…” in the component’s context menu.

In the collection editor, click the down arrow button next to the Add button and select the map layer type to be appended to the collection from the drop-down list. Clicking the Add button creates an image tile layer.

Note

If you need to add, reorder, or remove several layers simultaneously, enclose the code that performs these modifications within BeginUpdate/EndUpdate method blocks to improve performance.

See Also