All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.meteoinfo.data.mapdata.webmap.OpenStreetMapQuestSatelliteInfo Maven / Gradle / Ivy

There is a newer version: 3.8
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meteoinfo.data.mapdata.webmap;

/**
 *
 * @author yaqiang
 */
public class OpenStreetMapQuestSatelliteInfo extends TileFactoryInfo {
    // 
    // 
    // 

    /**
     * Constructor
     */
    public OpenStreetMapQuestSatelliteInfo() {
        super("OpenStreetMapQuestSatellite", 1, 17, 19,
                256, true, true, // tile size is 256 and x/y orientation is normal
                "http://otile%1$d.mqcdn.com/tiles/1.0.0/sat/%2$d/%3$d/%4$d.jpg",//5/15/10.png",
                "x", "y", "z");
    }
//    // 
//    // 
//    // 
//    // 

    @Override
    public String getTileUrl(int x, int y, int zoom) {
        zoom = this.getTotalMapZoom() - zoom;
        int serverNum = this.getServerNum(x, y, 3) + 1;
        String url = String.format(this.baseURL, serverNum, zoom, x, y);
        return url;
    }
    // 
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy