Table of Contents

Struct OfflineTilePyramidRegionDefinition

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

An offline region that covers a rectangle of the map.

public readonly record struct OfflineTilePyramidRegionDefinition : IEquatable<OfflineTilePyramidRegionDefinition>
Implements
Inherited Members

Remarks

See mln_offline_tile_pyramid_region_definition in the C API reference.

Constructors

OfflineTilePyramidRegionDefinition()

public OfflineTilePyramidRegionDefinition()

OfflineTilePyramidRegionDefinition(string, LatLngBounds, double, double, float, bool)

An offline region that covers a rectangle of the map.

public OfflineTilePyramidRegionDefinition(string StyleUrl, LatLngBounds Bounds, double MinZoom, double MaxZoom, float PixelRatio, bool IncludeIdeographs)

Parameters

StyleUrl string

The style whose resources the region holds. Maps use the region when they load the same style URL.

Bounds LatLngBounds
MinZoom double
MaxZoom double

INFINITY covers every zoom level that the style's sources have.

PixelRatio float

The pixel ratio of the images to download, such as 2 for dense screens.

IncludeIdeographs bool

Whether the region holds the glyphs of CJK ideographs.

Remarks

See mln_offline_tile_pyramid_region_definition in the C API reference.

Properties

Bounds

public LatLngBounds Bounds { get; init; }

Property Value

LatLngBounds

IncludeIdeographs

Whether the region holds the glyphs of CJK ideographs.

public bool IncludeIdeographs { get; init; }

Property Value

bool

MaxZoom

INFINITY covers every zoom level that the style's sources have.

public double MaxZoom { get; init; }

Property Value

double

MinZoom

public double MinZoom { get; init; }

Property Value

double

PixelRatio

The pixel ratio of the images to download, such as 2 for dense screens.

public float PixelRatio { get; init; }

Property Value

float

StyleUrl

The style whose resources the region holds. Maps use the region when they load the same style URL.

public string StyleUrl { get; init; }

Property Value

string