code: public String getTileUrl(int x, int y, int zoom)
      {
          // System.out.println("getting tile at zoom: " + zoom);
          // System.out.println("map width at zoom = " + getMapWidthInTilesAtZoom(zoom));
          String ypart = "&" + yparam + "=" + y;
          // System.out.println("ypart = " + ypart);
  
          if (!yt2b)
          {
              int tilemax = getMapWidthInTilesAtZoom(zoom);
              // int y = tilePoint.getY();
              ypart = "&" + yparam + "=" + (tilemax / 2 - y - 1);
          }
          // System.out.println("new ypart = " + ypart);
          String url = baseURL + "&" + xparam + "=" + x + ypart +
          // "&" + yparam + "=" + tilePoint.getY() +
                  "&" + zparam + "=" + zoom;
          return url;
      }
docs: Returns the tile url for the specified tile at the specified zoom level. By default it will generate a tile url
  using the base url and parameters specified in the constructor. Thus if <PRE><CODE>baseURl =
  http://www.myserver.com/maps?version=0.1 xparam = x yparam = y zparam = z tilepoint = [1,2] zoom level = 3
  </CODE> </PRE> then the resulting url would be:
  <pre><code>http://www.myserver.com/maps?version=0.1&amp;x=1&amp;y=2&amp;z=3</code></pre> Note that the URL can be
  a <CODE>file:</CODE> url.
  @param zoom the zoom level
  @param x the x value, measured from left to right
  @param y the y value, measured from top to bottom
  @return a valid url to load the tile