|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style.h>
Data Fields | |
| uint32_t | size |
| mln_style_image_option_fields | fields |
| const mln_image_stretch * | stretch_x |
| size_t | stretch_x_count |
| const mln_image_stretch * | stretch_y |
| size_t | stretch_y_count |
| mln_image_content | content |
| mln_style_image_text_fit | text_fit_width |
| mln_style_image_text_fit | text_fit_height |
| float | pixel_ratio |
| bool | sdf |
| bool | keep_unused |
Options for a style image, as the sprite spec describes them.
| mln_image_content mln_style_image_options::content |
| mln_style_image_option_fields mln_style_image_options::fields |
| bool mln_style_image_options::keep_unused |
Keeps the image after no layer uses it. Without this, the map can remove an image that it asked for through MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING.
| float mln_style_image_options::pixel_ratio |
| bool mln_style_image_options::sdf |
| uint32_t mln_style_image_options::size |
| const mln_image_stretch* mln_style_image_options::stretch_x |
The ranges of columns that stretch, in increasing order without overlap.
| size_t mln_style_image_options::stretch_x_count |
| const mln_image_stretch* mln_style_image_options::stretch_y |
The ranges of rows that stretch, in increasing order without overlap.
| size_t mln_style_image_options::stretch_y_count |
| mln_style_image_text_fit mln_style_image_options::text_fit_height |
| mln_style_image_text_fit mln_style_image_options::text_fit_width |