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

#include <renderer.hpp>

Public Attributes

std::u16string key
 Contents of the label. More...
 
std::optional< mapbox::geometry::box< float > > textCollisionBox
 If symbol contains text, text collision box in viewport coordinates. More...
 
std::optional< mapbox::geometry::box< float > > iconCollisionBox
 If symbol contains icon, icon collision box in viewport coordinates. More...
 
bool textPlaced
 Symbol text was placed. More...
 
bool iconPlaced
 Symbol icon was placed. More...
 
bool intersectsTileBorder
 Symbol text or icon collision box intersects tile borders. More...
 
float viewportPadding
 Viewport padding ({viewportPadding, viewportPadding} is a coordinate of the tile's top-left corner) More...
 
std::string layer
 Layer id (leader of the symbol layout group) More...
 

Detailed Description

Definition at line 24 of file renderer.hpp.

Member Data Documentation

◆ iconCollisionBox

std::optional<mapbox::geometry::box<float> > mbgl::PlacedSymbolData::iconCollisionBox

If symbol contains icon, icon collision box in viewport coordinates.

Definition at line 30 of file renderer.hpp.

◆ iconPlaced

bool mbgl::PlacedSymbolData::iconPlaced

Symbol icon was placed.

Definition at line 34 of file renderer.hpp.

◆ intersectsTileBorder

bool mbgl::PlacedSymbolData::intersectsTileBorder

Symbol text or icon collision box intersects tile borders.

Definition at line 36 of file renderer.hpp.

◆ key

std::u16string mbgl::PlacedSymbolData::key

Contents of the label.

Definition at line 26 of file renderer.hpp.

◆ layer

std::string mbgl::PlacedSymbolData::layer

Layer id (leader of the symbol layout group)

Definition at line 40 of file renderer.hpp.

◆ textCollisionBox

std::optional<mapbox::geometry::box<float> > mbgl::PlacedSymbolData::textCollisionBox

If symbol contains text, text collision box in viewport coordinates.

Definition at line 28 of file renderer.hpp.

◆ textPlaced

bool mbgl::PlacedSymbolData::textPlaced

Symbol text was placed.

Definition at line 32 of file renderer.hpp.

◆ viewportPadding

float mbgl::PlacedSymbolData::viewportPadding

Viewport padding ({viewportPadding, viewportPadding} is a coordinate of the tile's top-left corner)

Definition at line 38 of file renderer.hpp.


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