@metoceanapi/wxtiles-leaflet 2.4.0-1 → 2.4.1-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/README.md +214 -92
  3. package/dist/es/index.d.ts +12 -16
  4. package/dist/es/index.js +4 -4
  5. package/dist/es/wxAPI/WxAPI.d.ts +17 -0
  6. package/dist/es/wxAPI/WxDataSetManager.d.ts +14 -4
  7. package/dist/es/wxsource/wxsource.d.ts +23 -19
  8. package/dist/es/wxsource/wxsourcetypes.d.ts +22 -10
  9. package/dist/web/index.js +4 -4
  10. package/docs/docs/assets/highlight.css +12 -19
  11. package/docs/docs/assets/search.js +1 -1
  12. package/docs/docs/classes/WxAPI.html +31 -18
  13. package/docs/docs/classes/WxAPIControl.html +70 -24
  14. package/docs/docs/classes/WxDataSetManager.html +22 -21
  15. package/docs/docs/classes/WxInfoControl.html +37 -10
  16. package/docs/docs/classes/WxLegendControl.html +33 -11
  17. package/docs/docs/classes/WxStyleEditorControl.html +206 -94
  18. package/docs/docs/classes/WxTileSource.html +40 -40
  19. package/docs/docs/classes/WxTimeControl.html +58 -20
  20. package/docs/docs/index.html +188 -101
  21. package/docs/docs/interfaces/FrameworkOptions.html +3 -3
  22. package/docs/docs/interfaces/WxSourceLayerOptions.html +5 -5
  23. package/docs/docs/modules.html +12 -130
  24. package/docs/docs/types/Loader.html +3 -59
  25. package/docs/docs/types/Painter.html +3 -59
  26. package/docs/docs/types/WxLayer.html +3 -59
  27. package/docs/docs/variables/WxLayerBaseImplementation.html +3 -59
  28. package/docs/script/script.css +1 -1
  29. package/docs/script/script.js +6 -6
  30. package/package.json +3 -3
  31. package/src_example/frwrkdeps.ts +131 -80
  32. package/src_example/index.ts +2 -53
  33. package/src_example/start.ts +143 -300
  34. package/dep.dot +0 -33
  35. package/dep.svg +0 -233
  36. package/docs/docs/classes/DataIntegral.html +0 -154
  37. package/docs/docs/classes/QTree.html +0 -185
  38. package/docs/docs/classes/RawCLUT.html +0 -143
  39. package/docs/docs/classes/TilesCache.html +0 -108
  40. package/docs/docs/enums/TileType.html +0 -80
  41. package/docs/docs/functions/WXLOG.html +0 -127
  42. package/docs/docs/functions/WxCreateLegend.html +0 -135
  43. package/docs/docs/functions/WxGetColorSchemes.html +0 -122
  44. package/docs/docs/functions/WxGetColorStyles.html +0 -122
  45. package/docs/docs/functions/WxTilesLogging.html +0 -130
  46. package/docs/docs/interfaces/CachedUriLoaderPromiseFunc.html +0 -108
  47. package/docs/docs/interfaces/ColorStylesIncomplete.html +0 -125
  48. package/docs/docs/interfaces/Converter.html +0 -81
  49. package/docs/docs/interfaces/DataPicture.html +0 -95
  50. package/docs/docs/interfaces/IntegralPare.html +0 -81
  51. package/docs/docs/interfaces/SLinePoint.html +0 -77
  52. package/docs/docs/interfaces/Tree.html +0 -74
  53. package/docs/docs/interfaces/WxAPIOptions.html +0 -173
  54. package/docs/docs/interfaces/WxAllBoundariesMeta.html +0 -90
  55. package/docs/docs/interfaces/WxAllDatasetsShortMetas.html +0 -125
  56. package/docs/docs/interfaces/WxBoundaryMeta.html +0 -99
  57. package/docs/docs/interfaces/WxColorSchemes.html +0 -126
  58. package/docs/docs/interfaces/WxColorStyleStrict.html +0 -359
  59. package/docs/docs/interfaces/WxColorStyleWeak.html +0 -388
  60. package/docs/docs/interfaces/WxColorStylesStrict.html +0 -74
  61. package/docs/docs/interfaces/WxColorStylesWeakMixed.html +0 -125
  62. package/docs/docs/interfaces/WxData.html +0 -85
  63. package/docs/docs/interfaces/WxDataSetManagerOptions.html +0 -117
  64. package/docs/docs/interfaces/WxDatasetMeta.html +0 -144
  65. package/docs/docs/interfaces/WxDatasetShortMeta.html +0 -91
  66. package/docs/docs/interfaces/WxLayerAPI.html +0 -375
  67. package/docs/docs/interfaces/WxLayerBaseAPI.html +0 -242
  68. package/docs/docs/interfaces/WxLayerOptions.html +0 -113
  69. package/docs/docs/interfaces/WxLegend.html +0 -118
  70. package/docs/docs/interfaces/WxLngLat.html +0 -81
  71. package/docs/docs/interfaces/WxRasterData.html +0 -118
  72. package/docs/docs/interfaces/WxRequestInit.html +0 -70
  73. package/docs/docs/interfaces/WxTick.html +0 -100
  74. package/docs/docs/interfaces/WxTileInfo.html +0 -142
  75. package/docs/docs/interfaces/WxUnits.html +0 -125
  76. package/docs/docs/interfaces/WxVariableMeta.html +0 -109
  77. package/docs/docs/interfaces/WxVariablesMetas.html +0 -125
  78. package/docs/docs/interfaces/XYZ.html +0 -84
  79. package/docs/docs/types/DataIntegrals.html +0 -118
  80. package/docs/docs/types/DataPictures.html +0 -118
  81. package/docs/docs/types/ListenerMethod.html +0 -134
  82. package/docs/docs/types/SLine.html +0 -118
  83. package/docs/docs/types/SubTrees.html +0 -118
  84. package/docs/docs/types/SubTreesN.html +0 -118
  85. package/docs/docs/types/TreeN.html +0 -118
  86. package/docs/docs/types/WxDate.html +0 -125
  87. package/docs/docs/types/WxEventType.html +0 -121
  88. package/docs/docs/types/WxInstances.html +0 -118
  89. package/docs/docs/types/WxLayerVarsNames.html +0 -118
  90. package/docs/docs/types/WxURIs.html +0 -118
  91. package/docs/docs/types/WxUnitTuple.html +0 -118
