Exemple #1
0
 public Coordinate(LatLngPoint point)
 {
     X = point.Lng;
     Y = point.Lat;
 }
Exemple #2
0
        public System.Drawing.Point getMetersFromRowCol(int absoluteRow, int absoluteCol, int z)
        {
            LatLngPoint p = getLatLngFromTile(absoluteRow, absoluteCol, getScaleFromZoom(z, dpi));

            return(new System.Drawing.Point(Convert.ToInt32(Math.Floor(p.Lng)), Convert.ToInt32(Math.Floor(p.Lat))));
        }
Exemple #3
0
 public LatLngPoint getCenter(LatLngPoint a)
 {
     return(new LatLngPoint((Lng + a.Lng) / 2, (Lat + a.Lat) / 2));
 }