LuciadCPillar 2024.0.02
luciad::MapAttributions Class Referencefinal

A class from which the attributions of a map can be retrieved. More...

#include <luciad/maps/MapAttributions.h>

Public Member Functions

const std::vector< DataAttribution > & getAllAttributions () const
 Returns the attributions from all visible layers that provide attribution. More...
 
std::optional< DataAttributiongetAttribution (LayerId layerId) const
 Returns the attribution from a layer. More...
 
const std::vector< LayerId > & getAttributionLayerIds () const
 Returns the IDs of all visible layers on this map that provide attribution. More...
 

Detailed Description

A class from which the attributions of a map can be retrieved.

Since
2024.0

Member Function Documentation

◆ getAllAttributions()

const std::vector< DataAttribution > & luciad::MapAttributions::getAllAttributions ( ) const

Returns the attributions from all visible layers that provide attribution.

Returns
the attributions from all visible layers that provide attribution.

◆ getAttribution()

std::optional< DataAttribution > luciad::MapAttributions::getAttribution ( LayerId  layerId) const

Returns the attribution from a layer.

Returns std::nullopt if the layer is not on this map, is invisible, or provides no attribution.

Returns
the attribution of the layer.

◆ getAttributionLayerIds()

const std::vector< LayerId > & luciad::MapAttributions::getAttributionLayerIds ( ) const

Returns the IDs of all visible layers on this map that provide attribution.

Returns
the layer IDs.