Ejemplo n.º 1
0
        public PointF LatLongToPointF(Coordinate coord)
        {
            var globalPx = TileMath.LocationToGlobalPixel(coord, _zoom);

            globalPx.X -= _topLeftGlobalPixel.X;
            globalPx.Y -= _topLeftGlobalPixel.Y;
            return(globalPx);
        }
Ejemplo n.º 2
0
        public ViewInfo(int width, int height, Coordinate topLeftCorner, double zoom)
        {
            _width  = width;
            _height = height;
            _zoom   = zoom;

            _topLeftGlobalPixel = TileMath.LocationToGlobalPixel(topLeftCorner, zoom);
        }