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

Namespaces

 conversion
 
 expression
 

Classes

struct  CustomLayerRenderParameters
 
class  CustomLayerHost
 
class  CustomLayer
 
class  ColorRampPropertyValue
 
class  Filter
 
class  ImageContent
 
class  Image
 
class  LayerProperties
 An interface, wrapping evaluated layer properties. More...
 
class  BackgroundLayer
 
class  CircleLayer
 
class  FillExtrusionLayer
 
class  FillLayer
 
class  HeatmapLayer
 
class  HillshadeLayer
 
class  LineLayer
 
class  LocationIndicatorLayer
 
class  RasterLayer
 
class  SymbolLayer
 
class  Light
 
class  Position
 
class  PropertyExpressionBase
 
class  PropertyExpression
 
class  PropertyValue
 
class  Rotation
 
class  CustomGeometrySource
 
struct  GeoJSONOptions
 
class  GeoJSONData
 
class  GeoJSONSource
 
class  ImageSource
 
class  RasterDEMSource
 
class  RasterSource
 
class  VectorSource
 
class  Style
 
class  StyleProperty
 Generic representation of a style property. More...
 
class  TransitionOptions
 
class  Undefined
 

Typedefs

using ImageStretch = std::pair< float, float >
 
using ImageStretches = std::vector< ImageStretch >
 
using TileFunction = std::function< void(const CanonicalTileID &)>
 
using TextVariableAnchorType = SymbolAnchorType
 

Enumerations

enum class  SourceType : uint8_t {
  Vector , Raster , RasterDEM , GeoJSON ,
  Video , Annotations , Image , CustomVector
}
 
enum class  VisibilityType : bool { Visible , None }
 
enum class  LineCapType : uint8_t { Round , Butt , Square }
 
enum class  LineJoinType : uint8_t {
  Miter , Bevel , Round , FakeRound ,
  FlipBevel
}
 
enum class  RasterResamplingType : bool { Linear , Nearest }
 
enum class  HillshadeIlluminationAnchorType : bool { Map , Viewport }
 
enum class  TranslateAnchorType : bool { Map , Viewport }
 
enum class  RotateAnchorType : bool { Map , Viewport }
 
enum class  CirclePitchScaleType : bool { Map , Viewport }
 
enum class  SymbolPlacementType : uint8_t { Point , Line , LineCenter }
 
enum class  SymbolZOrderType : uint8_t { Auto , ViewportY , Source }
 
enum class  AlignmentType : uint8_t { Map , Viewport , Auto }
 
enum class  TextJustifyType : uint8_t { Auto , Center , Left , Right }
 
enum class  SymbolAnchorType : uint8_t {
  Center , Left , Right , Top ,
  Bottom , TopLeft , TopRight , BottomLeft ,
  BottomRight
}
 
enum class  TextTransformType : uint8_t { None , Uppercase , Lowercase }
 
enum class  IconTextFitType : uint8_t { None , Both , Width , Height }
 
enum class  TextWritingModeType : uint8_t { Horizontal , Vertical }
 
enum class  LightAnchorType : bool { Map , Viewport }
 

Functions

template<class Derived >
const auto & getEvaluated (const Immutable< LayerProperties > &properties)
 
template<class Derived >
const auto & getCrossfade (const Immutable< LayerProperties > &properties)
 
bool operator== (const Undefined &, const Undefined &)
 
bool operator!= (const Undefined &, const Undefined &)
 

Typedef Documentation

◆ ImageStretch

using mbgl::style::ImageStretch = typedef std::pair<float, float>

Definition at line 14 of file image.hpp.

◆ ImageStretches

using mbgl::style::ImageStretches = typedef std::vector<ImageStretch>

Definition at line 15 of file image.hpp.

◆ TextVariableAnchorType

Definition at line 103 of file types.hpp.

◆ TileFunction

using mbgl::style::TileFunction = typedef std::function<void(const CanonicalTileID&)>

Definition at line 19 of file custom_geometry_source.hpp.

Enumeration Type Documentation

