back to default OSM service

This commit is contained in:
Hannes Janetzek
2013-09-28 22:34:33 +02:00
parent 0cf7364c78
commit f34d23ca18

View File

@@ -20,8 +20,8 @@ import java.net.URL;
import org.oscim.core.Tile;
public class OpenStreetMapMapnik extends AbstractTileSource {
//public static final OpenStreetMapMapnik INSTANCE = new OpenStreetMapMapnik("tile.openstreetmap.org", 80);
public static final OpenStreetMapMapnik INSTANCE = new OpenStreetMapMapnik("localhost", 80);
public static final OpenStreetMapMapnik INSTANCE = new OpenStreetMapMapnik("tile.openstreetmap.org", 80);
private static final int PARALLEL_REQUESTS_LIMIT = 8;
private static final String PROTOCOL = "http";
private static final int ZOOM_LEVEL_MAX = 18;
@@ -40,7 +40,8 @@ public class OpenStreetMapMapnik extends AbstractTileSource {
public URL getTileUrl(Tile tile) throws MalformedURLException {
StringBuilder stringBuilder = new StringBuilder(32);
stringBuilder.append("/osm/osm/");
//stringBuilder.append("/osm/osm/");
stringBuilder.append("/");
stringBuilder.append(tile.zoomLevel);
stringBuilder.append('/');
stringBuilder.append(tile.tileX);