The result of a layer lookup.

interface LayerLookupResult {
    layer?: any;
    sublayer?: any;
    type: "invalid" | "layer" | "sublayer";
}

Properties

Properties

layer?: any

The layer found in the map.

sublayer?: any

The sublayer found in the map.

type: "invalid" | "layer" | "sublayer"

type 'invalid' if the layerIdPath is invalid. type 'layer' if the layerIdPath has pointed to a layer, but layer can still be undefined. type 'sublayer' if the layerIdPath has pointed to a sublayer, but sublayer can still be undefined.