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

#include <geojson_source.hpp>

Public Types

using ClusterExpression = std::pair< std::shared_ptr< mbgl::style::expression::Expression >, std::shared_ptr< mbgl::style::expression::Expression > >
 
using ClusterProperties = std::map< std::string, ClusterExpression >
 

Static Public Member Functions

static Immutable< GeoJSONOptionsdefaultOptions ()
 

Public Attributes

uint8_t minzoom = 0
 
uint8_t maxzoom = 18
 
uint16_t tileSize = util::tileSize_I
 
uint16_t buffer = 128
 
double tolerance = 0.375
 
bool lineMetrics = false
 
bool cluster = false
 
uint16_t clusterRadius = 50
 
uint8_t clusterMaxZoom = 17
 
ClusterProperties clusterProperties
 

Detailed Description

Definition at line 19 of file geojson_source.hpp.

Member Typedef Documentation

◆ ClusterExpression

◆ ClusterProperties

Definition at line 34 of file geojson_source.hpp.

Member Function Documentation

◆ defaultOptions()

static Immutable<GeoJSONOptions> mbgl::style::GeoJSONOptions::defaultOptions ( )
static

Member Data Documentation

◆ buffer

uint16_t mbgl::style::GeoJSONOptions::buffer = 128

Definition at line 24 of file geojson_source.hpp.

◆ cluster

bool mbgl::style::GeoJSONOptions::cluster = false

Definition at line 29 of file geojson_source.hpp.

◆ clusterMaxZoom

uint8_t mbgl::style::GeoJSONOptions::clusterMaxZoom = 17

Definition at line 31 of file geojson_source.hpp.

◆ clusterProperties

ClusterProperties mbgl::style::GeoJSONOptions::clusterProperties

Definition at line 35 of file geojson_source.hpp.

◆ clusterRadius

uint16_t mbgl::style::GeoJSONOptions::clusterRadius = 50

Definition at line 30 of file geojson_source.hpp.

◆ lineMetrics

bool mbgl::style::GeoJSONOptions::lineMetrics = false

Definition at line 26 of file geojson_source.hpp.

◆ maxzoom

uint8_t mbgl::style::GeoJSONOptions::maxzoom = 18

Definition at line 22 of file geojson_source.hpp.

◆ minzoom

uint8_t mbgl::style::GeoJSONOptions::minzoom = 0

Definition at line 21 of file geojson_source.hpp.

◆ tileSize

uint16_t mbgl::style::GeoJSONOptions::tileSize = util::tileSize_I

Definition at line 23 of file geojson_source.hpp.

◆ tolerance

double mbgl::style::GeoJSONOptions::tolerance = 0.375

Definition at line 25 of file geojson_source.hpp.


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