green-anger / GlobeViewer

View popular online maps in Orthographic projection
MIT License
10 stars 6 forks source link

Add option to download tiles from 2gis.com #36

Closed green-anger closed 5 years ago

green-anger commented 6 years ago

Tiles are at https://tileN.maps.2gis.com/tiles?x=X&y=Y&z=Z, where N - number of mirror [0,4] and X,Y,Z - tile coordinates provided by user

green-anger commented 6 years ago

It's not as easy as just combining url from (x, y, z), because on 2gis servers not every tile exists. TileManager can receive "image" of 0 length, such scenario must be considered during tile processing (MapGenerator+TileManager) and fixing #31.