Class XYZTileWalker
An implementation of ITileWalker that can compute a list of tiles to request for an XYZ tile set
Inheritance
System.Object
XYZTileWalker
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.MaestroAPI.Tile
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class XYZTileWalker : ITileWalker
Constructors
| Improve this Doc View SourceXYZTileWalker(Double, Double, Double, Double, Int32)
Constructs a new instance for the given extent
Declaration
public XYZTileWalker(double minLon, double minLat, double maxLon, double maxLat, int maxZoomLevel = 19)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minLon | The min longitude |
System.Double | minLat | The min latitude |
System.Double | maxLon | The max longitude |
System.Double | maxLat | The max latitude |
System.Int32 | maxZoomLevel | The max zoom level |
Fields
| Improve this Doc View SourceDEFAULT_MAX_ZOOM_LEVEL
The default maximum allowed zoom level for XYZ tiles
Declaration
public const int DEFAULT_MAX_ZOOM_LEVEL = 19
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceResourceID
Un-used. Returns an empty string
Declaration
public string ResourceID { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetTileList()
Computes the list of all possible tiles to request
Declaration
public TileRef[] GetTileList()
Returns
Type | Description |
---|---|
TileRef[] |
SetSpecificZoomLevels(IEnumerable<Int32>)
Sets the specific zoom levels to walk. If not called, it will walk from 0 to 19 (or whatever the custom max zoom level is)
Declaration
public void SetSpecificZoomLevels(IEnumerable<int> levels)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Int32> | levels |