![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
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 |
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.
index | The legend URL to query - the user can find the range of valid values using the numLegendURLs function |
format | Pointee will be set to format (MIME type) of the legend image. |
minScaleDenominator | Pointee 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). |
maxScaleDenominator | Pointee 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). |
href | Pointee will be set to point to the URL of the legend image. |
width | Pointee 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). |
height | Pointee 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.
const char * TSLWMTSServiceStyle::identifier | ( | ) | const |
The identifier of this style.
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.
int TSLWMTSServiceStyle::numLegendURLs | ( | ) | const |
The number of legend URLs defined by the service for this style.