Table of Contents

Struct TileProviderRequest

The provider-facing settings a map was configured with, passed to CreateDependencies.

public readonly struct TileProviderRequest
Inherited Members

Constructors

TileProviderRequest(string, string, bool, bool)

Builds a request; the map fills this in, not your code.

public TileProviderRequest(string style, string apiKey, bool retina512, bool baseMapLabels)

Parameters

style string

Style name, or empty for the definition's default.

apiKey string

API key, or empty.

retina512 bool

Whether 512 px @2x tiles were asked for.

baseMapLabels bool

Whether labels were asked for.

Fields

ApiKey

API key from the map's inspector, empty when none was set.

public readonly string ApiKey

Field Value

string

BaseMapLabels

False when the map asked for a label-free variant. Sources with baked-in labels ignore it, exactly as the built-in presets do.

public readonly bool BaseMapLabels

Field Value

bool

Retina512

True when the map asked for 512 px @2x tiles. Only ever true when the definition declared SupportsRetina512 in the inspector, but honour it or ignore it as your service allows.

public readonly bool Retina512

Field Value

bool

Style

Style name the map asked for, empty for your default.

public readonly string Style

Field Value

string