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

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 +4 -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 +24 -20
  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
@@ -17,32 +17,29 @@
17
17
  <h1>wxtiles</h1>
18
18
  </a>
19
19
  <p>This is a project for weather data visualization.
20
- There are three main parts of the project:</p>
20
+ There are two main parts of the project:</p>
21
21
  <ol>
22
- <li><a href="https://github.com/metocean/wxtile-splitter">Splitter</a> - a service that splits the datasets into tiles (PNG) and some metadata (JSON) served by a fileserver backend aka NGINX.</li>
23
- <li><a href="https://github.com/metoceanapi/wxtiles-mbox">WxTiles-mbox source code</a>, npm <a href="https://www.npmjs.com/package/@metoceanapi/wxtiles-mbox">@metoceanapi/wxtiles-mbox</a> - a JS API providing work with metadata, dataset manager and an implementation of a Custom MapBox-gl-gs Layer for visualizing the tiles using <a href="https://www.mapbox.com/">Mapbox-gl-gs</a>.</li>
24
- <li><a href="https://github.com/metoceanapi/wxtiles-leaflet">WxTiles-leaflet source code</a>, npm <a href="https://www.npmjs.com/package/@metoceanapi/wxtiles-leaflet">@metoceanapi/wxtiles-leaflet</a> - a JS API providing work with metadata, dataset manager and an implementation of a Custom Leaflet Layer for visualizing the tiles using <a href="https://leafletjs.com/">Leaflet</a>.</li>
22
+ <li><a href="https://github.com/metocean/wxtile-splitter">Splitter</a> - a service that splits the datasets into tiles (PNG) and some metadata (JSON) served by a fileserver backend.</li>
23
+ <li><a href="https://www.npmjs.com/package/@metoceanapi/wxtiles-leaflet">@metoceanapi/wxtiles-leaflet</a> - a JS API providing work with metadata, dataset manager and an implementation of a Custom Leaflet Layer for visualizing the tiles using <a href="https://leafletjs.com/">Leaflet</a>.</li>
25
24
  </ol>
26
25
 
27
26
  <a href="#api" id="api" style="color: inherit; text-decoration: none;">
28
27
  <h2>API</h2>
29
28
  </a>
30
- <p>APIs for Leaflet and Mapbox-gl-gs are similar in many ways. The difference is in framework-specific implementations of the Custom Source/Layer.</p>
31
- <p>Usage and API documentation is mainly equal for both frameworks.</p>
29
+ <p>The API for Leaflet is designed for working with weather data tiles and allows the integration of custom layers for data visualization.</p>
32
30
 
33
31
  <a href="#docs" id="docs" style="color: inherit; text-decoration: none;">
34
32
  <h2>DOCS</h2>
35
33
  </a>
36
34
  <ul>
37
- <li>Mapbox-gl: <a href="https://metoceanapi.github.io/wxtiles-mbox/docs/">https://metoceanapi.github.io/wxtiles-mbox/docs/</a></li>
38
- <li>Leaflet: <a href="https://metoceanapi.github.io/wxtiles-leaflet/docs/">https://metoceanapi.github.io/wxtiles-leaflet/docs/</a></li>
35
+ <li><a href="https://metoceanapi.github.io/wxtiles-leaflet/docs/">Leaflet</a></li>
39
36
  </ul>
40
37
 
41
38
  <a href="#examples" id="examples" style="color: inherit; text-decoration: none;">
42
39
  <h2>Examples</h2>
43
40
  </a>
44
41
  <ol>
45
- <li><a href="https://metoceanapi.github.io/wxtiles-leaflet/examples/simpleDemo.html">SimpleDemo</a>.</li>
42
+ <li><a href="https://metoceanapi.github.io/wxtiles-leaflet/examples/simpleDemo.html">SimpleDemo</a></li>
46
43
  <li><a href="https://metoceanapi.github.io/wxtiles-leaflet/examples/seaMaskAndAnimatedBlur.html">Animated blur parameter</a></li>
47
44
  <li><a href="https://metoceanapi.github.io/wxtiles-leaflet/examples/interactive.html">Mouse Interaction</a></li>
48
45
  </ol>
@@ -50,80 +47,226 @@ There are three main parts of the project:</p>
50
47
  <a href="#leaflet" id="leaflet" style="color: inherit; text-decoration: none;">
51
48
  <h3>Leaflet</h3>
52
49
  </a>
