1
Fork 0
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:
Bastiaan van der Plaat 2023-09-15 19:50:58 +02:00 committed by Andrew Kaster
parent baf2121636
commit 2bdd39f198
2 changed files with 18 additions and 2 deletions

View file

@ -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;