Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
31 lines
739 B
C++
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
|