Tile System API
advanced scriptingWorld Map Globe Edition · Scripting Support (C#)
WorldMapGlobe (namespace WPM). Access via WorldMapGlobe.instance.
Tile System Properties
The tile system overlays map tiles from online providers (OpenStreetMap, Bing Maps, etc.) onto the globe surface.
bool showTiles { get; set; }Enable or disable the tile system.
bool tileTransparentLayer { get; set; }Blend tiles with the underlying globe texture.
Color tileBackgroundColor { get; set; }Background color for tiles that haven't loaded yet.
float tileMaxAlpha { get; set; }Maximum tile transparency (0-1).
float tileFadeDuration { get; set; }Tile fade-in animation duration (0-2 seconds).
Download Settings
int tileDownloadTimeout { get; set; }Download timeout in seconds.
int tileMaxConcurrentDownloads { get; set; }Maximum parallel tile downloads.
int tileMaxTileLoadsPerFrame { get; set; }Maximum tiles to process per frame.
bool tileUseSecureConnection { get; set; }Use HTTPS for tile downloads.
Caching
bool tileEnableLocalCache { get; set; }Cache downloaded tiles on disk.
long tileMaxLocalCacheSize { get; set; }Maximum local cache size in megabytes.
Offline Tiles
bool tileEnableOfflineTiles { get; set; }Enable loading tiles from a local source.
OFFLINE_TILES_SOURCE_TYPE tileOfflineTilesSourceType { get; set; }Source type for offline tiles (Resources, StreamingAssets, etc.).
string tileOfflineTilesPath { get; set; }Path to offline tile files.
bool tileOfflineTilesOnly { get; set; }Use only offline tiles (no internet downloads).
Advanced
bool tilePreciseRotation { get; set; }Switch to camera-based rotation at high zoom levels for better tile alignment.
int tilePreciseRotationZoomLevel { get; set; }Zoom level threshold for precise rotation mode.
bool tilePreloadTiles { get; set; }Preload all visible tiles on startup.
bool tilesUnloadInactiveTiles { get; set; }Unload tiles that are no longer visible to save memory.
bool tilesShowDebugInfo { get; set; }Display debug information on tiles.
bool tileDebugErrors { get; set; }Log tile download errors to the console.
Tile Server Methods
TILE_SERVER GetTileServer()Returns the current tile server.
void SetTileServer(TILE_SERVER server)Sets the tile server (OpenStreetMap, Bing, etc.).
string GetTileServerApiKey(TILE_SERVER server)Returns the API key for a tile server.
void SetTileServerApiKey(TILE_SERVER server, string apiKey)Sets the API key for a tile server (required for some providers like Bing Maps).
string GetTileServerCopyrightNotice(TILE_SERVER server)Returns the copyright notice for the tile provider.
Suggest an improvement
Help us improve this documentation page.