53
- <pre><code class="language-ts"><span class="hl-0">import</span><span class="hl-1"> </span><span class="hl-2">&#39;leaflet/dist/leaflet.css&#39;</span><span class="hl-1">;</span><br/><span class="hl-0">import</span><span class="hl-1"> </span><span class="hl-3">L</span><span class="hl-1"> </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-2">&#39;leaflet&#39;</span><span class="hl-1">;</span><span class="hl-4">start</span><span class="hl-1">();</span><br/><br/><span class="hl-5">/*</span><br/><span class="hl-5">start();</span><br/><br/><span class="hl-5">/*</span><br/><br/><span class="hl-5">import { WxAPI } from &#39;@metoceanapi/wxtiles-leaflet&#39;;</span><br/><br/><span class="hl-5">async func(){</span><br/><span class="hl-5"> // Get the API ready - should be ONE per application</span><br/><span class="hl-5"> // requestInit is used in every request to the server. Add your keys, credentials, mode, etc.</span><br/><span class="hl-5"> const wxapi = new WxAPI({ dataServerURL: &#39;https://tiles.metoceanapi.com/data/&#39;,</span><br/><span class="hl-5"> requestInit: { /* headers: new Headers([[&#39;x-api-key&#39;, &#39;key&#39;]]), */</span><span class="hl-1"> } });</span><br/><br/><span class="hl-1"> </span><span class="hl-5">// Create a dataset manager (may be used for many variables-layers from this dataset)</span><br/><span class="hl-1"> </span><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">&#39;gfs.global&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-5">// Automatically gets a proper set of variable(s) from the dataset and composes northward or eastward components if needed</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">variables</span><span class="hl-1"> = </span><span class="hl-3">wxdatasetManager</span><span class="hl-1">.</span><span class="hl-4">checkCombineVariableIfVector</span><span class="hl-1">(</span><span class="hl-2">&#39;air.temperature.at-2m&#39;</span><span class="hl-1">); </span><span class="hl-5">// &#39;wind.speed.eastward.at-10m&#39; - Vector example</span><br/><br/><span class="hl-1"> </span><span class="hl-5">// create a layer</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">leafletOptions</span><span class="hl-1">: </span><span class="hl-8">L</span><span class="hl-1">.</span><span class="hl-8">GridLayerOptions</span><span class="hl-1"> = { </span><span class="hl-3">opacity:</span><span class="hl-1"> </span><span class="hl-9">1</span><span class="hl-1">, </span><span class="hl-3">attribution:</span><span class="hl-1"> </span><span class="hl-2">&#39;WxTiles&#39;</span><span class="hl-1"> };</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">wxsource</span><span class="hl-1"> = </span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-4">WxTileSource</span><span class="hl-1">({ </span><span class="hl-3">wxdatasetManager</span><span class="hl-1">, </span><span class="hl-3">variables</span><span class="hl-1"> }, </span><span class="hl-3">leafletOptions</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-5">// add the layer to the map</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">map</span><span class="hl-1"> = </span><span class="hl-7">L</span><span class="hl-1">.</span><span class="hl-4">map</span><span class="hl-1">(</span><span class="hl-2">&#39;map&#39;</span><span class="hl-1">, { </span><span class="hl-3">center:</span><span class="hl-1"> [</span><span class="hl-9">0</span><span class="hl-1">, </span><span class="hl-9">0</span><span class="hl-1">], </span><span class="hl-3">zoom:</span><span class="hl-1"> </span><span class="hl-9">2</span><span class="hl-1">, </span><span class="hl-3">zoomControl:</span><span class="hl-1"> </span><span class="hl-6">true</span><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-4">addLayer</span><span class="hl-1">(</span><span class="hl-3">wxsource</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-8">Promise</span><span class="hl-1">((</span><span class="hl-3">done</span><span class="hl-1">) </span><span class="hl-6">=&gt;</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">once</span><span class="hl-1">(</span><span class="hl-2">&#39;load&#39;</span><span class="hl-1">, </span><span class="hl-3">done</span><span class="hl-1">)); </span><span class="hl-5">// highly recommended to await for the first load</span><br/><span class="hl-1">}()</span>
50
+ <pre><code class="language-ts"><span class="hl-0">import</span><span class="hl-1"> </span><span class="hl-2">&quot;leaflet/dist/leaflet.css&quot;</span><span class="hl-1">;</span><br/><span class="hl-0">import</span><span class="hl-1"> </span><span class="hl-3">L</span><span class="hl-1"> </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-2">&quot;leaflet&quot;</span><span class="hl-1">;</span><br/><br/><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">start</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><br/><span class="hl-1"> </span><span class="hl-3">dataServerURL:</span><span class="hl-1"> </span><span class="hl-2">&quot;https://tiles.metoceanapi.com/data/&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">requestInit:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">headers:</span><span class="hl-1"> </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">Headers</span><span class="hl-1">({</span><span class="hl-2">&#39;x-api-key&#39;</span><span class="hl-3">:</span><span class="hl-1"> </span><span class="hl-2">&#39;your_key_here&#39;</span><span class="hl-1">}),</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> });</span><br/><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/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">variable</span><span class="hl-1"> = </span><span class="hl-2">&quot;air.temperature.at-2m&quot;</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-7">// &#39;wind.speed.eastward.at-10m&#39; - Vector example</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">leafletOptions</span><span class="hl-1"> = {</span><br/><span class="hl-1"> </span><span class="hl-3">opacity:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">attribution:</span><span class="hl-1"> </span><span class="hl-2">&quot;WxTiles&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> };</span><br/><br/><span class="hl-1"> </span><span class="hl-7">// Create a layer</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">wxsource</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><br/><span class="hl-1"> </span><span class="hl-3">leafletOptions</span><br/><span class="hl-1"> );</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">map</span><span class="hl-1"> = </span><span class="hl-6">L</span><span class="hl-1">.</span><span class="hl-5">map</span><span class="hl-1">(</span><span class="hl-2">&quot;map&quot;</span><span class="hl-1">, { </span><span class="hl-3">center:</span><span class="hl-1"> [</span><span class="hl-8">0</span><span class="hl-1">, </span><span class="hl-8">0</span><span class="hl-1">], </span><span class="hl-3">zoom:</span><span class="hl-1"> </span><span class="hl-8">2</span><span class="hl-1">, </span><span class="hl-3">zoomControl:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-5">addLayer</span><span class="hl-1">(</span><span class="hl-3">wxsource</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-9">Promise</span><span class="hl-1">((</span><span class="hl-3">done</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">once</span><span class="hl-1">(</span><span class="hl-2">&quot;load&quot;</span><span class="hl-1">, </span><span class="hl-3">done</span><span class="hl-1">)); </span><span class="hl-7">// Highly recommended to await the first load</span><br/><span class="hl-1">}</span>
54
51
  </code></pre>
55
52
 
56
53
  <a href="#change-the-time-step" id="change-the-time-step" style="color: inherit; text-decoration: none;">
57
54
  <h3>Change the time step</h3>
58
55
  </a>
59
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTimeStep</span><span class="hl-1">(</span><span class="hl-9">1</span><span class="hl-1">); </span><span class="hl-5">// 1 - index of the time step in the dataset</span>
56
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTimeStep</span><span class="hl-1">(</span><span class="hl-8">1</span><span class="hl-1">); </span><span class="hl-7">// 1 - index of the time step in the dataset</span>
60
57
  </code></pre>
61
58
  <p>or</p>
