1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:47:35 +00:00

Maps: Add search panel

This commit is contained in:
Bastiaan van der Plaat 2023-09-16 21:14:21 +02:00 committed by Andrew Kaster
parent 2c2a1da306
commit deb7ecfbe9
9 changed files with 331 additions and 22 deletions

View file

@ -16,6 +16,8 @@
#include <LibGfx/ImageFormats/ImageDecoder.h>
#include <LibProtocol/Request.h>
namespace Maps {
// Math helpers
// https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Pseudo-code
static double longitude_to_tile_x(double longitude, int zoom)
@ -531,3 +533,5 @@ void MapWidget::paint_event(GUI::PaintEvent& event)
paint_scale(painter);
paint_panels(painter);
}
}