Ejemplo n.º 1
0
        public static void LLToPixel(PointD latLong, int zoomLevel, out long x, out long y, int tileSize = 256)
        {
            //convert LL to Mercatator
            PointD merc  = ShapeFile.LLToMercator(latLong);
            double scale = ZoomLevelToScale(zoomLevel, tileSize);

            x = (long)Math.Round((merc.X + MaxMerc.X) * scale);
            y = (long)Math.Round((MaxMerc.Y - merc.Y) * scale);
        }