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
StyleUrlstringThe style whose resources the region holds. Maps use the region when they load the same style URL.
BoundsLatLngBoundsMinZoomdoubleMaxZoomdoubleINFINITY covers every zoom level that the style's sources have.
PixelRatiofloatThe pixel ratio of the images to download, such as 2 for dense screens.
IncludeIdeographsboolWhether 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
IncludeIdeographs
Whether the region holds the glyphs of CJK ideographs.
public bool IncludeIdeographs { get; init; }
Property Value
MaxZoom
INFINITY covers every zoom level that the style's sources have.
public double MaxZoom { get; init; }
Property Value
MinZoom
public double MinZoom { get; init; }
Property Value
PixelRatio
The pixel ratio of the images to download, such as 2 for dense screens.
public float PixelRatio { get; init; }
Property Value
StyleUrl
The style whose resources the region holds. Maps use the region when they load the same style URL.
public string StyleUrl { get; init; }