◆ AlignmentType

enum mbgl::style::AlignmentType : uint8_t
strong
Enumerator
Map 
Viewport 
Auto 

Definition at line 78 of file types.hpp.

◆ CirclePitchScaleType

Enumerator
Map 
Viewport 

Definition at line 61 of file types.hpp.

◆ HillshadeIlluminationAnchorType

Enumerator
Map 
Viewport 

Definition at line 46 of file types.hpp.

◆ IconTextFitType

enum mbgl::style::IconTextFitType : uint8_t
strong
Enumerator
None 
Both 
Width 
Height 

Definition at line 111 of file types.hpp.

◆ LightAnchorType

enum mbgl::style::LightAnchorType : bool
strong
Enumerator
Map 
Viewport 

Definition at line 123 of file types.hpp.

◆ LineCapType

enum mbgl::style::LineCapType : uint8_t
strong
Enumerator
Round 
Butt 
Square 

Definition at line 26 of file types.hpp.

◆ LineJoinType

enum mbgl::style::LineJoinType : uint8_t
strong
Enumerator
Miter 
Bevel 
Round 
FakeRound 
FlipBevel 

Definition at line 32 of file types.hpp.

◆ RasterResamplingType

Enumerator
Linear 
Nearest 

Definition at line 41 of file types.hpp.

◆ RotateAnchorType

enum mbgl::style::RotateAnchorType : bool
strong
Enumerator
Map 
Viewport 

Definition at line 56 of file types.hpp.

◆ SourceType

enum mbgl::style::SourceType : uint8_t
strong
Enumerator
Vector 
Raster 
RasterDEM 
GeoJSON 
Video 
Annotations 
Image 
CustomVector 

Definition at line 10 of file types.hpp.

◆ SymbolAnchorType

enum mbgl::style::SymbolAnchorType : uint8_t
strong
Enumerator
Center 
Left 
Right 
Top 
Bottom 
TopLeft 
TopRight 
BottomLeft 
BottomRight 

Definition at line 91 of file types.hpp.

◆ SymbolPlacementType

enum mbgl::style::SymbolPlacementType : uint8_t
strong
Enumerator
Point 
Line 
LineCenter 

Definition at line 66 of file types.hpp.

◆ SymbolZOrderType

enum mbgl::style::SymbolZOrderType : uint8_t
strong
Enumerator
Auto 
ViewportY 
Source 

Definition at line 72 of file types.hpp.

◆ TextJustifyType

enum mbgl::style::TextJustifyType : uint8_t
strong
Enumerator
Auto 
Center 
Left 
Right 

Definition at line 84 of file types.hpp.

◆ TextTransformType

enum mbgl::style::TextTransformType : uint8_t
strong
Enumerator
None 
Uppercase 
Lowercase 

Definition at line 105 of file types.hpp.

◆ TextWritingModeType

enum mbgl::style::TextWritingModeType : uint8_t
strong
Enumerator
Horizontal 
Vertical 

Definition at line 118 of file types.hpp.

◆ TranslateAnchorType

Enumerator
Map 
Viewport 

Definition at line 51 of file types.hpp.

◆ VisibilityType

enum mbgl::style::VisibilityType : bool
strong
Enumerator
Visible 
None 

Definition at line 21 of file types.hpp.

Function Documentation

◆ getCrossfade()

template<class Derived >
const auto& mbgl::style::getCrossfade ( const Immutable< LayerProperties > &  properties)
inline

Definition at line 32 of file layer_properties.hpp.

◆ getEvaluated()

template<class Derived >
const auto& mbgl::style::getEvaluated ( const Immutable< LayerProperties > &  properties)
inline

Definition at line 27 of file layer_properties.hpp.

◆ operator!=()

bool mbgl::style::operator!= ( const Undefined ,
const Undefined  
)
inline

Definition at line 9 of file undefined.hpp.

◆ operator==()

bool mbgl::style::operator== ( const Undefined ,
const Undefined  
)
inline

Definition at line 8 of file undefined.hpp.