287 std::unique_ptr<Impl> impl_;
Holds values for tile server options.
const std::string & glyphsTemplate() const
Gets the previously set (or default) glyphs template.
TileServerOptions & withSpritesTemplate(std::string spritesTemplate, std::string domainName, std::optional< std::string > versionPrefix)
Sets the template for sprites.
TileServerOptions & withUriSchemeAlias(std::string alias)
Sets the scheme alias for the tile server. For example maptiler:// for MapTiler.
static TileServerOptions MapTilerConfiguration()
Get the tile server options configured for MapTiler.
const std::optional< std::string > & spritesVersionPrefix() const
Gets the previously set (or default) version prefix.
const std::string & styleDomainName() const
Gets the previously set (or default) style domain name.
const std::string & styleTemplate() const
Gets the previously set (or default) style template.
static TileServerOptions DefaultConfiguration()
Get the default configuration.
static TileServerOptions MapboxConfiguration()
Get the tile server options configured for Mapbox.
TileServerOptions & withSourceTemplate(std::string sourceTemplate, std::string domainName, std::optional< std::string > versionPrefix)
Sets the template for sources.
const std::optional< std::string > & tileVersionPrefix() const
Gets the previously set (or default) version prefix.
const std::string & tileDomainName() const
Gets the previously set (or default) tile domain name.
TileServerOptions & operator=(TileServerOptions &&options) noexcept
const std::string & uriSchemeAlias() const
Gets the previously set (or default) tile server URI alias.
TileServerOptions & withDefaultStyle(std::string defaultStyle)
Sets the default style by name. The style name must exists in defaultStyles collection.
TileServerOptions()
Constructs a TileServerOptions object with default values.
const std::string & baseURL() const
Gets the previously set (or default) API base URL.
const std::optional< std::string > & sourceVersionPrefix() const
Gets the previously set (or default) version prefix.
TileServerOptions & withStyleTemplate(std::string styleTemplate, std::string domainName, std::optional< std::string > versionPrefix)
Sets the template for styles.
const std::string & defaultStyle() const
Get the default style name.
TileServerOptions(const TileServerOptions &)
const std::string & spritesTemplate() const
Gets the previously set (or default) sprites template.
const std::string & tileTemplate() const
Gets the previously set (or default) tile template.
TileServerOptions & withBaseURL(std::string baseURL)
Sets the API base URL.
const std::string & spritesDomainName() const
Gets the previously set (or default) sprites domain name.
const std::optional< std::string > & glyphsVersionPrefix() const
Gets the previously set (or default) version prefix.
const std::string & sourceDomainName() const
Gets the previously set (or default) source domain name.
bool requiresApiKey() const
Whether the tile server requires API key.
const std::string & sourceTemplate() const
Gets the previously set (or default) source template.
TileServerOptions clone() const
const std::optional< std::string > & styleVersionPrefix() const
Gets the previously set (or default) version prefix.
static TileServerOptions MapLibreConfiguration()
Get the tile server options configured for MapLibre.
const std::string & glyphsDomainName() const
Gets the previously set (or default) glyphs domain name.
TileServerOptions & setRequiresApiKey(bool apiKeyRequired)
TileServerOptions & withApiKeyParameterName(std::string apiKeyParameterName)
Sets the access token parameter name.
TileServerOptions & withGlyphsTemplate(std::string glyphsTemplate, std::string domainName, std::optional< std::string > versionPrefix)
Sets the template for glyphs.
TileServerOptions & withDefaultStyles(std::vector< mbgl::util::DefaultStyle > styles)
Sets the collection default styles.
const std::vector< mbgl::util::DefaultStyle > defaultStyles() const
Gets the default styles.
TileServerOptions & withTileTemplate(std::string tileTemplate, std::string domainName, std::optional< std::string > versionPrefix)
Sets the template for tiles.
const std::string & apiKeyParameterName() const
Gets the previously set (or default) apiKeyParameterName.
TileServerOptions(TileServerOptions &&options) noexcept
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)