public PointF LatLongToPointF(Coordinate coord) { var globalPx = TileMath.LocationToGlobalPixel(coord, _zoom); globalPx.X -= _topLeftGlobalPixel.X; globalPx.Y -= _topLeftGlobalPixel.Y; return(globalPx); }
public ViewInfo(int width, int height, Coordinate topLeftCorner, double zoom) { _width = width; _height = height; _zoom = zoom; _topLeftGlobalPixel = TileMath.LocationToGlobalPixel(topLeftCorner, zoom); }