MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLWMTSServiceStyle Class Reference

Detailed Description

This class represents a layer's style in the WMTS service metadata. It is not user-creatable but instead can either be retrieved from a TSLWMTSData Layer, that has a service loaded, or is provided by most of the callbacks on the TSLWMTSServiceSettingsCallbacks abstract class.

To set which style to use, call TSLWMTSServiceLayer::setStyleValue, with the style's identifier as the argument.

Public Member Functions

bool getLegendURLAt (int index, const char **format, const double **minScaleDenominator, const double **maxScaleDenominator, const char **href, const unsigned int **width, const unsigned int **height) const
 
const char * identifier () const
 
const bool * isDefault () const
 
int numLegendURLs () const
 

Member Function Documentation

◆ getLegendURLAt()

bool TSLWMTSServiceStyle::getLegendURLAt ( int index,
const char ** format,
const double ** minScaleDenominator,
const double ** maxScaleDenominator,
const char ** href,
const unsigned int ** width,
const unsigned int ** height ) const

The Nth legend URL defined by the service for this style.

Parameters
indexThe legend URL to query - the user can find the range of valid values using the numLegendURLs function
formatPointee will be set to format (MIME type) of the legend image.
minScaleDenominatorPointee will be set to point to the smallest scale denominator that this legend image is valid for (or will be set to NULL if setting is not present in capabilities).
maxScaleDenominatorPointee will be set to point to the largest scale denominator that this legend image is valid for (or will be set to NULL if setting is not present in capabilities).
hrefPointee will be set to point to the URL of the legend image.
widthPointee will be set to point to width of the legend image in pixels (or will be set to NULL if setting is not present in capabilities).
heightPointee will be set to point to height of the legend image in pixels (or will be set to NULL if setting is not present in capabilities).

On success, this method will return the Nth value. On failure, for instance due to the index being out of range, then NULL will be returned.

◆ identifier()

const char * TSLWMTSServiceStyle::identifier ( ) const

The identifier of this style.

◆ isDefault()

const bool * TSLWMTSServiceStyle::isDefault ( ) const

Whether this style should be used by default. Returns NULL if setting is not present in capabilities, else returns pointer to the value.

◆ numLegendURLs()

int TSLWMTSServiceStyle::numLegendURLs ( ) const

The number of legend URLs defined by the service for this style.