Main Content

getLayer

Return individual layers from multilayer map

Description

mapLayer = getLayer(map,layerName) returns the individual map layer, specified by the layer name layerName. For a list of all layer names, see the LayerNames property of the multiLayerMap object map.

.

Input Arguments

collapse all

Multilayer map, specified as a multiLayerMap object.

Name of individual map layer, specified as a string scalar or character vector.

Data Types: char | string

Output Arguments

collapse all

Individual map layer, returned as a binaryOccupancyMap, occupancyMap, or mapLayer object as a handle. For more information, see Handle Object Behavior.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2021a