TileProvider provider = new UrlTileProvider(256,256) {
@Override
public URL getTileUrl(int x, int y, int zoom) {
String url = String.format("http://vec04.maps.yandex.net/tiles?l=map&v=2.28.0&x=%d&y=%d&z=%d&lang=ru-RUg",
x,y,zoom);
try {
return new URL(url);
} catch (MalformedURLException e) {
throw new AssertionError(e);
}
}
};