Beispiel #1
0
 public override PureImage GetTileImage(GPoint pos, int zoom)
 {
     return(null);
 }
Beispiel #2
0
 protected static int GetServerNum(GPoint pos, int max)
 {
     return((int)(pos.X + 2 * pos.Y) % max);
 }
Beispiel #3
0
 /// <summary>
 /// gets tile image using implmented provider
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="zoom"></param>
 /// <returns></returns>
 public abstract PureImage GetTileImage(GPoint pos, int zoom);
Beispiel #4
0
 public PointLatLng FromPixelToLatLng(GPoint p, int zoom)
 {
     return(FromPixelToLatLng(p, zoom, false));
 }
Beispiel #5
0
 /// <summary>
 /// gets pixel coordinate from tile coordinate
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public virtual GPoint FromTileXYToPixel(GPoint p)
 {
     return(new GPoint((p.X * TileSize.Width), (p.Y * TileSize.Height)));
 }
Beispiel #6
0
 /// <summary>
 /// gets tile coorddinate from pixel coordinates
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public virtual GPoint FromPixelToTileXY(GPoint p)
 {
     return(new GPoint((long)(p.X / TileSize.Width), (long)(p.Y / TileSize.Height)));
 }