Struct TileProviderRequest
- Namespace
- LansMap.Map.TilePipeline.Config
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
stylestringStyle name, or empty for the definition's default.
apiKeystringAPI key, or empty.
retina512boolWhether 512 px @2x tiles were asked for.
baseMapLabelsboolWhether labels were asked for.
Fields
ApiKey
API key from the map's inspector, empty when none was set.
public readonly string ApiKey
Field Value
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
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
Style
Style name the map asked for, empty for your default.
public readonly string Style