62
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTimeStep</span><span class="hl-1">(</span><span class="hl-2">&#39;2020-01-01T00:00:00Z&#39;</span><span class="hl-1">); </span><span class="hl-5">// &#39;2020-01-01T00:00:00Z&#39; - time step in the dataset</span>
59
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTimeStep</span><span class="hl-1">(</span><span class="hl-2">&quot;2020-01-01T00:00:00Z&quot;</span><span class="hl-1">); </span><span class="hl-7">// &#39;2020-01-01T00:00:00Z&#39; - time step in the dataset</span>
63
60
  </code></pre>
64
61
  <p>or</p>
65
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTimeStep</span><span class="hl-1">(</span><span class="hl-9">2345323454</span><span class="hl-1">); </span><span class="hl-5">// time in seconds since 1970-01-01T00:00:00Z</span>
62
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTimeStep</span><span class="hl-1">(</span><span class="hl-8">2345323454</span><span class="hl-1">); </span><span class="hl-7">// time in seconds since 1970-01-01T00:00:00Z</span>
66
63
  </code></pre>
67
64
  <p>or</p>
68
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTimeStep</span><span class="hl-1">(</span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-4">Date</span><span class="hl-1">(</span><span class="hl-2">&#39;2020-01-01T00:00:00Z&#39;</span><span class="hl-1">)); </span><span class="hl-5">// Date object</span>
65
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTimeStep</span><span class="hl-1">(</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">Date</span><span class="hl-1">(</span><span class="hl-2">&quot;2020-01-01T00:00:00Z&quot;</span><span class="hl-1">)); </span><span class="hl-7">// Date object</span>
69
66
  </code></pre>
70
67
 
71
68
  <a href="#update-the-style" id="update-the-style" style="color: inherit; text-decoration: none;">
72
- <h3>Update the style</h3>
69
+ <h3>Update the Style</h3>
73
70
  </a>
74
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">units:</span><span class="hl-1"> </span><span class="hl-2">&#39;m/s&#39;</span><span class="hl-1">, </span><span class="hl-3">levels:</span><span class="hl-1"> </span><span class="hl-6">undefined</span><span class="hl-1"> }); </span><span class="hl-5">// set levels to undefined - to automatically calculate the levels from the dataset</span>
71
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">units:</span><span class="hl-1"> </span><span class="hl-2">&quot;m/s&quot;</span><span class="hl-1">, </span><span class="hl-3">levels:</span><span class="hl-1"> </span><span class="hl-4">undefined</span><span class="hl-1"> }); </span><span class="hl-7">// set levels to undefined - to automatically calculate the levels from the dataset</span>
75
72
  </code></pre>
76
73
 
77
74
  <a href="#preload-the-time-steps" id="preload-the-time-steps" style="color: inherit; text-decoration: none;">
78
- <h3>Preload the time steps</h3>
75
+ <h3>Preload the Time Steps</h3>
79
76
  </a>
80
- <pre><code class="language-ts"><span class="hl-5">// load the time step 10 to the cache but do not not render it</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">prom</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">preloadTime</span><span class="hl-1">(</span><span class="hl-9">10</span><span class="hl-1">);</span><br/><span class="hl-5">// do stuff asyncronously</span><br/><span class="hl-5">// ...</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">prom</span><span class="hl-1">; </span><span class="hl-5">// wait for the time step to finish loading</span><br/><span class="hl-5">// now set the time step to 10</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTime</span><span class="hl-1">(</span><span class="hl-9">10</span><span class="hl-1">); </span><span class="hl-5">// will be fast rendered from the cache</span>
77
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">prom</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">preloadTime</span><span class="hl-1">(</span><span class="hl-8">10</span><span class="hl-1">); </span><span class="hl-7">// Load the time step 10 to the cache but do not render it</span><br/><span class="hl-7">// Do stuff asynchronously</span><br/><span class="hl-7">// ...</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">prom</span><span class="hl-1">; </span><span class="hl-7">// Wait for the time step to finish loading</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTime</span><span class="hl-1">(</span><span class="hl-8">10</span><span class="hl-1">); </span><span class="hl-7">// Now set the time step to 10; it will render quickly from the cache</span>
81
78
  </code></pre>
82
79
 
83
80
  <a href="#abort-loading" id="abort-loading" style="color: inherit; text-decoration: none;">
84
- <h3>Abort loading</h3>
81
+ <h3>Abort Loading</h3>
85
82
  </a>
86
- <pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">abortController</span><span class="hl-1"> = </span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-4">AbortController</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-2">&#39;setTime(5)&#39;</span><span class="hl-1">);</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">prom</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">setTime</span><span class="hl-1">(</span><span class="hl-9">5</span><span class="hl-1">, </span><span class="hl-3">abortController</span><span class="hl-1">);</span><br/><span class="hl-3">abortController</span><span class="hl-1">.</span><span class="hl-4">abort</span><span class="hl-1">(); </span><span class="hl-5">// aborts the request</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">prom</span><span class="hl-1">; </span><span class="hl-5">// await always !! even if aborted</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-2">&#39;aborted&#39;</span><span class="hl-1">);</span>
83
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">abortController</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-5">AbortController</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-2">&quot;setTime(5)&quot;</span><span class="hl-1">);</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">prom</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">setTime</span><span class="hl-1">(</span><span class="hl-8">5</span><span class="hl-1">, </span><span class="hl-3">abortController</span><span class="hl-1">);</span><br/><span class="hl-3">abortController</span><span class="hl-1">.</span><span class="hl-5">abort</span><span class="hl-1">(); </span><span class="hl-7">// Aborts the request</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">prom</span><span class="hl-1">; </span><span class="hl-7">// Always await, even if aborted</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-2">&quot;aborted&quot;</span><span class="hl-1">);</span>
87
84
  </code></pre>
88
85
 
89
86
  <a href="#get-the-current-time-step" id="get-the-current-time-step" style="color: inherit; text-decoration: none;">
90
- <h3>Get the current time step</h3>
87
+ <h3>Get the Current Time Step</h3>
91
88
  </a>
92
- <pre><code class="language-ts"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">timeStep</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">getTime</span><span class="hl-1">();</span>
89
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">timeStep</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">getTime</span><span class="hl-1">();</span>
93
90
  </code></pre>
94
91
 
95
- <a href="#read-lon-lat-data" id="read-lon-lat-data" style="color: inherit; text-decoration: none;">
96
- <h3>read lon lat data</h3>
92
+ <a href="#read-lonlat-data" id="read-lonlat-data" style="color: inherit; text-decoration: none;">
93
+ <h3>Read Lon/Lat Data</h3>
97
94
  </a>
98
- <pre><code class="language-ts"><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-4">on</span><span class="hl-1">(</span><span class="hl-2">&#39;mousemove&#39;</span><span class="hl-1">, (</span><span class="hl-3">e</span><span class="hl-1">) </span><span class="hl-6">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (!</span><span class="hl-3">wxsource</span><span class="hl-1">) </span><span class="hl-0">return</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">pos</span><span class="hl-1"> = </span><span class="hl-4">position</span><span class="hl-1">(</span><span class="hl-3">e</span><span class="hl-1">); </span><span class="hl-5">//</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">tileInfo</span><span class="hl-1">: </span><span class="hl-8">WxTileInfo</span><span class="hl-1"> | </span><span class="hl-8">undefined</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">getLayerInfoAtLatLon</span><span class="hl-1">(</span><span class="hl-3">pos</span><span class="hl-1">.</span><span class="hl-4">wrap</span><span class="hl-1">(), </span><span class="hl-3">map</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-3">tileInfo</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-4">log</span><span class="hl-1">(</span><span class="hl-3">tileInfo</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span>
95
+ <pre><code class="language-ts"><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-5">on</span><span class="hl-1">(</span><span class="hl-2">&quot;mousemove&quot;</span><span class="hl-1">, (</span><span class="hl-3">e</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (!</span><span class="hl-3">wxsource</span><span class="hl-1">) </span><span class="hl-0">return</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">pos</span><span class="hl-1"> = </span><span class="hl-5">position</span><span class="hl-1">(</span><span class="hl-3">e</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">tileInfo</span><span class="hl-1">: </span><span class="hl-9">WxTileInfo</span><span class="hl-1"> | </span><span class="hl-9">undefined</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">getLayerInfoAtLatLon</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-3">pos</span><span class="hl-1">.</span><span class="hl-5">wrap</span><span class="hl-1">(),</span><br/><span class="hl-1"> </span><span class="hl-3">map</span><br/><span class="hl-1"> );</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-3">tileInfo</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">log</span><span class="hl-1">(</span><span class="hl-3">tileInfo</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span>
99
96
  </code></pre>
100
97
 
101
98
  <a href="#animated-blur-effect" id="animated-blur-effect" style="color: inherit; text-decoration: none;">
102
- <h3>animated blur effect</h3>
99
+ <h3>Animated Blur Effect</h3>
103
100
  </a>
104
- <pre><code class="language-ts"><span class="hl-1">(</span><span class="hl-6">async</span><span class="hl-1"> </span><span class="hl-6">function</span><span class="hl-1"> </span><span class="hl-4">step</span><span class="hl-1">(</span><span class="hl-3">n</span><span class="hl-1">: </span><span class="hl-8">number</span><span class="hl-1"> = </span><span class="hl-9">0</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">isolineText:</span><span class="hl-1"> </span><span class="hl-6">false</span><span class="hl-1">, </span><span class="hl-3">blurRadius:</span><span class="hl-1"> ~~(</span><span class="hl-9">10</span><span class="hl-1"> * </span><span class="hl-3">Math</span><span class="hl-1">.</span><span class="hl-4">sin</span><span class="hl-1">(</span><span class="hl-3">n</span><span class="hl-1"> / </span><span class="hl-9">500</span><span class="hl-1">) + </span><span class="hl-9">10</span><span class="hl-1">) }); </span><span class="hl-5">// await always !!</span><br/><span class="hl-1"> </span><span class="hl-4">requestAnimationFrame</span><span class="hl-1">(</span><span class="hl-3">step</span><span class="hl-1">);</span><br/><span class="hl-1">})();</span>
101
+ <pre><code class="language-ts"><span class="hl-1">(</span><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">step</span><span class="hl-1">(</span><span class="hl-3">n</span><span class="hl-1">: </span><span class="hl-9">number</span><span class="hl-1"> = </span><span class="hl-8">0</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">updateCurrentStyleObject</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-3">isolineText:</span><span class="hl-1"> </span><span class="hl-4">false</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">blurRadius:</span><span class="hl-1"> ~~(</span><span class="hl-8">10</span><span class="hl-1"> * </span><span class="hl-3">Math</span><span class="hl-1">.</span><span class="hl-5">sin</span><span class="hl-1">(</span><span class="hl-3">n</span><span class="hl-1"> / </span><span class="hl-8">500</span><span class="hl-1">) + </span><span class="hl-8">10</span><span class="hl-1">),</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-5">requestAnimationFrame</span><span class="hl-1">(</span><span class="hl-3">step</span><span class="hl-1">);</span><br/><span class="hl-1">})();</span>
105
102
  </code></pre>
106
103
 
107
- <a href="#more-interactive---additional-level-and-a-bit-of-the-red-transparentness-around-the-level-made-from-current-mouse-position" id="more-interactive---additional-level-and-a-bit-of-the-red-transparentness-around-the-level-made-from-current-mouse-position" style="color: inherit; text-decoration: none;">
108
- <h3>more interactive - additional level and a bit of the red transparentness around the level made from current mouse position</h3>
104
+ <a href="#more-interactive--additional-level-and-red-transparency-around-the-level-based-on-current-mouse-position" id="more-interactive--additional-level-and-red-transparency-around-the-level-based-on-current-mouse-position" style="color: inherit; text-decoration: none;">
105
+ <h3>More Interactive – Additional Level and Red Transparency around the Level Based on Current Mouse Position</h3>
109
106
  </a>
110
- <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">levels:</span><span class="hl-1"> </span><span class="hl-6">undefined</span><span class="hl-1"> }); </span><span class="hl-5">// reset levels if existed in the style</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">levels</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">getCurrentStyleObjectCopy</span><span class="hl-1">().</span><span class="hl-3">levels</span><span class="hl-1"> || []; </span><span class="hl-5">// get current/default/any levels</span><br/><span class="hl-5">// generate a new color map from the levels</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">colMap</span><span class="hl-1">: [</span><span class="hl-8">number</span><span class="hl-1">, </span><span class="hl-8">string</span><span class="hl-1">][] = </span><span class="hl-3">levels</span><span class="hl-1">.</span><span class="hl-4">map</span><span class="hl-1">((</span><span class="hl-3">level</span><span class="hl-1">) </span><span class="hl-6">=&gt;</span><span class="hl-1"> [</span><span class="hl-3">level</span><span class="hl-1">, </span><span class="hl-2">&#39;#&#39;</span><span class="hl-1"> + </span><span class="hl-3">Math</span><span class="hl-1">.</span><span class="hl-4">random</span><span class="hl-1">().</span><span class="hl-4">toString</span><span class="hl-1">(</span><span class="hl-9">16</span><span class="hl-1">).</span><span class="hl-4">slice</span><span class="hl-1">(</span><span class="hl-9">2</span><span class="hl-1">, </span><span class="hl-9">8</span><span class="hl-1">) + </span><span class="hl-2">&#39;ff&#39;</span><span class="hl-1">]);</span><br/><span class="hl-6">let</span><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-6">false</span><span class="hl-1">;</span><br/><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-4">on</span><span class="hl-1">(</span><span class="hl-2">&#39;mousemove&#39;</span><span class="hl-1">, </span><span class="hl-6">async</span><span class="hl-1"> (</span><span class="hl-3">e</span><span class="hl-1">) </span><span class="hl-6">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (!</span><span class="hl-3">wxsource</span><span class="hl-1"> || </span><span class="hl-3">busy</span><span class="hl-1">) </span><span class="hl-0">return</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-6">true</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">tileInfo</span><span class="hl-1">: </span><span class="hl-8">WxTileInfo</span><span class="hl-1"> | </span><span class="hl-8">undefined</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">getLayerInfoAtLatLon</span><span class="hl-1">(</span><span class="hl-4">position</span><span class="hl-1">(</span><span class="hl-3">e</span><span class="hl-1">), </span><span class="hl-3">map</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-3">tileInfo</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-4">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">colorMap:</span><span class="hl-1"> [...</span><span class="hl-3">colMap</span><span class="hl-1">, [</span><span class="hl-3">tileInfo</span><span class="hl-1">.</span><span class="hl-3">inStyleUnits</span><span class="hl-1">[</span><span class="hl-9">0</span><span class="hl-1">], </span><span class="hl-2">&#39;#ff000000&#39;</span><span class="hl-1">]] });</span><br/><span class="hl-1"> </span><span class="hl-3">onsole</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-3">tileInfo</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-6">false</span><span class="hl-1">;</span><br/><span class="hl-1">});</span>
107
+ <pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">updateCurrentStyleObject</span><span class="hl-1">({ </span><span class="hl-3">levels:</span><span class="hl-1"> </span><span class="hl-4">undefined</span><span class="hl-1"> }); </span><span class="hl-7">// Reset levels if they exist in the style</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">levels</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">getCurrentStyleObjectCopy</span><span class="hl-1">().</span><span class="hl-3">levels</span><span class="hl-1"> || [];</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">colMap</span><span class="hl-1">: [</span><span class="hl-9">number</span><span class="hl-1">, </span><span class="hl-9">string</span><span class="hl-1">][] = </span><span class="hl-3">levels</span><span class="hl-1">.</span><span class="hl-5">map</span><span class="hl-1">((</span><span class="hl-3">level</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> [</span><br/><span class="hl-1"> </span><span class="hl-3">level</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-2">&quot;#&quot;</span><span class="hl-1"> + </span><span class="hl-3">Math</span><span class="hl-1">.</span><span class="hl-5">random</span><span class="hl-1">().</span><span class="hl-5">toString</span><span class="hl-1">(</span><span class="hl-8">16</span><span class="hl-1">).</span><span class="hl-5">slice</span><span class="hl-1">(</span><span class="hl-8">2</span><span class="hl-1">, </span><span class="hl-8">8</span><span class="hl-1">) + </span><span class="hl-2">&quot;ff&quot;</span><span class="hl-1">,</span><br/><span class="hl-1">]);</span><br/><br/><span class="hl-4">let</span><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-4">false</span><span class="hl-1">;</span><br/><span class="hl-3">map</span><span class="hl-1">.</span><span class="hl-5">on</span><span class="hl-1">(</span><span class="hl-2">&quot;mousemove&quot;</span><span class="hl-1">, </span><span class="hl-4">async</span><span class="hl-1"> (</span><span class="hl-3">e</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (!</span><span class="hl-3">wxsource</span><span class="hl-1"> || </span><span class="hl-3">busy</span><span class="hl-1">) </span><span class="hl-0">return</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-4">true</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">tileInfo</span><span class="hl-1">: </span><span class="hl-9">WxTileInfo</span><span class="hl-1"> | </span><span class="hl-9">undefined</span><span class="hl-1"> = </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">getLayerInfoAtLatLon</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-5">position</span><span class="hl-1">(</span><span class="hl-3">e</span><span class="hl-1">),</span><br/><span class="hl-1"> </span><span class="hl-3">map</span><br/><span class="hl-1"> );</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-3">tileInfo</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-3">wxsource</span><span class="hl-1">.</span><span class="hl-5">updateCurrentStyleObject</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-3">colorMap:</span><span class="hl-1"> [...</span><span class="hl-3">colMap</span><span class="hl-1">, [</span><span class="hl-3">tileInfo</span><span class="hl-1">.</span><span class="hl-3">inStyleUnits</span><span class="hl-1">[</span><span class="hl-8">0</span><span class="hl-1">], </span><span class="hl-2">&quot;#ff000000&quot;</span><span class="hl-1">]],</span><br/><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">log</span><span class="hl-1">(</span><span class="hl-3">tileInfo</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> </span><span class="hl-3">busy</span><span class="hl-1"> = </span><span class="hl-4">false</span><span class="hl-1">;</span><br/><span class="hl-1">});</span>
111
108
  </code></pre>
112
109
 
113
- <a href="#run-locally" id="run-locally" style="color: inherit; text-decoration: none;">
114
- <h2>Run Locally</h2>
110
+ <a href="#legend-usage" id="legend-usage" style="color: inherit; text-decoration: none;">
111
+ <h3>Legend Usage</h3>
115
112
  </a>
116
- <p><a href="https://biomejs.dev/guides/getting-started/">biome</a> is used for linting and formatting with <a href="https://typicode.github.io/husky/">Husky</a> and <a href="https://github.com/hallettj/git-format-staged">git-format-staged</a>.</p>
117
- <ol>
118
- <li>Initialize husky</li>
119
- </ol>
120
- <pre><code class="language-bash"><span class="hl-1">npx </span><span class="hl-2">husky</span><span class="hl-1"> </span><span class="hl-2">init</span>
121
- </code></pre>
122
- <ol start="2">
123
- <li>Add <code>pre-commit</code> hook using husky</li>
124
- </ol>
125
- <pre><code class="language-bash"><span class="hl-4">echo</span><span class="hl-1"> </span><span class="hl-2">&quot;git-format-staged --formatter &#39;biome check --write --staged --files-ignore-unknown=true --no-errors-on-unmatched </span><span class="hl-10">\&quot;</span><span class="hl-2">{}</span><span class="hl-10">\&quot;</span><span class="hl-2">&#39; .&quot;</span><span class="hl-1"> &gt; </span><span class="hl-2">.husky/pre-commit</span>
113
+ <p>The <code>WxCreateLegend</code> function is used to generate a color legend for weather map visualizations. This legend helps represent weather data with corresponding colors, making it easier to interpret the map.
114
+ Pass the <code>legendSize</code> and <code>style</code> to the <code>WxCreateLegend</code> function to generate the legend. The function returns a <code>WxLegend</code> object containing:</p>
115
+ <ul>
116
+ <li><code>size</code>: The number of color steps.</li>
117
+ <li><code>colors</code>: A <code>Uint32Array</code> of color values.</li>
118
+ <li><code>ticks</code>: An array of <code>WxTick</code> objects representing data points and their corresponding colors.</li>
119
+ <li><code>units</code>: The units of the data.</li>
120
+ <li><code>showBelowMin</code> / <code>showAboveMax</code>: Whether values outside the range are shown.</li>
121
+ </ul>
122
+
123
+ <a href="#example-temperature-legend" id="example-temperature-legend" style="color: inherit; text-decoration: none;">
124
+ <h4>Example: Temperature Legend</h4>
125
+ </a>
126
+ <p>Here’s an example of creating a temperature legend:</p>
127
+ <pre><code class="language-typescript"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">style</span><span class="hl-1">: </span><span class="hl-9">WxColorStyleStrict</span><span class="hl-1"> = {</span><br/><span class="hl-1"> </span><span class="hl-3">colorMap:</span><span class="hl-1"> [</span><br/><span class="hl-1"> [</span><span class="hl-8">0</span><span class="hl-1">, </span><span class="hl-2">&quot;#0000FF&quot;</span><span class="hl-1">], </span><span class="hl-7">// blue at 0°C</span><br/><span class="hl-1"> [</span><span class="hl-8">15</span><span class="hl-1">, </span><span class="hl-2">&quot;#00FF00&quot;</span><span class="hl-1">], </span><span class="hl-7">// green at 15°C</span><br/><span class="hl-1"> [</span><span class="hl-8">30</span><span class="hl-1">, </span><span class="hl-2">&quot;#FF0000&quot;</span><span class="hl-1">], </span><span class="hl-7">// red at 30°C</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> </span><span class="hl-3">showBelowMin:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">showAboveMax:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">units:</span><span class="hl-1"> </span><span class="hl-2">&quot;°C&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-3">fill:</span><span class="hl-1"> </span><span class="hl-2">&quot;gradient&quot;</span><span class="hl-1">,</span><br/><span class="hl-1">};</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">legend</span><span class="hl-1"> = </span><span class="hl-5">WxCreateLegend</span><span class="hl-1">(</span><span class="hl-8">100</span><span class="hl-1">, </span><span class="hl-3">style</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">legend</span><span class="hl-1">);</span>
126
128
  </code></pre>
129
+ <p>This creates legend with:</p>
130
+ <ul>
131
+ <li>100 color steps interpolating between blue, green, and red.</li>
132
+ <li>Ticks at 0°C, 15°C, and 30°C.</li>
133
+ <li>Support for values below 0°C and above 30°C.</li>
134
+ </ul>
135
+
136
+ <a href="#color-style" id="color-style" style="color: inherit; text-decoration: none;">
137
+ <h3>Color Style</h3>
138
+ </a>
139
+ <p>The <code>WxColorStyleStrict</code> interface defines the configuration for styling visualizations. It includes properties for controlling colors, gradients, isolines, vectors, streamlines, and more. Below is a detailed explanation of each property.</p>
140
+
141
+ <a href="#properties" id="properties" style="color: inherit; text-decoration: none;">
142
+ <h4>Properties</h4>
143
+ </a>
144
+
145
+ <a href="#basic-properties" id="basic-properties" style="color: inherit; text-decoration: none;">
146
+ <h5>Basic Properties</h5>
147
+ </a>
148
+ <ul>
149
+ <li><strong><code>name</code></strong>: The name of the style.</li>
150
+ <li><strong><code>parent</code></strong>: The name of a parent style to inherit properties from (optional).</li>
151
+ </ul>
152
+
153
+ <a href="#tile-filling" id="tile-filling" style="color: inherit; text-decoration: none;">
154
+ <h5>Tile Filling</h5>
155
+ </a>
156
+ <ul>
157
+ <li><strong><code>fill</code></strong>: Defines how tiles are filled:<ul>
158
+ <li><code>&quot;none&quot;</code>: No fill, leaves the tile transparent.</li>
159
+ <li><code>&quot;solid&quot;</code>: Solid fill, no gradient between levels.</li>
160
+ <li><code>&quot;gradient&quot;</code>: Gradient fill between levels.</li>
161
+ </ul>
162
+ </li>
163
+ </ul>
164
+
165
+ <a href="#isolines" id="isolines" style="color: inherit; text-decoration: none;">
166
+ <h5>Isolines</h5>
167
+ </a>
168
+ <ul>
169
+ <li><strong><code>isolineColor</code></strong>: Defines the color of isolines:<ul>
170
+ <li><code>&quot;none&quot;</code>: Do not render isolines.</li>
171
+ <li><code>&quot;fill&quot;</code>: Use the value of <code>fill</code> for each pixel.</li>
172
+ <li><code>&quot;inverted&quot;</code>: Use the inverted value of <code>fill</code> for each pixel.</li>
173
+ <li><code>#RGB</code>, <code>#RRGGBB</code>, or <code>#RRGGBBAA</code>: Use a specific web color.</li>
174
+ </ul>
175
+ </li>
176
+ <li><strong><code>isolineText</code></strong>: If <code>true</code>, render text values on isolines.</li>
177
+ <li><strong><code>isolineTextSizeEm</code></strong>: Font size of isoline text values in <code>em</code> units.</li>
178
+ <li><strong><code>isolineTextBackground</code></strong>: If <code>true</code>, render a solid background behind isoline text values.</li>
179
+ </ul>
180
+
181
+ <a href="#vectors-windcurrent-fields" id="vectors-windcurrent-fields" style="color: inherit; text-decoration: none;">
182
+ <h5>Vectors (Wind/Current Fields)</h5>
183
+ </a>
184
+ <ul>
185
+ <li><strong><code>vectorType</code></strong>: Defines how vectors are represented:<ul>
186
+ <li><code>&quot;none&quot;</code>: Do not render vectors.</li>
187
+ <li><code>&quot;arrows&quot;</code>: Use arrows to represent winds/currents.</li>
188
+ <li><code>&quot;barbs&quot;</code>: Use barbs to represent winds/currents.</li>
189
+ </ul>
190
+ </li>
191
+ <li><strong><code>vectorColor</code></strong>: Defines the color of vectors:<ul>
192
+ <li><code>&quot;none&quot;</code>: Do not render vectors.</li>
193
+ <li><code>&quot;fill&quot;</code>: Use the value of <code>fill</code> for each pixel.</li>
194
+ <li><code>&quot;inverted&quot;</code>: Use the inverted value of <code>fill</code> for each pixel.</li>
195
+ <li><code>#RGB</code>, <code>#RRGGBB</code>, or <code>#RRGGBBAA</code>: Use a specific web color.</li>
196
+ </ul>
197
+ </li>
198
+ <li><strong><code>vectorFactor</code></strong>: Scaling factor for vector length.</li>
199
+ </ul>
200
+
201
+ <a href="#streamlines" id="streamlines" style="color: inherit; text-decoration: none;">
202
+ <h5>Streamlines</h5>
203
+ </a>
204
+ <ul>
205
+ <li><strong><code>streamLineColor</code></strong>: Defines the color of streamlines:<ul>
206
+ <li><code>&quot;none&quot;</code>: Do not render streamlines.</li>
207
+ <li><code>&quot;fill&quot;</code>: Use the value of <code>fill</code> for each pixel.</li>
208
+ <li><code>&quot;inverted&quot;</code>: Use the inverted value of <code>fill</code> for each pixel.</li>
209
+ <li><code>#RGB</code>, <code>#RRGGBB</code>, or <code>#RRGGBBAA</code>: Use a specific web color.</li>
210
+ </ul>
211
+ </li>
212
+ <li><strong><code>streamLineSpeedFactor</code></strong>: Scaling factor for streamline length.</li>
213
+ <li><strong><code>streamLineGridStep</code></strong>: Step to seed streamlines. Smaller values create more streamlines.</li>
214
+ <li><strong><code>streamLineSteps</code></strong>: Number of steps in each streamline.</li>
215
+ <li><strong><code>streamLineStatic</code></strong>: If <code>true</code>, render streamlines as static lines. If <code>false</code>, render as animated lines.</li>
216
+ </ul>
217
+
218
+ <a href="#color-configuration" id="color-configuration" style="color: inherit; text-decoration: none;">
219
+ <h5>Color Configuration</h5>
220
+ </a>
221
+ <ul>
222
+ <li><strong><code>showBelowMin</code></strong>: If <code>true</code>, fill values below the minimum range.</li>
223
+ <li><strong><code>showAboveMax</code></strong>: If <code>true</code>, fill values above the maximum range.</li>
224
+ <li><strong><code>colorScheme</code></strong>: Name of the color scheme from the default set.</li>
225
+ <li><strong><code>colors</code></strong>: Custom array of colors to use for interpolation (optional).</li>
226
+ <li><strong><code>colorMap</code></strong>: Array of <code>[level, color]</code> tuples to map specific data values to colors (optional).</li>
227
+ <li><strong><code>levels</code></strong>: Array of levels to build the legend. If not provided, 10 levels are calculated evenly based on the data.</li>
228
+ </ul>
229
+
230
+ <a href="#additional-styling" id="additional-styling" style="color: inherit; text-decoration: none;">
231
+ <h5>Additional Styling</h5>
232
+ </a>
233
+ <ul>
234
+ <li><strong><code>blurRadius</code></strong>: Radius for the BOX filter (used for blurring).</li>
235
+ <li><strong><code>addDegrees</code></strong>: Additional rotation of wind or current vectors by a specified angle in degrees.</li>
236
+ <li><strong><code>units</code></strong>: Units of the style (e.g., <code>°C</code> for temperature).</li>
237
+ <li><strong><code>extraUnits</code></strong>: Additional units to extend the default set (optional).</li>
238
+ </ul>
239
+
240
+ <a href="#masking" id="masking" style="color: inherit; text-decoration: none;">
241
+ <h5>Masking</h5>
242
+ </a>
243
+ <ul>
244
+ <li><strong><code>mask</code></strong>: Defines masking behavior:<ul>
245
+ <li><code>&quot;none&quot;</code>: No masking.</li>
246
+ <li><code>&quot;sea&quot;</code>: Make sea areas transparent.</li>
247
+ <li><code>&quot;land&quot;</code>: Make land areas transparent.</li>
248
+ </ul>
249
+ </li>
250
+ </ul>
251
+
252
+ <a href="#webgl-configuration-optional" id="webgl-configuration-optional" style="color: inherit; text-decoration: none;">
253
+ <h5>WebGL Configuration (Optional)</h5>
254
+ </a>
255
+ <ul>
256
+ <li><strong><code>gl</code></strong>: Configuration for WebGL rendering:<ul>
257
+ <li><code>animationSpeed</code>: Speed of animations.</li>
258
+ <li><code>noiseTexturePow</code>: Power of noise texture.</li>
259
+ <li><code>vectorFieldFactor</code>: Scaling factor for vector fields.</li>
260
+ <li><code>animationIntensity</code>: Intensity of animations.</li>
261
+ <li><code>wavesCount</code>: Number of waves to render.</li>
262
+ </ul>
263
+ </li>
264
+ </ul>
265
+
266
+ <a href="#default-styles" id="default-styles" style="color: inherit; text-decoration: none;">
267
+ <h5>Default styles</h5>
268
+ </a>
269
+ <p>Default styles can be found <a href="https://github.com/metoceanapi/wxtiles-common/blob/master/defaults/styles.ts">here</a></p>
127
270
  </div></div>
128
271
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
129
272
  <div class="tsd-navigation settings">
@@ -147,12 +290,7 @@ There are three main parts of the project:</p>
147
290
  <ul></ul></li></ul></div></details></nav>
148
291
  <nav class="tsd-navigation secondary menu-sticky">
149
292
  <ul>
150
- <li class="tsd-kind-enum"><a href="enums/TileType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-8-path"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)" id="icon-8-text"></path></svg>Tile<wbr/>Type</a></li>
151
293
  <li class="tsd-kind-class"><a href="classes/CustomWxTilesLayer.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg>Custom<wbr/>Wx<wbr/>Tiles<wbr/>Layer</a></li>
152
- <li class="tsd-kind-class"><a href="classes/DataIntegral.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Data<wbr/>Integral</a></li>
153
- <li class="tsd-kind-class"><a href="classes/QTree.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>QTree</a></li>
154
- <li class="tsd-kind-class"><a href="classes/RawCLUT.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>RawCLUT</a></li>
155
- <li class="tsd-kind-class"><a href="classes/TilesCache.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Tiles<wbr/>Cache</a></li>
156
294
  <li class="tsd-kind-class"><a href="classes/WxAPI.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>WxAPI</a></li>
157
295
  <li class="tsd-kind-class"><a href="classes/WxAPIControl.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>WxAPIControl</a></li>
158
296
  <li class="tsd-kind-class"><a href="classes/WxDataSetManager.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Wx<wbr/>Data<wbr/>Set<wbr/>Manager</a></li>
@@ -161,63 +299,12 @@ There are three main parts of the project:</p>
161
299
  <li class="tsd-kind-class"><a href="classes/WxStyleEditorControl.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Wx<wbr/>Style<wbr/>Editor<wbr/>Control</a></li>
162
300
  <li class="tsd-kind-class"><a href="classes/WxTileSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Wx<wbr/>Tile<wbr/>Source</a></li>
163
301
  <li class="tsd-kind-class"><a href="classes/WxTimeControl.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Wx<wbr/>Time<wbr/>Control</a></li>
164
- <li class="tsd-kind-interface"><a href="interfaces/CachedUriLoaderPromiseFunc.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>Cached<wbr/>Uri<wbr/>Loader<wbr/>Promise<wbr/>Func</a></li>
165
- <li class="tsd-kind-interface"><a href="interfaces/ColorStylesIncomplete.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Color<wbr/>Styles<wbr/>Incomplete</a></li>
166
- <li class="tsd-kind-interface"><a href="interfaces/Converter.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Converter</a></li>
167
- <li class="tsd-kind-interface"><a href="interfaces/DataPicture.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Data<wbr/>Picture</a></li>
168
- <li class="tsd-kind-interface"><a href="interfaces/FrameworkOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Framework<wbr/>Options</a></li>
169
- <li class="tsd-kind-interface"><a href="interfaces/IntegralPare.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Integral<wbr/>Pare</a></li>
170
- <li class="tsd-kind-interface"><a href="interfaces/SLinePoint.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>SLine<wbr/>Point</a></li>
171
- <li class="tsd-kind-interface"><a href="interfaces/Tree.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Tree</a></li>
172
- <li class="tsd-kind-interface"><a href="interfaces/WxAPIOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>WxAPIOptions</a></li>
173
- <li class="tsd-kind-interface"><a href="interfaces/WxAllBoundariesMeta.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>All<wbr/>Boundaries<wbr/>Meta</a></li>
174
- <li class="tsd-kind-interface"><a href="interfaces/WxAllDatasetsShortMetas.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>All<wbr/>Datasets<wbr/>Short<wbr/>Metas</a></li>
175
- <li class="tsd-kind-interface"><a href="interfaces/WxBoundaryMeta.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Boundary<wbr/>Meta</a></li>
176
- <li class="tsd-kind-interface"><a href="interfaces/WxColorSchemes.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Color<wbr/>Schemes</a></li>
177
- <li class="tsd-kind-interface"><a href="interfaces/WxColorStyleStrict.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Color<wbr/>Style<wbr/>Strict</a></li>
178
- <li class="tsd-kind-interface"><a href="interfaces/WxColorStyleWeak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Color<wbr/>Style<wbr/>Weak</a></li>
179
- <li class="tsd-kind-interface"><a href="interfaces/WxColorStylesStrict.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Color<wbr/>Styles<wbr/>Strict</a></li>
180
- <li class="tsd-kind-interface"><a href="interfaces/WxColorStylesWeakMixed.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Color<wbr/>Styles<wbr/>Weak<wbr/>Mixed</a></li>
181
- <li class="tsd-kind-interface"><a href="interfaces/WxData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Data</a></li>
182
- <li class="tsd-kind-interface"><a href="interfaces/WxDataSetManagerOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Data<wbr/>Set<wbr/>Manager<wbr/>Options</a></li>
183
- <li class="tsd-kind-interface"><a href="interfaces/WxDatasetMeta.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Dataset<wbr/>Meta</a></li>
184
- <li class="tsd-kind-interface"><a href="interfaces/WxDatasetShortMeta.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Dataset<wbr/>Short<wbr/>Meta</a></li>
185
- <li class="tsd-kind-interface"><a href="interfaces/WxLayerAPI.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>LayerAPI</a></li>
186
- <li class="tsd-kind-interface"><a href="interfaces/WxLayerBaseAPI.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Layer<wbr/>BaseAPI</a></li>
187
- <li class="tsd-kind-interface"><a href="interfaces/WxLayerOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Layer<wbr/>Options</a></li>
188
- <li class="tsd-kind-interface"><a href="interfaces/WxLegend.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Legend</a></li>
189
- <li class="tsd-kind-interface"><a href="interfaces/WxLngLat.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Lng<wbr/>Lat</a></li>
190
- <li class="tsd-kind-interface"><a href="interfaces/WxRasterData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Raster<wbr/>Data</a></li>
191
- <li class="tsd-kind-interface"><a href="interfaces/WxRequestInit.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Request<wbr/>Init</a></li>
302
+ <li class="tsd-kind-interface"><a href="interfaces/FrameworkOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>Framework<wbr/>Options</a></li>
192
303
  <li class="tsd-kind-interface"><a href="interfaces/WxSourceLayerOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Source<wbr/>Layer<wbr/>Options</a></li>
193
- <li class="tsd-kind-interface"><a href="interfaces/WxTick.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Tick</a></li>
194
- <li class="tsd-kind-interface"><a href="interfaces/WxTileInfo.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Tile<wbr/>Info</a></li>
195
- <li class="tsd-kind-interface"><a href="interfaces/WxUnits.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Units</a></li>
196
- <li class="tsd-kind-interface"><a href="interfaces/WxVariableMeta.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Variable<wbr/>Meta</a></li>
197
- <li class="tsd-kind-interface"><a href="interfaces/WxVariablesMetas.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Wx<wbr/>Variables<wbr/>Metas</a></li>
198
- <li class="tsd-kind-interface"><a href="interfaces/XYZ.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>XYZ</a></li>
199
- <li class="tsd-kind-type-alias"><a href="types/DataIntegrals.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Data<wbr/>Integrals</a></li>
200
- <li class="tsd-kind-type-alias"><a href="types/DataPictures.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Data<wbr/>Pictures</a></li>
201
- <li class="tsd-kind-type-alias"><a href="types/ListenerMethod.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Listener<wbr/>Method</a></li>
202
- <li class="tsd-kind-type-alias"><a href="types/Loader.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Loader</a></li>
304
+ <li class="tsd-kind-type-alias"><a href="types/Loader.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Loader</a></li>
203
305
  <li class="tsd-kind-type-alias"><a href="types/Painter.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Painter</a></li>
204
- <li class="tsd-kind-type-alias"><a href="types/SLine.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>SLine</a></li>
205
- <li class="tsd-kind-type-alias"><a href="types/SubTrees.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Sub<wbr/>Trees</a></li>
206
- <li class="tsd-kind-type-alias"><a href="types/SubTreesN.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Sub<wbr/>TreesN</a></li>
207
- <li class="tsd-kind-type-alias"><a href="types/TreeN.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>TreeN</a></li>
208
- <li class="tsd-kind-type-alias"><a href="types/WxDate.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Date</a></li>
209
- <li class="tsd-kind-type-alias"><a href="types/WxEventType.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Event<wbr/>Type</a></li>
210
- <li class="tsd-kind-type-alias"><a href="types/WxInstances.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Instances</a></li>
211
306
  <li class="tsd-kind-type-alias"><a href="types/WxLayer.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Layer</a></li>
212
- <li class="tsd-kind-type-alias"><a href="types/WxLayerVarsNames.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Layer<wbr/>Vars<wbr/>Names</a></li>
213
- <li class="tsd-kind-type-alias"><a href="types/WxURIs.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>WxURIs</a></li>
214
- <li class="tsd-kind-type-alias"><a href="types/WxUnitTuple.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Wx<wbr/>Unit<wbr/>Tuple</a></li>
215
- <li class="tsd-kind-variable"><a href="variables/WxLayerBaseImplementation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>Wx<wbr/>Layer<wbr/>Base<wbr/>Implementation</a></li>
216
- <li class="tsd-kind-function"><a href="functions/WXLOG.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>WXLOG</a></li>
217
- <li class="tsd-kind-function"><a href="functions/WxCreateLegend.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>Wx<wbr/>Create<wbr/>Legend</a></li>
218
- <li class="tsd-kind-function"><a href="functions/WxGetColorSchemes.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>Wx<wbr/>Get<wbr/>Color<wbr/>Schemes</a></li>
219
- <li class="tsd-kind-function"><a href="functions/WxGetColorStyles.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>Wx<wbr/>Get<wbr/>Color<wbr/>Styles</a></li>
220
- <li class="tsd-kind-function"><a href="functions/WxTilesLogging.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>Wx<wbr/>Tiles<wbr/>Logging</a></li></ul></nav></div></div>
307
+ <li class="tsd-kind-variable"><a href="variables/WxLayerBaseImplementation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>Wx<wbr/>Layer<wbr/>Base<wbr/>Implementation</a></li></ul></nav></div></div>
221
308
  <div class="container tsd-generator">
222
309
  <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
223
310
  <div class="overlay"></div><script src="assets/main.js"></script></body></html>