Table of Contents

Class MbglOfflineRegion

Namespace
MapLibreNative.Maui

An offline region stored in the cache database.

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

Constructors

MbglOfflineRegion(long, string, string, double[]?, JsonElement?, double, double, float, bool)

An offline region stored in the cache database.

public MbglOfflineRegion(long Id, string Type, string StyleUrl, double[]? Bounds, JsonElement? Geometry, double MinZoom, double MaxZoom, float PixelRatio, bool IncludeIdeographs)

Parameters

Id long

Database region id — pass to the per-region methods.

Type string

"tilepyramid" or "geometry".

StyleUrl string

Style downloaded for the region.

Bounds double[]

[latSw, lonSw, latNe, lonNe] for tile-pyramid regions, else null.

Geometry JsonElement?

GeoJSON geometry for geometry regions, else null.

MinZoom double
MaxZoom double
PixelRatio float
IncludeIdeographs bool

Properties

Bounds

[latSw, lonSw, latNe, lonNe] for tile-pyramid regions, else null.

[JsonPropertyName("bounds")]
public double[]? Bounds { get; init; }

Property Value

double[]

Geometry

GeoJSON geometry for geometry regions, else null.

[JsonPropertyName("geometry")]
public JsonElement? Geometry { get; init; }

Property Value

JsonElement?

Id

Database region id — pass to the per-region methods.

[JsonPropertyName("id")]
public long Id { get; init; }

Property Value

long

IncludeIdeographs

[JsonPropertyName("includeIdeographs")]
public bool IncludeIdeographs { get; init; }

Property Value

bool

MaxZoom

[JsonPropertyName("maxZoom")]
public double MaxZoom { get; init; }

Property Value

double

MinZoom

[JsonPropertyName("minZoom")]
public double MinZoom { get; init; }

Property Value

double

PixelRatio

[JsonPropertyName("pixelRatio")]
public float PixelRatio { get; init; }

Property Value

float

StyleUrl

Style downloaded for the region.

[JsonPropertyName("styleUrl")]
public string StyleUrl { get; init; }

Property Value

string

Type

"tilepyramid" or "geometry".

[JsonPropertyName("type")]
public string Type { get; init; }

Property Value

string