Skip to content

FeatureLayerTranslation

Namespace: ThinkGeo.Core.Styling

public sealed class FeatureLayerTranslation

Inheritance object → FeatureLayerTranslation

Properties

Source

The tile source over the layer's feature source. One per translation: a source carries one id.

public FeatureSourceVectorTileSource Source { get; }

Property Value

FeatureSourceVectorTileSource

SourceId

The name the layers refer to FeatureLayerTranslation.Source by: the sourceId given to FeatureLayerTranslator, or when none was, the classic layer's name or its data's. A style that already binds that name to another source gives this one a numbered name of its own when it is added ("counties" becomes "counties-2"), so read the name here, after adding, rather than keep the one that was asked for - it is what a further layer over the same data names as its source, and what the translated layers' ids start with.

public string SourceId { get; }

Property Value

string

SourceLayer

The source-layer the features are cut under: the classic layer's name, or its data's when it has none.

public string SourceLayer { get; }

Property Value

string

Layers

The layers, in draw order.

public IReadOnlyList<TranslatedStyleLayer> Layers { get; }

Property Value

IReadOnlyList<TranslatedStyleLayer>

Warnings

What to know about drawing this classic layer the GPU way, one line each: what did not translate - a style kind with no GPU counterpart, a brush with no single colour, a text mask, a colour transformation - each naming the classic style, so the layer can keep it on a classic overlay knowingly. Not errors. Also written to the debugger output as the translation is made, so they are seen without being asked for.

public IReadOnlyList<string> Warnings { get; }

Property Value

IReadOnlyList<string>

JsonWarnings

What the style.json form of the layers leaves out that the compiled layers keep: a RegexStyle's match, a label's NumericFormat, an underline. Empty when the document draws everything the code does. FeatureLayerTranslation.Warnings is about what the translation as a whole could not carry; this is only about the document.

public IReadOnlyList<string> JsonWarnings { get; }

Property Value

IReadOnlyList<string>

Methods

A(string)

internal void A(string )

Parameters

`` string

Returns

void

a()

internal Func`1[] a()

Returns

Func`1[]

B()

internal Func`2[] B()

Returns

Func`2[]