Files
MapLibreParticleLab/include/mln/map/map_projection.hpp
Bart Louwers 2a8ebc4906 core: rename mbgl directories to mln (#4511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-22 20:50:14 +02:00

31 lines
739 B
C++

#include <mln/map/camera.hpp>
#include <mln/map/map.hpp>
#include <mln/util/noncopyable.hpp>
#include <mln/util/geo.hpp>
#include <memory>
namespace mln {
class Transform;
class MapProjection : private util::noncopyable {
public:
explicit MapProjection(const Map&);
~MapProjection();
ScreenCoordinate pixelForLatLng(const LatLng&) const;
LatLng latLngForPixel(const ScreenCoordinate&) const;
void setCamera(const CameraOptions&);
CameraOptions getCamera() const;
/// Set the underneath camera so the requested coordinates are visible with the inset.
void setVisibleCoordinates(const std::vector<LatLng>&, const EdgeInsets&);
private:
std::unique_ptr<Transform> transform;
};
} // namespace mln