@@ -18,11 +18,12 @@
18
18
  <section class="tsd-panel tsd-comment">
19
19
  <div class="tsd-comment tsd-typography"><p>Class for managing a WX dataset and its related operations.</p>
20
20
  <p>Instances of this class handle metadata, variables, valid times, zoom levels,
21
- and URI construction for WX datasets.</p>
21
+ and URI construction for WX datasets.
22
+ <a href="../modules.html">@metoceanapi/wxtiles-common/managers/BaseDatasetManager/BaseDatasetManager</a></p>
22
23
  <p><strong>Usage Note:</strong> Do not create instances directly using the constructor.
23
24
  Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.</p>
24
25
 
25
- <h3>Example</h3><pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">wxapi</span><span class="hl-1"> = </span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-4">WxAPI</span><span class="hl-1">({ </span><span class="hl-3">dataServerURL:</span><span class="hl-1"> </span><span class="hl-2">&quot;https://example.com&quot;</span><span class="hl-1"> });</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">wxDatasetManager</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxapi</span><span class="hl-1">.</span><span class="hl-4">createDatasetManager</span><span class="hl-1">(</span><span class="hl-2">&quot;gfs.global&quot;</span><span class="hl-1">);</span><br/><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-4">getAllVariables</span><span class="hl-1">());</span>
26
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-4">async</span><span class="hl-1"> </span><span class="hl-4">function</span><span class="hl-1"> </span><span class="hl-5">fetchWxDataset</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-0">try</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">wxapi</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">WxAPI</span><span class="hl-1">({ </span><span class="hl-3">dataServerURL:</span><span class="hl-1"> </span><span class="hl-2">&quot;https://example.com&quot;</span><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">wxDatasetManager</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxapi</span><span class="hl-1">.</span><span class="hl-5">createDatasetManager</span><span class="hl-1">(</span><span class="hl-2">&quot;gfs.global&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-5">log</span><span class="hl-1">(</span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-5">getAllVariables</span><span class="hl-1">());</span><br/><span class="hl-1"> } </span><span class="hl-0">catch</span><span class="hl-1"> (</span><span class="hl-3">error</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-5">error</span><span class="hl-1">(</span><span class="hl-2">&quot;Error fetching dataset:&quot;</span><span class="hl-1">, </span><span class="hl-3">error</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-5">fetchWxDataset</span><span class="hl-1">();</span>
26
27
  </code></pre>
27
28
  </div></section>
28
29
  <section class="tsd-panel tsd-hierarchy">
@@ -32,7 +33,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
32
33
  <ul class="tsd-hierarchy">
33
34
  <li><span class="target">WxDataSetManager</span></li></ul></li></ul></section><aside class="tsd-sources">
34
35
  <ul>
35
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxAPI/WxDataSetManager.ts#L33">wxtiles-leaflet/src/wxAPI/WxDataSetManager.ts:33</a></li></ul></aside>
36
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxAPI/WxDataSetManager.ts#L36">wxtiles-leaflet/src/wxAPI/WxDataSetManager.ts:36</a></li></ul></aside>
36
37
  <section class="tsd-panel-group tsd-index-group">
37
38
  <section class="tsd-panel tsd-index-panel">
38
39
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -69,7 +70,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
69
70
  <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a id="constructor" class="tsd-anchor"></a>
70
71
  <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
71
72
  <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
72
- <li class="tsd-signature tsd-anchor-link" id="constructor.new_WxDataSetManager">new <wbr/>Wx<wbr/>Data<wbr/>Set<wbr/>Manager<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><a href="../interfaces/WxDataSetManagerOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">WxDataSetManagerOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WxDataSetManager.html" class="tsd-signature-type" data-tsd-kind="Class">WxDataSetManager</a><a href="#constructor.new_WxDataSetManager" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
73
+ <li class="tsd-signature tsd-anchor-link" id="constructor.new_WxDataSetManager">new <wbr/>Wx<wbr/>Data<wbr/>Set<wbr/>Manager<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WxDataSetManagerOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WxDataSetManager.html" class="tsd-signature-type" data-tsd-kind="Class">WxDataSetManager</a><a href="#constructor.new_WxDataSetManager" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
73
74
  <li class="tsd-description">
74
75
  <div class="tsd-comment tsd-typography"><p>Do not use this constructor directly. Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.</p>
75
76
  </div>
@@ -77,7 +78,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
77
78
  <h4 class="tsd-parameters-title">Parameters</h4>
78
79
  <ul class="tsd-parameter-list">
79
80
  <li>
80
- <h5>options: <a href="../interfaces/WxDataSetManagerOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">WxDataSetManagerOptions</a></h5>
81
+ <h5>options: <span class="tsd-signature-type">WxDataSetManagerOptions</span></h5>
81
82
  <div class="tsd-comment tsd-typography"><p>Dataset manager options.</p>
82
83
  </div></li></ul></div>
83
84
  <h4 class="tsd-returns-title">Returns <a href="WxDataSetManager.html" class="tsd-signature-type" data-tsd-kind="Class">WxDataSetManager</a></h4><aside class="tsd-sources">
@@ -107,7 +108,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
107
108
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited"><a id="_checkCombineVariableIfVector" class="tsd-anchor"></a>
108
109
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_check<wbr/>Combine<wbr/>Variable<wbr/>If<wbr/>Vector</span><a href="#_checkCombineVariableIfVector" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
109
110
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited">
110
- <li class="tsd-signature tsd-anchor-link" id="_checkCombineVariableIfVector._checkCombineVariableIfVector-1">_check<wbr/>Combine<wbr/>Variable<wbr/>If<wbr/>Vector<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/WxLayerVarsNames.html" class="tsd-signature-type" data-tsd-kind="Type alias">WxLayerVarsNames</a><a href="#_checkCombineVariableIfVector._checkCombineVariableIfVector-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
111
+ <li class="tsd-signature tsd-anchor-link" id="_checkCombineVariableIfVector._checkCombineVariableIfVector-1">_check<wbr/>Combine<wbr/>Variable<wbr/>If<wbr/>Vector<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WxLayerVarsNames</span><a href="#_checkCombineVariableIfVector._checkCombineVariableIfVector-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
111
112
  <li class="tsd-description"><code class="tsd-tag ts-flagInternal">Internal</code>
112
113
  <div class="tsd-comment tsd-typography"><p>Checks if variable is a vector component.</p>
113
114
 
@@ -122,7 +123,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
122
123
  <ul class="tsd-parameter-list">
123
124
  <li>
124
125
  <h5>variable: <span class="tsd-signature-type">string</span></h5></li></ul></div>
125
- <h4 class="tsd-returns-title">Returns <a href="../types/WxLayerVarsNames.html" class="tsd-signature-type" data-tsd-kind="Type alias">WxLayerVarsNames</a></h4><aside class="tsd-sources">
126
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">WxLayerVarsNames</span></h4><aside class="tsd-sources">
126
127
  <p>Inherited from BaseDatasetManager._checkCombineVariableIfVector</p>
127
128
  <ul>
128
129
  <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/managers/BaseDatasetManager.ts#L255">wxtiles-common/managers/BaseDatasetManager.ts:255</a></li></ul></aside></li></ul></section>
@@ -137,7 +138,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
137
138
  <li>A new tile source ready for rendering.</li>
138
139
  </ul>
139
140
 
140
- <h3>Example</h3><pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">sourceLayer</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-4">createSourceLayer</span><span class="hl-1">(</span><br/><span class="hl-1"> { </span><span class="hl-3">variable:</span><span class="hl-1"> </span><span class="hl-2">&quot;temperature&quot;</span><span class="hl-1"> },</span><br/><span class="hl-1"> { </span><span class="hl-3">framework:</span><span class="hl-1"> </span><span class="hl-2">&quot;leaflet&quot;</span><span class="hl-1"> }</span><br/><span class="hl-1">);</span>
141
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">sourceLayer</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-5">createSourceLayer</span><span class="hl-1">(</span><br/><span class="hl-1"> { </span><span class="hl-3">variable:</span><span class="hl-1"> </span><span class="hl-2">&quot;temperature&quot;</span><span class="hl-1"> },</span><br/><span class="hl-1"> { </span><span class="hl-3">framework:</span><span class="hl-1"> </span><span class="hl-2">&quot;leaflet&quot;</span><span class="hl-1"> }</span><br/><span class="hl-1">);</span>
141
142
  </code></pre>
142
143
  </div>
143
144
  <div class="tsd-parameters">
@@ -153,7 +154,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
153
154
  </div></li></ul></div>
154
155
  <h4 class="tsd-returns-title">Returns <a href="WxTileSource.html" class="tsd-signature-type" data-tsd-kind="Class">WxTileSource</a></h4><aside class="tsd-sources">
155
156
  <ul>
156
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxAPI/WxDataSetManager.ts#L50">wxtiles-leaflet/src/wxAPI/WxDataSetManager.ts:50</a></li></ul></aside></li></ul></section>
157
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-leaflet/blob/main/src/wxAPI/WxDataSetManager.ts#L53">wxtiles-leaflet/src/wxAPI/WxDataSetManager.ts:53</a></li></ul></aside></li></ul></section>
157
158
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createURI" class="tsd-anchor"></a>
158
159
  <h3 class="tsd-anchor-link"><span>createURI</span><a href="#createURI" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
159
160
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
@@ -169,7 +170,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
169
170
  <li>If the variable is invalid.</li>
170
171
  </ul>
171
172
 
172
- <h3>Example</h3><pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">uri</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-4">createURI</span><span class="hl-1">(</span><span class="hl-2">&quot;temperature&quot;</span><span class="hl-1">, </span><span class="hl-2">&quot;2024-06-10T12:00:00Z&quot;</span><span class="hl-1">);</span><br/><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-3">uri</span><span class="hl-1">);</span>
173
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">uri</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-5">createURI</span><span class="hl-1">(</span><span class="hl-2">&quot;temperature&quot;</span><span class="hl-1">, </span><span class="hl-2">&quot;2024-06-10T12:00:00Z&quot;</span><span class="hl-1">);</span><br/><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-5">log</span><span class="hl-1">(</span><span class="hl-3">uri</span><span class="hl-1">);</span>
173
174
  </code></pre>
174
175
  </div>
175
176
  <div class="tsd-parameters">
@@ -224,7 +225,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
224
225
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getBoundaries" class="tsd-anchor"></a>
225
226
  <h3 class="tsd-anchor-link"><span>get<wbr/>Boundaries</span><a href="#getBoundaries" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
226
227
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
227
- <li class="tsd-signature tsd-anchor-link" id="getBoundaries.getBoundaries-1">get<wbr/>Boundaries<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxAllBoundariesMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxAllBoundariesMeta</a><a href="#getBoundaries.getBoundaries-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
228
+ <li class="tsd-signature tsd-anchor-link" id="getBoundaries.getBoundaries-1">get<wbr/>Boundaries<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxAllBoundariesMeta</span><a href="#getBoundaries.getBoundaries-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
228
229
  <li class="tsd-description">
229
230
  <div class="tsd-comment tsd-typography"><p>Get dataset&#39;s boundaries.</p>
230
231
 
@@ -232,14 +233,14 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
232
233
  <li>dataset&#39;s boundaries</li>
233
234
  </ul>
234
235
  </div>
235
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxAllBoundariesMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxAllBoundariesMeta</a></h4><aside class="tsd-sources">
236
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxAllBoundariesMeta</span></h4><aside class="tsd-sources">
236
237
  <p>Inherited from BaseDatasetManager.getBoundaries</p>
237
238
  <ul>
238
239
  <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/managers/BaseDatasetManager.ts#L177">wxtiles-common/managers/BaseDatasetManager.ts:177</a></li></ul></aside></li></ul></section>
239
240
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getInstanceMeta" class="tsd-anchor"></a>
240
241
  <h3 class="tsd-anchor-link"><span>get<wbr/>Instance<wbr/>Meta</span><a href="#getInstanceMeta" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
241
242
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
242
- <li class="tsd-signature tsd-anchor-link" id="getInstanceMeta.getInstanceMeta-1">get<wbr/>Instance<wbr/>Meta<span class="tsd-signature-symbol">(</span>instance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/WxDatasetMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxDatasetMeta</a><a href="#getInstanceMeta.getInstanceMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
243
+ <li class="tsd-signature tsd-anchor-link" id="getInstanceMeta.getInstanceMeta-1">get<wbr/>Instance<wbr/>Meta<span class="tsd-signature-symbol">(</span>instance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WxDatasetMeta</span><a href="#getInstanceMeta.getInstanceMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
243
244
  <li class="tsd-description">
244
245
  <div class="tsd-comment tsd-typography"><p>Get dataset&#39;s metadata for the given instance.</p>
245
246
 
@@ -249,14 +250,14 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
249
250
  <ul class="tsd-parameter-list">
250
251
  <li>
251
252
  <h5><code class="tsd-tag ts-flagOptional">Optional</code> instance: <span class="tsd-signature-type">string</span></h5></li></ul></div>
252
- <h4 class="tsd-returns-title">Returns <a href="../interfaces/WxDatasetMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxDatasetMeta</a></h4><aside class="tsd-sources">
253
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">WxDatasetMeta</span></h4><aside class="tsd-sources">
253
254
  <p>Inherited from BaseDatasetManager.getInstanceMeta</p>
254
255
  <ul>
255
256
  <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/managers/BaseDatasetManager.ts#L187">wxtiles-common/managers/BaseDatasetManager.ts:187</a></li></ul></aside></li></ul></section>
256
257
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getInstanceVariableMeta" class="tsd-anchor"></a>
257
258
  <h3 class="tsd-anchor-link"><span>get<wbr/>Instance<wbr/>Variable<wbr/>Meta</span><a href="#getInstanceVariableMeta" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
258
259
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
259
- <li class="tsd-signature tsd-anchor-link" id="getInstanceVariableMeta.getInstanceVariableMeta-1">get<wbr/>Instance<wbr/>Variable<wbr/>Meta<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, instance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxVariableMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxVariableMeta</a><a href="#getInstanceVariableMeta.getInstanceVariableMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
260
+ <li class="tsd-signature tsd-anchor-link" id="getInstanceVariableMeta.getInstanceVariableMeta-1">get<wbr/>Instance<wbr/>Variable<wbr/>Meta<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, instance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxVariableMeta</span><a href="#getInstanceVariableMeta.getInstanceVariableMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
260
261
  <li class="tsd-description">
261
262
  <div class="tsd-comment tsd-typography"><p>Get the variable meta from the instanced dataset.</p>
262
263
 
@@ -275,7 +276,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
275
276
  <h5>variable: <span class="tsd-signature-type">string</span></h5></li>
276
277
  <li>
277
278
  <h5><code class="tsd-tag ts-flagOptional">Optional</code> instance: <span class="tsd-signature-type">string</span></h5></li></ul></div>
278
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxVariableMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxVariableMeta</a></h4><aside class="tsd-sources">
279
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxVariableMeta</span></h4><aside class="tsd-sources">
279
280
  <p>Inherited from BaseDatasetManager.getInstanceVariableMeta</p>
280
281
  <ul>
281
282
  <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/managers/BaseDatasetManager.ts#L154">wxtiles-common/managers/BaseDatasetManager.ts:154</a></li></ul></aside></li></ul></section>
@@ -297,7 +298,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
297
298
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getNearestValidTime" class="tsd-anchor"></a>
298
299
  <h3 class="tsd-anchor-link"><span>get<wbr/>Nearest<wbr/>Valid<wbr/>Time</span><a href="#getNearestValidTime" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
299
300
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
300
- <li class="tsd-signature tsd-anchor-link" id="getNearestValidTime.getNearestValidTime-1">get<wbr/>Nearest<wbr/>Valid<wbr/>Time<span class="tsd-signature-symbol">(</span>time<span class="tsd-signature-symbol">??: </span><a href="../types/WxDate.html" class="tsd-signature-type" data-tsd-kind="Type alias">WxDate</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#getNearestValidTime.getNearestValidTime-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
301
+ <li class="tsd-signature tsd-anchor-link" id="getNearestValidTime.getNearestValidTime-1">get<wbr/>Nearest<wbr/>Valid<wbr/>Time<span class="tsd-signature-symbol">(</span>time<span class="tsd-signature-symbol">??: </span><span class="tsd-signature-type">WxDate</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#getNearestValidTime.getNearestValidTime-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
301
302
  <li class="tsd-description">
302
303
  <div class="tsd-comment tsd-typography"><p>Finds the nearest valid time in the dataset based on the input.</p>
303
304
  <ul>
@@ -315,14 +316,14 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
315
316
  <li>The nearest valid time from the dataset&#39;s time steps.</li>
316
317
  </ul>
317
318
 
318
- <h3>Example</h3><pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">nearestTime</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-4">getNearestValidTime</span><span class="hl-1">(</span><span class="hl-2">&quot;2024-06-10T12:00:00Z&quot;</span><span class="hl-1">);</span><br/><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-3">nearestTime</span><span class="hl-1">); </span><span class="hl-5">// Closest valid time</span>
319
+ <h3>Example</h3><pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">nearestTime</span><span class="hl-1"> = </span><span class="hl-3">wxDatasetManager</span><span class="hl-1">.</span><span class="hl-5">getNearestValidTime</span><span class="hl-1">(</span><span class="hl-2">&quot;2024-06-10T12:00:00Z&quot;</span><span class="hl-1">);</span><br/><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-5">log</span><span class="hl-1">(</span><span class="hl-3">nearestTime</span><span class="hl-1">); </span><span class="hl-7">// Closest valid time</span>
319
320
  </code></pre>
320
321
  </div>
321
322
  <div class="tsd-parameters">
322
323
  <h4 class="tsd-parameters-title">Parameters</h4>
323
324
  <ul class="tsd-parameter-list">
324
325
  <li>
325
- <h5><code class="tsd-tag ts-flagOptional">Optional</code> time: <a href="../types/WxDate.html" class="tsd-signature-type" data-tsd-kind="Type alias">WxDate</a><span class="tsd-signature-symbol"> = ...</span></h5>
326
+ <h5><code class="tsd-tag ts-flagOptional">Optional</code> time: <span class="tsd-signature-type">WxDate</span><span class="tsd-signature-symbol"> = ...</span></h5>
326
327
  <div class="tsd-comment tsd-typography"><p>Input time as a string, number, or Date object.</p>
327
328
  </div></li></ul></div>
328
329
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
@@ -332,7 +333,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
332
333
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getVariableCurrentMeta" class="tsd-anchor"></a>
333
334
  <h3 class="tsd-anchor-link"><span>get<wbr/>Variable<wbr/>Current<wbr/>Meta</span><a href="#getVariableCurrentMeta" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
334
335
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
335
- <li class="tsd-signature tsd-anchor-link" id="getVariableCurrentMeta.getVariableCurrentMeta-1">get<wbr/>Variable<wbr/>Current<wbr/>Meta<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxVariableMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxVariableMeta</a><a href="#getVariableCurrentMeta.getVariableCurrentMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
336
+ <li class="tsd-signature tsd-anchor-link" id="getVariableCurrentMeta.getVariableCurrentMeta-1">get<wbr/>Variable<wbr/>Current<wbr/>Meta<span class="tsd-signature-symbol">(</span>variable<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxVariableMeta</span><a href="#getVariableCurrentMeta.getVariableCurrentMeta-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
336
337
  <li class="tsd-description">
337
338
  <div class="tsd-comment tsd-typography"><p>Get the variable&#39;s meta from the dataset.</p>
338
339
 
@@ -347,7 +348,7 @@ Use <a href="WxAPI.html#createDatasetManager">createDatasetManager</a> instead.<
347
348
  <ul class="tsd-parameter-list">
348
349
  <li>
349
350
  <h5>variable: <span class="tsd-signature-type">string</span></h5></li></ul></div>
350
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/WxVariableMeta.html" class="tsd-signature-type" data-tsd-kind="Interface">WxVariableMeta</a></h4><aside class="tsd-sources">
351
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxVariableMeta</span></h4><aside class="tsd-sources">
351
352
  <p>Inherited from BaseDatasetManager.getVariableCurrentMeta</p>
352
353
  <ul>
353
354
  <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/managers/BaseDatasetManager.ts#L141">wxtiles-common/managers/BaseDatasetManager.ts:141</a></li></ul></aside></li></ul></section>
@@ -15,12 +15,21 @@
15
15
  <li><a href="../modules.html">@metoceanapi/wxtiles-leaflet</a></li>
16
16
  <li><a href="WxInfoControl.html">WxInfoControl</a></li></ul>
17
17
  <h1>Class WxInfoControl</h1></div>
18
+ <section class="tsd-panel tsd-comment">
19
+ <div class="tsd-comment tsd-typography"><p>Represents a control for displaying weather information on a map.
20
+ The control shows details about the weather dataset, including variable metadata,
21
+ dataset information, and weather values at a given position.</p>
22
+
23
+ <h3>Param</h3><p>The HTMLDivElement that represents the control&#39;s container.</p>
24
+
25
+ <h3>Param</h3><p>The position (longitude, latitude) of the control.</p>
26
+ </div></section>
18
27
  <section class="tsd-panel tsd-hierarchy">
19
28
  <h4>Hierarchy</h4>
20
29
  <ul class="tsd-hierarchy">
21
30
  <li><span class="target">WxInfoControl</span></li></ul></section><aside class="tsd-sources">
22
31
  <ul>
23
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L50">wxtiles-common/controls/WxInfoControl.ts:50</a></li></ul></aside>
32
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L114">wxtiles-common/controls/WxInfoControl.ts:114</a></li></ul></aside>
24
33
  <section class="tsd-panel-group tsd-index-group">
25
34
  <section class="tsd-panel tsd-index-panel">
26
35
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -51,14 +60,14 @@
51
60
  <li class="tsd-description">
52
61
  <h4 class="tsd-returns-title">Returns <a href="WxInfoControl.html" class="tsd-signature-type" data-tsd-kind="Class">WxInfoControl</a></h4><aside class="tsd-sources">
53
62
  <ul>
54
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L53">wxtiles-common/controls/WxInfoControl.ts:53</a></li></ul></aside></li></ul></section></section>
63
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L117">wxtiles-common/controls/WxInfoControl.ts:117</a></li></ul></aside></li></ul></section></section>
55
64
  <section class="tsd-panel-group tsd-member-group">
56
65
  <h2>Properties</h2>
57
66
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="div" class="tsd-anchor"></a>
58
67
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>div</span><a href="#div" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
59
68
  <div class="tsd-signature">div<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLDivElement</span></div><aside class="tsd-sources">
60
69
  <ul>
61
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L51">wxtiles-common/controls/WxInfoControl.ts:51</a></li></ul></aside></section>
70
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L115">wxtiles-common/controls/WxInfoControl.ts:115</a></li></ul></aside></section>
62
71
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="pos" class="tsd-anchor"></a>
63
72
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>pos</span><a href="#pos" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
64
73
  <div class="tsd-signature">pos<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>lat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>lng<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
@@ -70,7 +79,7 @@
70
79
  <li class="tsd-parameter">
71
80
  <h5>lng<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
72
81
  <ul>
73
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L52">wxtiles-common/controls/WxInfoControl.ts:52</a></li></ul></aside></section></section>
82
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L116">wxtiles-common/controls/WxInfoControl.ts:116</a></li></ul></aside></section></section>
74
83
  <section class="tsd-panel-group tsd-member-group">
75
84
  <h2>Methods</h2>
76
85
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="extender" class="tsd-anchor"></a>
@@ -78,6 +87,10 @@
78
87
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
79
88
  <li class="tsd-signature tsd-anchor-link" id="extender.extender-1">extender<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span>onAdd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">HTMLDivElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>onRemove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#extender.extender-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
80
89
  <li class="tsd-description">
90
+ <div class="tsd-comment tsd-typography"><p>Returns methods to integrate this control with a Leaflet map.</p>
91
+
92
+ <h3>Returns</h3><p>An object containing the <code>onAdd</code> and <code>onRemove</code> methods for Leaflet integration.</p>
93
+ </div>
81
94
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span>    </span>onAdd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">HTMLDivElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>onRemove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4>
82
95
  <ul class="tsd-parameters">
83
96
  <li class="tsd-parameter">
@@ -97,37 +110,51 @@
97
110
  <li class="tsd-description">
98
111
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul><aside class="tsd-sources">
99
112
  <ul>
100
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L112">wxtiles-common/controls/WxInfoControl.ts:112</a></li></ul></aside></li></ul></section>
113
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L196">wxtiles-common/controls/WxInfoControl.ts:196</a></li></ul></aside></li></ul></section>
101
114
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="onAdd-1" class="tsd-anchor"></a>
102
115
  <h3 class="tsd-anchor-link"><span>on<wbr/>Add</span><a href="#onAdd-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
103
116
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
104
117
  <li class="tsd-signature tsd-anchor-link" id="onAdd-1.onAdd-2">on<wbr/>Add<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLDivElement</span><a href="#onAdd-1.onAdd-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
105
118
  <li class="tsd-description">
119
+ <div class="tsd-comment tsd-typography"><p>Adds the control to the map and returns the div element.</p>
120
+
121
+ <h3>Returns</h3><p>The div element representing the control.</p>
122
+ </div>
106
123
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HTMLDivElement</span></h4><aside class="tsd-sources">
107
124
  <ul>
108
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L63">wxtiles-common/controls/WxInfoControl.ts:63</a></li></ul></aside></li></ul></section>
125
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L132">wxtiles-common/controls/WxInfoControl.ts:132</a></li></ul></aside></li></ul></section>
109
126
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="onRemove-1" class="tsd-anchor"></a>
110
127
  <h3 class="tsd-anchor-link"><span>on<wbr/>Remove</span><a href="#onRemove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
111
128
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
112
129
  <li class="tsd-signature tsd-anchor-link" id="onRemove-1.onRemove-2">on<wbr/>Remove<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#onRemove-1.onRemove-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
113
130
  <li class="tsd-description">
131
+ <div class="tsd-comment tsd-typography"><p>Removes the control from the map.</p>
132
+ </div>
114
133
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
115
134
  <ul>
116
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L67">wxtiles-common/controls/WxInfoControl.ts:67</a></li></ul></aside></li></ul></section>
135
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L139">wxtiles-common/controls/WxInfoControl.ts:139</a></li></ul></aside></li></ul></section>
117
136
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="update" class="tsd-anchor"></a>
118
137
  <h3 class="tsd-anchor-link"><span>update</span><a href="#update" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
119
138
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
120
139
  <li class="tsd-signature tsd-anchor-link" id="update.update-1">update<span class="tsd-signature-symbol">(</span>wxsource<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxTileSource</span>, map<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, pos_<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span>lat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>lng<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#update.update-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
121
140
  <li class="tsd-description">
141
+ <div class="tsd-comment tsd-typography"><p>Updates the control with new weather information and position.</p>
142
+ </div>
122
143
  <div class="tsd-parameters">
123
144
  <h4 class="tsd-parameters-title">Parameters</h4>
124
145
  <ul class="tsd-parameter-list">
125
146
  <li>
126
- <h5>wxsource: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxTileSource</span></h5></li>
147
+ <h5>wxsource: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">WxTileSource</span></h5>
148
+ <div class="tsd-comment tsd-typography"><p>The WxTileSource instance used to retrieve weather data.</p>
149
+ </div></li>
127
150
  <li>
128
- <h5>map: <span class="tsd-signature-type">any</span></h5></li>
151
+ <h5>map: <span class="tsd-signature-type">any</span></h5>
152
+ <div class="tsd-comment tsd-typography"><p>The map object (typically for map-based operations, but suppressed here).</p>
153
+ </div></li>
129
154
  <li>
130
155
  <h5><code class="tsd-tag ts-flagOptional">Optional</code> pos_: <span class="tsd-signature-symbol">{ </span><br/><span>    </span>lat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>lng<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h5>
156
+ <div class="tsd-comment tsd-typography"><p>An optional position to update the control&#39;s location.</p>
157
+ </div>
131
158
  <ul class="tsd-parameters">
132
159
  <li class="tsd-parameter">
133
160
  <h5>lat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li>
@@ -135,7 +162,7 @@
135
162
  <h5>lng<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul></div>
136
163
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
137
164
  <ul>
138
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L71">wxtiles-common/controls/WxInfoControl.ts:71</a></li></ul></aside></li></ul></section></section></div>
165
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxInfoControl.ts#L150">wxtiles-common/controls/WxInfoControl.ts:150</a></li></ul></aside></li></ul></section></section></div>
139
166
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
140
167
  <div class="tsd-navigation settings">
141
168
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
@@ -15,12 +15,17 @@
15
15
  <li><a href="../modules.html">@metoceanapi/wxtiles-leaflet</a></li>
16
16
  <li><a href="WxLegendControl.html">WxLegendControl</a></li></ul>
17
17
  <h1>Class WxLegendControl</h1></div>
18
+ <section class="tsd-panel tsd-comment">
19
+ <div class="tsd-comment tsd-typography"><p>Represents a control for displaying a weather legend on a map.
20
+ The control shows a color gradient legend based on weather data values.
21
+ It allows for drawing the legend with specific styles and clearing the canvas.</p>
22
+ </div></section>
18
23
  <section class="tsd-panel tsd-hierarchy">
19
24
  <h4>Hierarchy</h4>
20
25
  <ul class="tsd-hierarchy">
21
26
  <li><span class="target">WxLegendControl</span></li></ul></section><aside class="tsd-sources">
22
27
  <ul>
23
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L12">wxtiles-common/controls/WxLegendControl.ts:12</a></li></ul></aside>
28
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L17">wxtiles-common/controls/WxLegendControl.ts:17</a></li></ul></aside>
24
29
  <section class="tsd-panel-group tsd-index-group">
25
30
  <section class="tsd-panel tsd-index-panel">
26
31
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -52,19 +57,19 @@
52
57
  <li class="tsd-description">
53
58
  <h4 class="tsd-returns-title">Returns <a href="WxLegendControl.html" class="tsd-signature-type" data-tsd-kind="Class">WxLegendControl</a></h4><aside class="tsd-sources">
54
59
  <ul>
55
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L15">wxtiles-common/controls/WxLegendControl.ts:15</a></li></ul></aside></li></ul></section></section>
60
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L20">wxtiles-common/controls/WxLegendControl.ts:20</a></li></ul></aside></li></ul></section></section>
56
61
  <section class="tsd-panel-group tsd-member-group">
57
62
  <h2>Properties</h2>
58
63
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_canvas" class="tsd-anchor"></a>
59
64
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_canvas</span><a href="#_canvas" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
60
65
  <div class="tsd-signature">_canvas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLCanvasElement</span></div><aside class="tsd-sources">
61
66
  <ul>
62
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L14">wxtiles-common/controls/WxLegendControl.ts:14</a></li></ul></aside></section>
67
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L19">wxtiles-common/controls/WxLegendControl.ts:19</a></li></ul></aside></section>
63
68
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_div" class="tsd-anchor"></a>
64
69
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>_div</span><a href="#_div" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
65
70
  <div class="tsd-signature">_div<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HTMLDivElement</span></div><aside class="tsd-sources">
66
71
  <ul>
67
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L13">wxtiles-common/controls/WxLegendControl.ts:13</a></li></ul></aside></section></section>
72
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L18">wxtiles-common/controls/WxLegendControl.ts:18</a></li></ul></aside></section></section>
68
73
  <section class="tsd-panel-group tsd-member-group">
69
74
  <h2>Methods</h2>
70
75
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="clear" class="tsd-anchor"></a>
@@ -72,27 +77,38 @@
72
77
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
73
78
  <li class="tsd-signature tsd-anchor-link" id="clear.clear-1">clear<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#clear.clear-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
74
79
  <li class="tsd-description">
80
+ <div class="tsd-comment tsd-typography"><p>Clears the canvas, removing any existing legend or graphics.</p>
81
+ </div>
75
82
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
76
83
  <ul>
77
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L118">wxtiles-common/controls/WxLegendControl.ts:118</a></li></ul></aside></li></ul></section>
84
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L140">wxtiles-common/controls/WxLegendControl.ts:140</a></li></ul></aside></li></ul></section>
78
85
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="drawLegend" class="tsd-anchor"></a>
79
86
  <h3 class="tsd-anchor-link"><span>draw<wbr/>Legend</span><a href="#drawLegend" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
80
87
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
81
- <li class="tsd-signature tsd-anchor-link" id="drawLegend.drawLegend-1">draw<wbr/>Legend<span class="tsd-signature-symbol">(</span>style<span class="tsd-signature-symbol">: </span><a href="../interfaces/WxColorStyleStrict.html" class="tsd-signature-type" data-tsd-kind="Interface">WxColorStyleStrict</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#drawLegend.drawLegend-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
88
+ <li class="tsd-signature tsd-anchor-link" id="drawLegend.drawLegend-1">draw<wbr/>Legend<span class="tsd-signature-symbol">(</span>style<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">WxColorStyleStrict</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#drawLegend.drawLegend-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
82
89
  <li class="tsd-description">
90
+ <div class="tsd-comment tsd-typography"><p>Draws the legend on the canvas based on the provided color style.
91
+ The legend includes a color gradient and ticks for data values.</p>
92
+ </div>
83
93
  <div class="tsd-parameters">
84
94
  <h4 class="tsd-parameters-title">Parameters</h4>
85
95
  <ul class="tsd-parameter-list">
86
96
  <li>
87
- <h5>style: <a href="../interfaces/WxColorStyleStrict.html" class="tsd-signature-type" data-tsd-kind="Interface">WxColorStyleStrict</a></h5></li></ul></div>
97
+ <h5>style: <span class="tsd-signature-type">WxColorStyleStrict</span></h5>
98
+ <div class="tsd-comment tsd-typography"><p>The WxColorStyleStrict object defining the color style for the legend.</p>
99
+ </div></li></ul></div>
88
100
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
89
101
  <ul>
90
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L38">wxtiles-common/controls/WxLegendControl.ts:38</a></li></ul></aside></li></ul></section>
102
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L57">wxtiles-common/controls/WxLegendControl.ts:57</a></li></ul></aside></li></ul></section>
91
103
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="extender" class="tsd-anchor"></a>
92
104
  <h3 class="tsd-anchor-link"><span>extender</span><a href="#extender" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
93
105
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
94
106
  <li class="tsd-signature tsd-anchor-link" id="extender.extender-1">extender<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span>onAdd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">HTMLDivElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>onRemove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#extender.extender-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
95
107
  <li class="tsd-description">
108
+ <div class="tsd-comment tsd-typography"><p>Returns methods to integrate this legend control with a Leaflet map.</p>
109
+
110
+ <h3>Returns</h3><p>An object containing the <code>onAdd</code> and <code>onRemove</code> methods for Leaflet integration.</p>
111
+ </div>
96
112
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span>    </span>onAdd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">HTMLDivElement</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>onRemove<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4>
97
113
  <ul class="tsd-parameters">
98
114
  <li class="tsd-parameter">
@@ -112,23 +128,29 @@
112
128
  <li class="tsd-description">
113
129
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul><aside class="tsd-sources">
114
130
  <ul>
115
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L129">wxtiles-common/controls/WxLegendControl.ts:129</a></li></ul></aside></li></ul></section>
131
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L155">wxtiles-common/controls/WxLegendControl.ts:155</a></li></ul></aside></li></ul></section>
116
132
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="onAdd-1" class="tsd-anchor"></a>
117
133
  <h3 class="tsd-anchor-link"><span>on<wbr/>Add</span><a href="#onAdd-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
118
134
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
119
135
  <li class="tsd-signature tsd-anchor-link" id="onAdd-1.onAdd-2">on<wbr/>Add<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLDivElement</span><a href="#onAdd-1.onAdd-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
120
136
  <li class="tsd-description">
137
+ <div class="tsd-comment tsd-typography"><p>Adds the legend control to the map and returns the div element.</p>
138
+
139
+ <h3>Returns</h3><p>The div element representing the legend control.</p>
140
+ </div>
121
141
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HTMLDivElement</span></h4><aside class="tsd-sources">
122
142
  <ul>
123
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L30">wxtiles-common/controls/WxLegendControl.ts:30</a></li></ul></aside></li></ul></section>
143
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L40">wxtiles-common/controls/WxLegendControl.ts:40</a></li></ul></aside></li></ul></section>
124
144
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="onRemove-1" class="tsd-anchor"></a>
125
145
  <h3 class="tsd-anchor-link"><span>on<wbr/>Remove</span><a href="#onRemove-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
126
146
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
127
147
  <li class="tsd-signature tsd-anchor-link" id="onRemove-1.onRemove-2">on<wbr/>Remove<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#onRemove-1.onRemove-2" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
128
148
  <li class="tsd-description">
149
+ <div class="tsd-comment tsd-typography"><p>Removes the legend control from the map.</p>
150
+ </div>
129
151
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
130
152
  <ul>
131
- <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L34">wxtiles-common/controls/WxLegendControl.ts:34</a></li></ul></aside></li></ul></section></section></div>
153
+ <li>Defined in <a href="https://github.com/metoceanapi/wxtiles-common/blob/main/controls/WxLegendControl.ts#L47">wxtiles-common/controls/WxLegendControl.ts:47</a></li></ul></aside></li></ul></section></section></div>
132
154
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
133
155
  <div class="tsd-navigation settings">
134
156
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">