Table of Contents

Class MapOptions

Namespace
Maplibre.NativeFfi.Map
Assembly
Maplibre.NativeFfi.dll

Map creation options.

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

Remarks

Compares and hashes by property value; keep an instance unmodified while it is a key in a hash-based collection. Constructing an instance reads EventMask from the native library, so a host that loads the library from an exact path does that first.

Properties

EventMask

Map-originated event types this map queues, every event type this library reports by default. The mask applies during construction. See SetEventMask(RuntimeEventMask).

public RuntimeEventMask EventMask { get; set; }

Property Value

RuntimeEventMask

FastPforEnabled

Decodes MapLibre Tile (MLT) tiles whose integer streams use FastPFOR encodings, fixed for the lifetime of the map. A map created with this false decodes every other MLT encoding and logs a tile parse warning for the FastPFOR ones.

public bool? FastPforEnabled { get; set; }

Property Value

bool?

Height

Initial logical height in pixels, replaced by the extent of the first attached render session.

public uint? Height { get; set; }

Property Value

uint?

MapMode

Map rendering mode.

public MapMode? MapMode { get; set; }

Property Value

MapMode?

ScaleFactor

Device scale factor, fixed for the lifetime of the map, that selects sprites, glyphs, and raster tiles. Render targets carry their own scale factor for geometry, so attaching or resizing a session with a different one logs a warning and renders imagery chosen for this density.

public double? ScaleFactor { get; set; }

Property Value

double?

Width

Initial logical width in pixels, replaced by the extent of the first attached render session.

public uint? Width { get; set; }

Property Value

uint?