MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_custom_geometry_source_options Struct Reference

#include <style.h>

Data Fields

uint32_t size
mln_custom_geometry_source_option_fields fields
mln_custom_source_fetch_tile_callback fetch_tile
mln_custom_source_cancel_tile_callback cancel_tile
void * user_data
double min_zoom
double max_zoom
double tolerance
uint32_t tile_size
uint32_t buffer
bool clip
bool wrap
mln_user_data_release release_user_data
mln_delivery_queue queue

Detailed Description

The callbacks and options of a custom geometry source.

Zoom levels are whole numbers from 0 to 32.

Field Documentation

◆ buffer

uint32_t mln_custom_geometry_source_options::buffer

The width in pixels of the margin around a tile that holds geometry from beyond its edges. buffer times 8192 / tile_size must be at most 65535.

◆ cancel_tile

mln_custom_source_cancel_tile_callback mln_custom_geometry_source_options::cancel_tile

◆ clip

bool mln_custom_geometry_source_options::clip

Whether to cut geometry at the outer edge of a tile's margin.

◆ fetch_tile

mln_custom_source_fetch_tile_callback mln_custom_geometry_source_options::fetch_tile

◆ fields

mln_custom_geometry_source_option_fields mln_custom_geometry_source_options::fields

◆ max_zoom

double mln_custom_geometry_source_options::max_zoom

◆ min_zoom

double mln_custom_geometry_source_options::min_zoom

◆ queue

mln_delivery_queue mln_custom_geometry_source_options::queue

◆ release_user_data

mln_user_data_release mln_custom_geometry_source_options::release_user_data

◆ size

uint32_t mln_custom_geometry_source_options::size

◆ tile_size

uint32_t mln_custom_geometry_source_options::tile_size

The width of a tile in pixels, a power of two no larger than 8192.

◆ tolerance

double mln_custom_geometry_source_options::tolerance

How far, in pixels, simplified geometry can stray from the original.

◆ user_data

void* mln_custom_geometry_source_options::user_data

◆ wrap

bool mln_custom_geometry_source_options::wrap

Whether to wrap geometry that crosses the antimeridian.


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