Contact Us 1-800-596-4880

Use Layers in Anypoint Visualizer

When you associate a node with a layer, you create a visual representation of the applications in your network. Use one of the default layers provided by Anypoint Visualizer, or create a custom layer.

The application appears in its assigned layer in every defined view in which it is included. It also appears in the correct layer across all visualization types.

Add a Service to a Layer

Map a node to a layer in the application’s properties file, or using the UI in the Architecture visualization.

Set a Layer with Properties

You can automate adding nodes to a layer by using anypoint.platform.visualizer.layer=<name>, either in the application’s properties file or at deployment time through the Runtime Manager UI or API. Note that this is an application property, not a server property. When you use this property, nodes automatically appear in the specified layer and, if that layer doesn’t exist, it is automatically created. You cannot reassign a node layer using the Anypoint Visualizer UI if you assign it using an application property.

Set a Layer with the Architecture Visualization UI

If a node was not assigned to a layer at deployment time using the Runtime Manager UI or API, by default, the node is not assigned to a layer in Anypoint Visualizer. Use the Anypoint Visualizer UI to:

  • Assign a node to an existing layer or, if the node does not have a layer set via properties, change the assigned layer.

  • Create a new layer.

Assign a Layer to a Node

  1. Within the Architecture visualization, select the application node to add to a layer.
    You can hold the shift key to select multiple nodes to apply layers to all the selected nodes at once.

    The Customization section for the node appears in the Customization tab of the node’s card:

    Select Node
  2. In the Customization section, expand the drop-down list next to Layer as shown in the following image:

    Select Layer
  3. Select the layer you want from the drop-down list.

Result: The node you selected appears within the layer as shown in the following image:

Node in Layer

Create a New Layer

In addition to the default layers provided by Anypoint Visualizer, you can create new layers to customize the view of your application network.

  1. Select the node to add to a new layer.

  2. From the drop-down list in the Customization section, select New Layer.

  3. Enter a name for your layer in the dialog box, then click Create Layer.

Result: The node appears in the new layer. You can add additional nodes to the new layer as necessary.

Delete a Layer

If a layer has no services assigned to it, Anypoint Visualizer deletes the layer automatically:

  • If the layer is a default layer, it disappears from the canvas but is still available in the dropdown.

  • If the layer is a custom layer, it disappears from the canvas and the dropdown.

Anypoint Visualizer also automatically adjusts the network display.

Reorder Layers

In the canvas of the Architecture visualization, use the arrows on the right side of the layer to move it up or down relative to the other layers.