package org.meteoinfo.data.mapdata.webmap;

/**
 *
 * @author yaqiang
 */
public class CMAVecMapInfo extends TileFactoryInfo {
    // <editor-fold desc="Variables">
    // </editor-fold>
    // <editor-fold desc="Constructor">

    /**
     * Constructor
     */
    public CMAVecMapInfo() {
        super("CMA_VEC_MAP", 0, 18, 19,
                256, true, true, // tile size is 256 and x/y orientation is normal
                "http://10.1.64.154/DataServer?T=vec_w&X=%1$d&Y=%2$d&L=%3$d",
                "x", "y", "z");
    }
//    // </editor-fold>
//    // <editor-fold desc="Get Set Methods">

//    // </editor-fold>
//    // <editor-fold desc="Methods">

    @Override
    public String getTileUrl(int x, int y, int zoom) {
        zoom = this.getTotalMapZoom() - zoom;
        String url = String.format(this.baseURL, x, y, zoom);
        return url;
    }
    // </editor-fold>
}
