/** @return */ @Override protected String createTileRequestURL() { double lat1 = 35, lat2 = 44, lon1 = -12.7, lon2 = 5; double[] ret1 = MapTileUtil.XYToDegrees(worldX, worldY, levelOfDetail); double[] ret2 = MapTileUtil.XYToDegrees(worldX + 256, worldY + 256, levelOfDetail); lat1 = Math.min(ret1[0], ret2[0]); lat2 = Math.max(ret1[0], ret2[0]); lon1 = Math.min(ret1[1], ret2[1]); lon2 = Math.max(ret1[1], ret2[1]); String urlGet = "http://www.gebco.net/data_and_products/gebco_web_services/" + "web_map_service/mapserv?request=getmap&service=wms&" + "BBOX=" + lon1 + "," + lat1 + "," + lon2 + "," + lat2 + "&srs=EPSG:4326&format=image/jpeg&layers=gebco_08_grid&" + "width=256&height=256&version=1.1.1"; NeptusLog.pub().info("<###> " + urlGet); return urlGet; }
/** @return */ @Override protected String createTileRequestURL() { double[] ret = MapTileUtil.XYToDegrees(worldX + 256 / 2, worldY + 256 / 2, levelOfDetail); String urlGet = "http://" + HOST + "/maps/api/staticmap?center=" + ret[0] + "," + ret[1] + "&zoom=" + levelOfDetail + "&size=256x256&sensor=false"; return urlGet; }