MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::Projection Class Reference

#include <projection.hpp>

Static Public Member Functions

static double worldSize (double scale)
 
static double getMetersPerPixelAtLatitude (double lat, double zoom)
 
static ProjectedMeters projectedMetersForLatLng (const LatLng &latLng)
 
static LatLng latLngForProjectedMeters (const ProjectedMeters &projectedMeters)
 
static Point< double > project (const LatLng &latLng, double scale)
 
static Point< double > project (const LatLng &latLng, int32_t zoom)
 Returns point on tile. More...
 
static LatLng unproject (const Point< double > &p, double scale, LatLng::WrapMode wrapMode=LatLng::Unwrapped)
 

Detailed Description

Member Function Documentation

◆ getMetersPerPixelAtLatitude()

static double mbgl::Projection::getMetersPerPixelAtLatitude ( double  lat,
double  zoom 
)
inlinestatic

Definition at line 48 of file projection.hpp.

◆ latLngForProjectedMeters()

static LatLng mbgl::Projection::latLngForProjectedMeters ( const ProjectedMeters projectedMeters)
inlinestatic

Definition at line 68 of file projection.hpp.

◆ project() [1/2]

static Point<double> mbgl::Projection::project ( const LatLng latLng,
double  scale 
)
inlinestatic

Definition at line 78 of file projection.hpp.

◆ project() [2/2]

static Point<double> mbgl::Projection::project ( const LatLng latLng,
int32_t  zoom 
)
inlinestatic

Returns point on tile.

Definition at line 83 of file projection.hpp.

◆ projectedMetersForLatLng()

static ProjectedMeters mbgl::Projection::projectedMetersForLatLng ( const LatLng latLng)
inlinestatic

Definition at line 55 of file projection.hpp.

◆ unproject()

static LatLng mbgl::Projection::unproject ( const Point< double > &  p,
double  scale,
LatLng::WrapMode  wrapMode = LatLng::Unwrapped 
)
inlinestatic

Definition at line 87 of file projection.hpp.

◆ worldSize()

static double mbgl::Projection::worldSize ( double  scale)
inlinestatic

Definition at line 44 of file projection.hpp.


The documentation for this class was generated from the following file: