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
IdlongDatabase region id — pass to the per-region methods.
Typestring"tilepyramid"or"geometry".StyleUrlstringStyle downloaded for the region.
Boundsdouble[][latSw, lonSw, latNe, lonNe] for tile-pyramid regions, else null.
GeometryJsonElement?GeoJSON geometry for geometry regions, else null.
MinZoomdoubleMaxZoomdoublePixelRatiofloatIncludeIdeographsbool
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
Id
Database region id — pass to the per-region methods.
[JsonPropertyName("id")]
public long Id { get; init; }
Property Value
IncludeIdeographs
[JsonPropertyName("includeIdeographs")]
public bool IncludeIdeographs { get; init; }
Property Value
MaxZoom
[JsonPropertyName("maxZoom")]
public double MaxZoom { get; init; }
Property Value
MinZoom
[JsonPropertyName("minZoom")]
public double MinZoom { get; init; }
Property Value
PixelRatio
[JsonPropertyName("pixelRatio")]
public float PixelRatio { get; init; }
Property Value
StyleUrl
Style downloaded for the region.
[JsonPropertyName("styleUrl")]
public string StyleUrl { get; init; }
Property Value
Type
"tilepyramid" or "geometry".
[JsonPropertyName("type")]
public string Type { get; init; }