You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Derive from this class to implement a decoder for a specific polyline type. Override <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.GetReadOnlyMemory(%600%40)" data-throw-if-not-resolved="false"></xref>
53
+
<p>
54
54
55
-
and <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.CreateCoordinate(System.Double%2cSystem.Double)" data-throw-if-not-resolved="false"></xref> to provide type-specific behavior.
55
+
<b>Formatter-based use (no subclassing required):</b>
56
+
57
+
Supply a <xref href="PolylineAlgorithm.PolylineOptions%602" data-throw-if-not-resolved="false"></xref> via the
constructor. The formatters handle all type-specific concerns; override nothing.
62
+
63
+
</p>
64
+
65
+
<p>
66
+
67
+
<b>Legacy override-based use:</b>
68
+
69
+
Derive from this class and override <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.GetReadOnlyMemory(%600%40)" data-throw-if-not-resolved="false"></xref> and <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.CreateCoordinate(System.Double%2cSystem.Double)" data-throw-if-not-resolved="false"></xref>
70
+
71
+
to provide type-specific behaviour. These overrides take priority over any registered formatter.
- markdown: Initializes a new instance of the <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602" data-throw-if-not-resolved="false"></xref> class with default encoding options.
description: Thrown when <code class="paramref">options</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.
Initializes a new instance of the <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602" data-throw-if-not-resolved="false"></xref> class
112
+
113
+
using the supplied <xref href="PolylineAlgorithm.PolylineOptions%602" data-throw-if-not-resolved="false"></xref>.
114
+
- code: public AbstractPolylineDecoder(PolylineOptions<TCoordinate, TPolyline> options)
115
+
- h4: Parameters
116
+
- parameters:
117
+
- name: options
118
+
type:
119
+
- text: PolylineOptions
120
+
url: PolylineAlgorithm.PolylineOptions-2.html
121
+
- <
122
+
- TCoordinate
123
+
- ','
124
+
- ""
125
+
- TPolyline
126
+
- '>'
127
+
description: >-
128
+
A <xref href="PolylineAlgorithm.PolylineOptions%602" data-throw-if-not-resolved="false"></xref> that carries both the value formatter and
129
+
130
+
the polyline formatter together with the underlying <xref href="PolylineAlgorithm.PolylineEncodingOptions" data-throw-if-not-resolved="false"></xref>.
131
+
- h4: Remarks
132
+
- markdown: >-
133
+
Use this constructor when you want formatter-driven decoding without subclassing.
134
+
135
+
The <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.GetReadOnlyMemory(%600%40)" data-throw-if-not-resolved="false"></xref> and <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602.CreateCoordinate(System.Double%2cSystem.Double)" data-throw-if-not-resolved="false"></xref> hooks are not called;
136
+
137
+
all type-specific logic is delegated to the formatters.
description: A <xref href="System.ReadOnlyMemory%601" data-throw-if-not-resolved="false"></xref> of <xref href="System.Char" data-throw-if-not-resolved="false"></xref> representing the encoded polyline characters.
0 commit comments