TileServerOptions

constructor(baseURL: String, uriSchemeAlias: String, sourceTemplate: String, sourceDomainName: String, @Nullable sourceVersionPrefix: String, styleTemplate: String, styleDomainName: String, @Nullable styleVersionPrefix: String, spritesTemplate: String, spritesDomainName: String, @Nullable spritesVersionPrefix: String, glyphsTemplate: String, glyphsDomainName: String, @Nullable glyphsVersionPrefix: String, tileTemplate: String, tileDomainName: String, @Nullable tileVersionPrefix: String, apiKeyParameterName: String, apiKeyRequired: Boolean, defaultStyle: String, defaultStyles: Array<DefaultStyle>)

Construct a new TileServerOptions given string arguments

Parameters

baseURL

tile server base url

uriSchemeAlias

scheme alias such as maplibre://

sourceTemplate

tile source url template

sourceDomainName

tile source domain name

sourceVersionPrefix

tile source version prefix

styleTemplate

style url template

styleDomainName

the name of style domain in canonical url

styleVersionPrefix

version prefix

spritesTemplate

sprites url template

spritesDomainName

the name of the sprites domain in canonical url

spritesVersionPrefix

the sprite version prefix

glyphsTemplate

glyphs url template

glyphsDomainName

the name of the glyphs domain in canonical url

glyphsVersionPrefix

the glyphs version prefix

tileTemplate

tile url template

tileDomainName

the name of the tile domain in canonical url

tileVersionPrefix

the tile version prefix

apiKeyParameterName

the name of api key parameter

apiKeyRequired

indicates if API key is required

defaultStyle

the name of the default style

defaultStyles

the list of default styles