tile.patch (1284B)
1 diff --git i/sdlmap.cc w/sdlmap.cc 2 index 8fa3483..22dafc4 100644 3 --- i/sdlmap.cc 4 +++ w/sdlmap.cc 5 @@ -107,7 +107,7 @@ int main(int argc, char *argv[]){ 6 SDL_Window *window = SDL_CreateWindow("SDLmap", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE); 7 8 MapView view(window, width, height, zoom); 9 - view.center_coords(48.4284, -123.3656); 10 + view.center_coords(60.0, 30.0); 11 12 runloop(view); 13 return 0; 14 diff --git i/tile.cc w/tile.cc 15 index 086fe3d..ddf0dab 100644 16 --- i/tile.cc 17 +++ w/tile.cc 18 @@ -21,8 +21,9 @@ std::string Tile::url(){ 19 char url[4096]; 20 //snprintf(url, sizeof url, "http://a.tile.openstreetmap.org/%i/%i/%i.png", zoom, x, y); 21 //snprintf(url, sizeof url, "http://a.tile.stamen.com/toner/%i/%i/%i.png", zoom, x, y); 22 - snprintf(url, sizeof url, "http://mts0.google.com/vt/hl=en&src=api&x=%i&s=&y=%i&z=%i", x, y, zoom); 23 + //snprintf(url, sizeof url, "http://mts0.google.com/vt/hl=en&src=api&x=%i&s=&y=%i&z=%i", x, y, zoom); 24 //snprintf(url, sizeof url, "http://a.www.toolserver.org/tiles/bw-mapnik/%i/%i/%i.png", zoom, x, y); 25 + snprintf(url, sizeof url, "https://tile-a.opentopomap.ru/%i/%i/%i.png", zoom, x, y); 26 return std::string(url); 27 } 28 void Tile::render(SDL_Surface *screen, int offsetx, int offsety){