Table of Contents

Class CustomGeometrySourceOptions

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The callbacks and options of a custom geometry source.

public sealed record CustomGeometrySourceOptions : IEquatable<CustomGeometrySourceOptions>
Inheritance
CustomGeometrySourceOptions
Implements
Inherited Members

Remarks

Zoom levels are whole numbers from 0 to 32.

See mln_custom_geometry_source_options in the C API reference.

Properties

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.

public uint? Buffer { get; init; }

Property Value

uint?

CancelTile

public CustomSourceCancelTileCallback? CancelTile { get; init; }

Property Value

CustomSourceCancelTileCallback

Clip

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

public bool? Clip { get; init; }

Property Value

bool?

FetchTile

public required CustomSourceFetchTileCallback FetchTile { get; init; }

Property Value

CustomSourceFetchTileCallback

MaxZoom

public double? MaxZoom { get; init; }

Property Value

double?

MinZoom

public double? MinZoom { get; init; }

Property Value

double?

TileSize

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

public uint? TileSize { get; init; }

Property Value

uint?

Tolerance

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

public double? Tolerance { get; init; }

Property Value

double?

Wrap

Whether to wrap geometry that crosses the antimeridian.

public bool? Wrap { get; init; }

Property Value

bool?