public virtual Texture GetTexture(DrawArgs drawArgs, GeographicBoundingBox geoBox, int level) { ImageTileInfo info = GetImageTileInfo(geoBox, level); if (File.Exists(info.ImagePath)) { return(ImageHelper.LoadTexture(drawArgs.device, info.ImagePath, this.m_TransparentColor)); } return(null); }
public virtual GeoSpatialDownloadRequest RequestTexture(DrawArgs drawArgs, GeographicBoundingBox geoBox, int level) { ImageTileInfo info = GetImageTileInfo(geoBox, level); GeoSpatialDownloadRequest request = GetDownloadRequest(geoBox, info); if (!request.IsComplete) { m_downloadQueue.AddToDownloadQueue(drawArgs, request); } return(request); }
public string GetImagePath(GeographicBoundingBox geoBox, int level) { ImageTileInfo info = GetImageTileInfo(geoBox, level); return(info.ImagePath); }
protected virtual GeoSpatialDownloadRequest GetDownloadRequest(GeographicBoundingBox geoBox, ImageTileInfo info) { return(new WWDownloadRequest(geoBox, info, m_downloadQueue, this)); }