MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
renderer_state.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <mbgl/map/camera.hpp>
4 #include <mbgl/util/geo.hpp>
5 
6 namespace mbgl {
7 
8 class UpdateParameters;
9 
15 public:
16 
18  static CameraOptions getCameraOptions(const UpdateParameters&, const EdgeInsets& = {});
19 
21  static bool hasImage(const UpdateParameters&, const std::string& id);
22 
24  static bool hasLayer(const UpdateParameters&, const std::string& id);
25 
27  static bool hasSource(const UpdateParameters&, const std::string& id);
28 
30  static ScreenCoordinate pixelForLatLng(const UpdateParameters&, const LatLng&);
31 
33  static LatLng latLngForPixel(const UpdateParameters&, const ScreenCoordinate&);
34 };
35 
36 } // namespace mbgl
The distance on each side between a rectangle and a rectangle within.
Definition: geo.hpp:187
static bool hasSource(const UpdateParameters &, const std::string &id)
Returns whether a source with the given ID exists from a given UpdateParamters object.
static CameraOptions getCameraOptions(const UpdateParameters &, const EdgeInsets &={})
Obtains a CameraOptions out of a given UpdateParameters object.
static ScreenCoordinate pixelForLatLng(const UpdateParameters &, const LatLng &)
Obtains the geographical coordinate out of a given screen coordinate.
static bool hasImage(const UpdateParameters &, const std::string &id)
Returns whether an image with the given ID exists from a given UpdateParamters object.
static bool hasLayer(const UpdateParameters &, const std::string &id)
Returns whether a layer with the given ID exists from a given UpdateParamters object.
static LatLng latLngForPixel(const UpdateParameters &, const ScreenCoordinate &)
Obtains the screen coordinate out of a given geographical coordinate.
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15
mapbox::geometry::point< double > ScreenCoordinate
Definition: geo.hpp:20