Exemplo n.º 1
0
        /// <summary>
        /// Loads the atlases
        /// </summary>
        /// <returns>The list of laoded atlases</returns>
        private List <string> LoadAtlases()
        {
            List <string> potentialAtlases = FS.EnumerateDir(Path);
            List <string> atlases          = new List <string>();

            if (potentialAtlases != null && potentialAtlases.Count > 0)
            {
                foreach (string atlas in potentialAtlases)
                {
                    if (atlas.EndsWith("_atlas"))
                    {
                        atlases.Add(atlas);
                    }
                }
            }

            return(atlases);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Loads the zoom levels
 /// </summary>
 /// <param name="atlas">The atlas to load zoom levels for</param>
 /// <returns>The list of zoom levels for the given atlas</returns>
 private List <string> LoadZoomLevels(string atlas)
 {
     return(FS.EnumerateDir(atlas));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Loads the YRegions for a zoom level
 /// </summary>
 /// <param name="zoomLevel">The zoom level to load y regions for</param>
 /// <returns>The list of y regions</returns>
 private List <string> LoadYRegions(string zoomLevel)
 {
     return(FS.EnumerateDir(zoomLevel));
 }