Add layers (Blueprints)

Learn how to add and manage layers by using the Blueprint with an example of New York.

In this tutorial, you'll add raster tile layers, 3D object scene layers from ArcGIS Online in a global scene or local scene.

Prerequisites

Before starting this tutorial, you should:

Follow the blueprints tutorial in display the globe (blueprints) or display a specific area (blueprints).

Steps

Create layers collection

  1. In ArcGIS Maps SDK > ArcGIS Map select Get Layers and add it to the graph.

  2. Connect it to the Set Map node.

  3. Drag the ArcGIS Map variable into the Event Graph.

  4. Select Get ArcGIS Map and connect the variable to the Target pin.

  5. Right-click on the Return Value pin and select Promote to variable.

  6. Change the name of the new variable to MapLayers.

This is the final result.

final get collection layers

Add image layers

  1. Search for Create ArcGIS Image Layer and add connect it to the graph.

    create arcgis image layer

  2. Drag the API Key variable into the Event Graph.

  3. Select Get API Key and connect the variable to the API Key pin.

  4. In the Source pin, copy and paste the service URL for transit frequency:

    Use dark colors for code blocksCopy
     
    1
    https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/UrbanObservatory_NYC_TransitFrequency/MapServer
  5. In ArcGIS Maps SDK > ArcGIS Layer Collection select Add and add it to the graph.

  6. Connect it to the Create ArcGIS Image Layer node.

  7. Drag the MapLayers variable into the Event Graph.

  8. Select Get MapLayers and connect the variable to the Target pin.

    This is the result of an Image layer.

    final image layer

  9. Repeat these steps to create another two image layers with the following data.

    Name: industry

    Use dark colors for code blocksCopy
     
    1
    https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/New_York_Industrial/MapServer

    Name: population

    Use dark colors for code blocksCopy
     
    1
    https://tiles.arcgis.com/tiles/4yjifSiIG17X0gW4/arcgis/rest/services/NewYorkCity_PopDensity/MapServer

Add 3D model layers

  1. Search for Create ArcGIS 3DModel Layer and add it to the graph.

  2. Connect it to the Add node.

  3. Drag the API Key variable into the Event Graph.

  4. Select Get API Key and connect the variable to the API Key pin.

  5. In the Source pin, copy and paste the URL for buildings:

    Use dark colors for code blocksCopy
     
    1
    https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_NewYork_17/SceneServer
  6. In ArcGIS Maps SDK > ArcGIS Layer Collection select Add and add it to the graph.

  7. Connect it to the Create ArcGIS 3DModel Layer node.

  8. Drag the MapLayers variable into the Event Graph.

  9. Select Get MapLayers and connect the variable to the Target pin.

    This is the final result of the 3D model layer.

    3D model layers

Add image layers with properties

  1. Search for Create ArcGIS Image Layer with Properties and add it to the graph.

  2. Connect it to the Add node.

  3. Drag the API Key variable into the Event Graph.

  4. Select Get API Key and connect the variable to the API Key pin.

  5. In the Source pin, copy and paste the URL:

    Use dark colors for code blocksCopy
     
    1
    https://tiles.arcgis.com/tiles/4yjifSiIG17X0gW4/arcgis/rest/services/NewYorkCity_PopDensity/MapServer
  6. Name the layer Layer_4.

  7. Set the opacity to 1.

    layer with properties

  8. In ArcGIS Maps SDK > ArcGIS Layer Collection select Add and add it to the graph.

  9. Connect it to the Create ArcGIS Image Layer with Properties node.

  10. Drag the MapLayers variable into the Event Graph.

  11. Select Get MapLayers and connect the variable to the Target pin.

This is the final result of layers.

blueptints layers

What's next

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.