Class PlaceLabelLayer
Renders place names from vector tiles.
public sealed class PlaceLabelLayer : IDisposable
- Inheritance
-
objectPlaceLabelLayer
- 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
cacheDirectorystringfontFonturlTemplatestringuserAgentstringtileJsonRequestFunc<string, string, Task<string>>tileFetcherFactoryFunc<int, string, ITileFetcher>
Fields
DefaultTileJsonUrl
public const string DefaultTileJsonUrl = "https://tiles.openfreemap.org/planet"
Field Value
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
MaxVisibleLabels
public int MaxVisibleLabels { get; set; }
Property Value
PlaceCount
public int PlaceCount { get; }
Property Value
UserAgent
public string UserAgent { get; }
Property Value
VisibleGlyphCount
public int VisibleGlyphCount { get; }
Property Value
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
cbCommandBuffer
PrepareDraw(MapViewTransform)
public void PrepareDraw(MapViewTransform view)
Parameters
viewMapViewTransform
Render(MapViewTransform)
public void Render(MapViewTransform view)
Parameters
viewMapViewTransform
Tick(MapViewTransform, double)
public void Tick(MapViewTransform view, double now)
Parameters
viewMapViewTransformnowdouble
TryParseTilesUrl(string, out string)
public static bool TryParseTilesUrl(string json, out string template)