Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        public string GetImagePath(GeographicBoundingBox geoBox, int level)
        {
            ImageTileInfo info = GetImageTileInfo(geoBox, level);

            return(info.ImagePath);
        }
Example #4
0
 protected virtual GeoSpatialDownloadRequest GetDownloadRequest(GeographicBoundingBox geoBox, ImageTileInfo info)
 {
     return(new WWDownloadRequest(geoBox, info, m_downloadQueue, this));
 }