Table of Contents

Class PlaceLabelLayer

Renders place names from vector tiles.

public sealed class PlaceLabelLayer : IDisposable
Inheritance
object
PlaceLabelLayer
Implements

Constructors

PlaceLabelLayer(string, Font, string, string, Func<string, string, Task<string>>, Func<int, string, ITileFetcher>)

public PlaceLabelLayer(string cacheDirectory, Font font = null, string urlTemplate = null, string userAgent = null, Func<string, string, Task<string>> tileJsonRequest = null, Func<int, string, ITileFetcher> tileFetcherFactory = null)

Parameters

cacheDirectory string
font Font
urlTemplate string
userAgent string
tileJsonRequest Func<string, string, Task<string>>
tileFetcherFactory Func<int, string, ITileFetcher>

Fields

DefaultTileJsonUrl

public const string DefaultTileJsonUrl = "https://tiles.openfreemap.org/planet"

Field Value

string

Properties

LabelColor

public Color32 LabelColor { get; set; }

Property Value

Color32

LabelFadeSeconds

Seconds place-name labels fade on declutter changes; forwards to the underlying label layer.

public double LabelFadeSeconds { get; set; }

Property Value

double

MaxVisibleLabels

public int MaxVisibleLabels { get; set; }

Property Value

int

PlaceCount

public int PlaceCount { get; }

Property Value

int

UserAgent

public string UserAgent { get; }

Property Value

string

VisibleGlyphCount

public int VisibleGlyphCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

FillCommandBuffer(CommandBuffer)

public void FillCommandBuffer(CommandBuffer cb)

Parameters

cb CommandBuffer

PrepareDraw(MapViewTransform)

public void PrepareDraw(MapViewTransform view)

Parameters

view MapViewTransform

Render(MapViewTransform)

public void Render(MapViewTransform view)

Parameters

view MapViewTransform

Tick(MapViewTransform, double)

public void Tick(MapViewTransform view, double now)

Parameters

view MapViewTransform
now double

TryParseTilesUrl(string, out string)

public static bool TryParseTilesUrl(string json, out string template)

Parameters

json string
template string

Returns

bool