Online Maps
v3
|
Implements work with raster tiles More...
Public Member Functions | |
void | CheckTextureSize (Texture2D texture) |
Checks the size of the tile texture. More... | |
Public Member Functions inherited from OnlineMapsTile | |
OnlineMapsTile (int x, int y, int zoom, OnlineMaps map, bool isMapTile=true) | |
Constructor More... | |
void | Block (object blocker) |
Blocks the tile from disposing. More... | |
void | Dispose () |
Dispose of tile. More... | |
Rect | GetRect () |
Gets rect of the tile. More... | |
bool | InScreen (OnlineMapsVector2d tl, OnlineMapsVector2d br) |
Checks whether the tile at the specified coordinates. More... | |
void | LoadFromWWW (OnlineMapsWWW www) |
Load a tile from a WWW object More... | |
void | MarkError () |
Mark that the tile has an error More... | |
void | MarkLoaded () |
Marks the tile loaded. More... | |
void | SetParent (OnlineMapsTile tile) |
Set parent tile More... | |
void | Unblock (object blocker) |
Remove an object that prevents the tile from disposing. More... | |
Public Attributes | |
bool | labels |
Labels is used in tile? More... | |
string | language |
Language is used in tile? More... | |
Action< OnlineMapsRasterTile > | OnSetColor |
This event occurs when the tile gets colors based on parent colors. More... | |
Texture2D | trafficTexture |
Traffic texture. More... | |
OnlineMapsWWW | trafficWWW |
Instance of the traffic loader. More... | |
Public Attributes inherited from OnlineMapsTile | |
Action< OnlineMapsTile > | OnDisposed |
This event is called when the tile is disposed. More... | |
OnlineMapsVector2d | bottomRight |
The coordinates of the bottom-right corner of the tile. More... | |
bool | cacheChecked |
This flag indicates whether the cache is checked for a tile. More... | |
bool | drawingChanged |
Drawing elements have been changed. Used for drawing as overlay. More... | |
Vector2 | globalPosition |
The coordinates of the center point of the tile. More... | |
bool | hasColors |
Tile loaded or there are parent tile colors More... | |
bool | isMapTile |
Is map tile? More... | |
ulong | key |
The unique tile key. More... | |
Texture2D | overlayBackTexture |
Texture, which is used in the back overlay. More... | |
float | overlayBackAlpha = 1 |
Back overlay transparency (0-1). More... | |
Texture2D | overlayFrontTexture |
Texture, which is used in the front overlay. More... | |
float | overlayFrontAlpha = 1 |
Front overlay transparency (0-1). More... | |
bool | loadedFromResources = false |
The tile texture was loaded from Resources More... | |
OnlineMapsTile | parent |
Reference to parent tile. More... | |
int | remainDownloadsAttempts |
Number of remaining attempts to download a tile More... | |
OnlineMapsTileStatus | status = OnlineMapsTileStatus.none |
Status of tile. More... | |
Texture2D | texture |
Texture of tile. More... | |
OnlineMapsVector2d | topLeft |
The coordinates of the top-left corner of the tile. More... | |
bool | used = true |
Tile used by map More... | |
OnlineMapsWWW | www |
Instance of the texture loader. More... | |
readonly int | x |
Tile X. More... | |
readonly int | y |
Tile Y. More... | |
readonly int | zoom |
Tile zoom. More... | |
Static Public Attributes | |
static Color32[] | defaultColors |
Buffer default colors. More... | |
static Texture2D | emptyColorTexture |
The texture that is used until the tile is loaded. More... | |
Static Public Attributes inherited from OnlineMapsTile | |
static Action | OnAllTilesLoaded |
The event that occurs when all tiles are loaded. More... | |
static Func< OnlineMapsTile, string > | OnGetResourcesPath |
The event, which allows you to control the path of tile in Resources. More... | |
static Func< OnlineMapsTile, string > | OnGetStreamingAssetsPath |
The event, which allows you to control the path of tile in Streaming Assets. More... | |
static Func< OnlineMapsTile, string, string > | OnReplaceURLToken |
The event which allows to intercept the replacement tokens in the url. Return the value, or null - if you do not want to modify the value. More... | |
static Func< OnlineMapsTile, string, string > | OnReplaceTrafficURLToken |
The event which allows to intercept the replacement tokens in the traffic url. Return the value, or null - if you do not want to modify the value. More... | |
static Action< OnlineMapsTile > | OnTileDownloaded |
The event, which occurs after a successful download of the tile. More... | |
static Action< OnlineMapsTile > | OnTileError |
The event, which occurs when a download error is occurred. More... | |
static Action< OnlineMapsTile > | OnTrafficDownloaded |
The event, which occurs after a successful download of the traffic texture. More... | |
static float | tryAgainAfterSec = 10 |
Try again in X seconds if a download error occurred. Use 0 to repeat immediately, or -1 to not repeat at all. More... | |
static int | countDownloadsAttempts = 3 |
Number of attempts to download a tile More... | |
Properties | |
Color32[] | colors [get, set] |
Array of colors of the tile. More... | |
OnlineMapsTrafficProvider | trafficProvider [get, set] |
Provider of the traffic textures More... | |
string | trafficURL [get, set] |
URL of the traffic texture More... | |
Properties inherited from OnlineMapsTile | |
object? | this[string key] [get, set] |
Gets / sets custom fields value by key More... | |
Dictionary< string, object > | customFields [get] |
Gets customFields dictionary More... | |
string | resourcesPath [get] |
Path in Resources, from where the tile will be loaded. More... | |
string | streamingAssetsPath [get] |
Path in Streaming Assets, from where the tile will be loaded. More... | |
bool | isBlocked [get] |
The tile is blocked? More... | |
abstract string | url [get] |
URL from which will be downloaded texture. More... | |
Implements work with raster tiles
void OnlineMapsRasterTile.CheckTextureSize | ( | Texture2D | texture | ) |
Checks the size of the tile texture.
texture | Tile texture |
|
static |
Buffer default colors.
|
static |
The texture that is used until the tile is loaded.
bool OnlineMapsRasterTile.labels |
Labels is used in tile?
string OnlineMapsRasterTile.language |
Language is used in tile?
Action<OnlineMapsRasterTile> OnlineMapsRasterTile.OnSetColor |
This event occurs when the tile gets colors based on parent colors.
Texture2D OnlineMapsRasterTile.trafficTexture |
Traffic texture.
OnlineMapsWWW OnlineMapsRasterTile.trafficWWW |
Instance of the traffic loader.
|
getset |
Array of colors of the tile.
|
getset |
Provider of the traffic textures
|
getset |
URL of the traffic texture