Files
MapLibreParticleLab/include/mbgl/map/map_projection.hpp
Bart Louwers 550f64be22 core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-08-14 23:25:20 +02:00

31 lines
743 B
C++

#include <mbgl/map/camera.hpp>
#include <mbgl/map/map.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/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