mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
Maps: Add LatLngBounds struct
This commit is contained in:
parent
baf2121636
commit
2bdd39f198
2 changed files with 18 additions and 2 deletions
|
@ -27,6 +27,13 @@ public:
|
|||
double distance_to(LatLng const& other) const;
|
||||
};
|
||||
|
||||
struct LatLngBounds {
|
||||
LatLng north_west;
|
||||
LatLng south_east;
|
||||
|
||||
int get_zoom() const;
|
||||
};
|
||||
|
||||
struct Options {
|
||||
Optional<String> tile_provider {};
|
||||
LatLng center;
|
||||
|
@ -141,6 +148,7 @@ private:
|
|||
|
||||
static int constexpr TILE_SIZE = 256;
|
||||
static double constexpr LATITUDE_MAX = 85.0511287798066;
|
||||
static int constexpr EARTH_RADIUS = 6371000.0;
|
||||
static size_t constexpr TILES_CACHE_MAX = 256;
|
||||
static constexpr size_t TILES_DOWNLOAD_PARALLEL_MAX = 8;
|
||||
static int constexpr ZOOM_MIN = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue