@metoceanapi/wxtiles-leaflet 2.2.0 → 2.3.0-0

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 (33) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/GPLv3.txt +674 -0
  3. package/LICENSE.txt +12 -9
  4. package/dist/es/index.js +2 -2
  5. package/dist/es/utils/wxtools.d.ts +4 -0
  6. package/dist/es/wxAPI/WxAPItypes.d.ts +2 -2
  7. package/dist/es/wxAPI/WxDataSetManager.d.ts +2 -2
  8. package/dist/web/index.js +2 -2
  9. package/docs/docs/assets/search.js +1 -1
  10. package/docs/docs/classes/DataIntegral.html +9 -9
  11. package/docs/docs/classes/WxDataSetManager.html +3 -3
  12. package/docs/docs/functions/WXLOG.html +1 -1
  13. package/docs/docs/functions/WxGetColorSchemes.html +1 -1
  14. package/docs/docs/functions/WxGetColorStyles.html +1 -1
  15. package/docs/docs/functions/WxTilesLogging.html +1 -1
  16. package/docs/docs/interfaces/CachedUriLoaderPromiseFunc.html +3 -3
  17. package/docs/docs/interfaces/Converter.html +2 -2
  18. package/docs/docs/interfaces/DataPicture.html +5 -5
  19. package/docs/docs/interfaces/IntegralPare.html +3 -3
  20. package/docs/docs/interfaces/WxAPIOptions.html +5 -5
  21. package/docs/docs/interfaces/WxColorStyleStrict.html +38 -20
  22. package/docs/docs/interfaces/WxColorStyleWeak.html +40 -20
  23. package/docs/docs/interfaces/WxColorStylesStrict.html +2 -2
  24. package/docs/docs/types/DataIntegrals.html +1 -1
  25. package/docs/docs/types/DataPictures.html +1 -1
  26. package/docs/examples/interactive.html +1 -1
  27. package/docs/examples/seaMaskAndAnimatedBlur.html +1 -1
  28. package/docs/examples/simpleDemo.html +1 -1
  29. package/docs/script/script.css +1 -1
  30. package/docs/script/script.js +5 -5
  31. package/docs/server.py +11 -0
  32. package/package.json +1 -1
  33. package/src_example/start.ts +2 -2
package/docs/server.py ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env python3
2
+ from http.server import HTTPServer, SimpleHTTPRequestHandler, test
3
+ import sys
4
+
5
+ class CORSRequestHandler (SimpleHTTPRequestHandler):
6
+ def end_headers (self):
7
+ self.send_header('Access-Control-Allow-Origin', '*')
8
+ SimpleHTTPRequestHandler.end_headers(self)
9
+
10
+ if __name__ == '__main__':
11
+ test(CORSRequestHandler, HTTPServer, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metoceanapi/wxtiles-leaflet",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-0",
4
4
  "description": "WxTile JS lib to render wxtiles datalayers",
5
5
  "main": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",
@@ -14,7 +14,7 @@ const OPACITY = 0.8;
14
14
  export async function start() {
15
15
  const map = await initFrameWork();
16
16
  addRaster(map, 'baseS', 'baseL', 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', 3);
17
- // addRaster(map, 'baseS', 'baseL', 'https://tiles.metoceanapi.com/base-lines/{z}/{x}/{y}', 5);
17
+ addRaster(map, 'baseS', 'baseL', 'https://tiles.metoceanapi.com/base-lines/{z}/{x}/{y}', 5);
18
18
  // WxTilesLogging(console.trace);
19
19
  // const dataServerURL = 'data/'; // different sources manged in 'start' script in package.json
20
20
  // const dataServerURL = 'https://tilestest.metoceanapi.com/data/';
@@ -187,7 +187,7 @@ export async function start() {
187
187
  await prom; // await always !! even if aborted
188
188
  console.log('aborted');
189
189
  await wxsource.setTime(5); // no abort
190
- console.log('setTime(5) done');
190
+ console.log('setTime(5) done');
191
191
  }//*/
192
192
 
193
193
  /*/ DEMO: preload a timestep