File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public class TilesProvider implements Runnable {
61
61
// sat
62
62
"https://core-sat.maps.yandex.net/tiles?l=sat&lang=" ,
63
63
// hybrid
64
- // next PR
64
+ "http://nnp.nnchan.ru/mergedtile.php?lang="
65
65
};
66
66
67
67
public TilesProvider (String lang ) {
@@ -575,7 +575,7 @@ public TileCache getTile(TileId tileId) {
575
575
private String getUrl (TileId tileId ) {
576
576
String url = tilesUrls [tileId .map ] + lang + "&x=" + tileId .x + "&y=" + tileId .y
577
577
+ "&z=" + tileId .zoom ;
578
- if (Settings .proxyTiles ) {
578
+ if (Settings .proxyTiles && url . startsWith ( "https" ) ) {
579
579
return Settings .proxyServer + YmapsApiBase .EncodeUrl (url );
580
580
}
581
581
return url ;
@@ -586,7 +586,7 @@ private String getFileName(TileId id) {
586
586
}
587
587
588
588
private String getRmsName (TileId id ) {
589
- return "tile_" + lang + "_" + id .x + "_" + id .y + "_" + id .zoom + (id .map == 1 ? "_s" : "" );
589
+ return "tile_" + lang + "_" + id .x + "_" + id .y + "_" + id .zoom + (id .map > 0 ? "_" + id . map : "" );
590
590
}
591
591
592
592
public int GetCachedTilesCount () {
You can’t perform that action at this time.
0 commit comments