parent
0bd32aa51e
commit
19d801bb54
1 changed files with 4 additions and 4 deletions
|
@ -36,9 +36,9 @@ public class TileSourceManager {
|
|||
private static final String RULE_WMS = "wms_tile";
|
||||
|
||||
private static final TileSourceTemplate MAPNIK_SOURCE =
|
||||
new TileSourceTemplate("OsmAnd (online tiles)", "http://tile.osmand.net/hd/{0}/{1}/{2}.png", ".png", 19, 1, 512, 8, 18000); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
new TileSourceTemplate("OsmAnd (online tiles)", "https://tile.osmand.net/hd/{0}/{1}/{2}.png", ".png", 19, 1, 512, 8, 18000); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
private static final TileSourceTemplate CYCLE_MAP_SOURCE =
|
||||
new TileSourceTemplate("CycleMap", "https://b.tile.thunderforest.com/cycle/{0}/{1}/{2}.png?apikey=a778ae1a212641d38f46dc11f20ac116", ".png", 16, 1, 256, 32, 18000); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ http://b.tile.opencyclemap.org/cycle/{0}/{1}/{2}.png
|
||||
new TileSourceTemplate("CycleMap", "https://b.tile.thunderforest.com/cycle/{0}/{1}/{2}.png?apikey=a778ae1a212641d38f46dc11f20ac116", ".png", 16, 1, 256, 32, 18000); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
private static final TileSourceTemplate MAPILLARY_RASTER_SOURCE =
|
||||
new TileSourceTemplate("Mapillary (raster tiles)", "https://d6a1v2w10ny40.cloudfront.net/v0.1/{0}/{1}/{2}.png", ".png", 13, 0, 256, 16, 32000);
|
||||
private static final TileSourceTemplate MAPILLARY_VECTOR_SOURCE =
|
||||
|
@ -460,7 +460,7 @@ public class TileSourceManager {
|
|||
public static List<TileSourceTemplate> downloadTileSourceTemplates(String versionAsUrl) {
|
||||
final List<TileSourceTemplate> templates = new ArrayList<TileSourceTemplate>();
|
||||
try {
|
||||
URLConnection connection = NetworkUtils.getHttpURLConnection("http://osmand.net/tile_sources?" + versionAsUrl);
|
||||
URLConnection connection = NetworkUtils.getHttpURLConnection("https://osmand.net/tile_sources?" + versionAsUrl);
|
||||
XmlPullParser parser = PlatformUtil.newXMLPullParser();
|
||||
parser.setInput(connection.getInputStream(), "UTF-8");
|
||||
int tok;
|
||||
|
@ -524,7 +524,7 @@ public class TileSourceManager {
|
|||
String ext = attributes.get("ext") == null ? ".jpg" : attributes.get("ext");
|
||||
int bitDensity = parseInt(attributes, "img_density", 16);
|
||||
int avgTileSize = parseInt(attributes, "avg_img_size", 18000);
|
||||
urlTemplate = " http://whoots.mapwarper.net/tms/{0}/{1}/{2}/"+layer+"/"+urlTemplate;
|
||||
urlTemplate = "http://whoots.mapwarper.net/tms/{0}/{1}/{2}/"+layer+"/"+urlTemplate;
|
||||
TileSourceTemplate templ = new TileSourceTemplate(name, urlTemplate, ext, maxZoom, minZoom, tileSize, bitDensity, avgTileSize);
|
||||
return templ;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue