Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsProvider.MapType Class Reference

Class of map type. More...

Public Member Functions

 MapType (string title)
 Constructor.
 
 MapType (string id, string title)
 Constructor.
 
string GetURL (OnlineMapsTile tile)
 Gets the URL to download the tile texture.
 

Public Attributes

readonly string id
 ID of map type.
 
readonly string title
 Human-readable map type title.
 
OnlineMapsProvider provider
 Reference to provider instance.
 
int index
 Index of map type.
 
bool isCustom
 Indicates that this is an custom provider.
 

Properties

string ext [get, set]
 Extension. Token {ext}, that is being replaced in the URL.
 
bool hasLanguage [get, set]
 Indicates that the map type supports multilanguage.
 
bool hasLabels [get, set]
 Indicates that the provider supports a map with labels.
 
bool labelsEnabled [get, set]
 Indicates that the label is always enabled.
 
string propWithLabels [get, set]
 Property. Token {prop} when label enabled, that is being replaced in the URL.
 
string propWithoutLabels [get, set]
 Property. Token {prop} when label disabled, that is being replaced in the URL.
 
string prop2 [get, set]
 Property. Token {prop2}, that is being replaced in the URL.
 
string variant [set]
 Variant. Token {variant}, that is being replaced in the URL.
 
string variantWithLabels [get, set]
 Variant. Token {variant} when label enabled, that is being replaced in the URL.
 
string variantWithoutLabels [get, set]
 Variant. Token {variant} when label disabled, that is being replaced in the URL.
 
string urlWithLabels [get, set]
 Gets / sets the URL pattern of tiles with labels.
 
string urlWithoutLabels [get, set]
 Gets / sets the URL pattern of tiles without labels.
 
bool useHTTP [get, set]
 Indicates that the map type uses HTTP.
 
string this[string token] [get, set]
 Gets or sets the value of the extra field.
 

Detailed Description

Class of map type.

Constructor & Destructor Documentation

◆ MapType() [1/2]

OnlineMapsProvider.MapType.MapType ( string title)

Constructor.

Parameters
titleHuman-readable map type title.

◆ MapType() [2/2]

OnlineMapsProvider.MapType.MapType ( string id,
string title )

Constructor.

Parameters
idID of map type.
titleHuman-readable map type title.

Member Function Documentation

◆ GetURL()

string OnlineMapsProvider.MapType.GetURL ( OnlineMapsTile tile)

Gets the URL to download the tile texture.

Parameters
tileInstance of tile
Returns
URL to tile texture

Property Documentation

◆ this[string token]

string OnlineMapsProvider.MapType.this[string token]
getset

Gets or sets the value of the extra field.

Parameters
tokenToken (ID) of the extra field.