MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
map_projection.hpp
Go to the documentation of this file.
1 #include <mbgl/map/camera.hpp>
2 #include <mbgl/map/map.hpp>
4 #include <mbgl/util/geo.hpp>
5 
6 #include <memory>
7 
8 namespace mbgl {
9 
10 class Transform;
11 
13 public:
14  explicit MapProjection(const Map&);
16 
19 
20  void setCamera(const CameraOptions&);
22 
24  void setVisibleCoordinates(const std::vector<LatLng>&, const EdgeInsets&);
25 
26 private:
27  std::unique_ptr<Transform> transform;
28 };
29 
30 } // namespace mbgl
The distance on each side between a rectangle and a rectangle within.
Definition: geo.hpp:187
void setCamera(const CameraOptions &)
void setVisibleCoordinates(const std::vector< LatLng > &, const EdgeInsets &)
Set the underneath camera so the requested coordinates are visible with the inset.
CameraOptions getCamera() const
LatLng latLngForPixel(const ScreenCoordinate &) const
MapProjection(const Map &)
ScreenCoordinate pixelForLatLng(const LatLng &) const
Definition: actor.hpp:15
mapbox::geometry::point< double > ScreenCoordinate
Definition: geo.hpp:20