@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.
- package/CHANGELOG.md +2 -0
- package/GPLv3.txt +674 -0
- package/LICENSE.txt +12 -9
- package/dist/es/index.js +2 -2
- package/dist/es/utils/wxtools.d.ts +4 -0
- package/dist/es/wxAPI/WxAPItypes.d.ts +2 -2
- package/dist/es/wxAPI/WxDataSetManager.d.ts +2 -2
- package/dist/web/index.js +2 -2
- package/docs/docs/assets/search.js +1 -1
- package/docs/docs/classes/DataIntegral.html +9 -9
- package/docs/docs/classes/WxDataSetManager.html +3 -3
- package/docs/docs/functions/WXLOG.html +1 -1
- package/docs/docs/functions/WxGetColorSchemes.html +1 -1
- package/docs/docs/functions/WxGetColorStyles.html +1 -1
- package/docs/docs/functions/WxTilesLogging.html +1 -1
- package/docs/docs/interfaces/CachedUriLoaderPromiseFunc.html +3 -3
- package/docs/docs/interfaces/Converter.html +2 -2
- package/docs/docs/interfaces/DataPicture.html +5 -5
- package/docs/docs/interfaces/IntegralPare.html +3 -3
- package/docs/docs/interfaces/WxAPIOptions.html +5 -5
- package/docs/docs/interfaces/WxColorStyleStrict.html +38 -20
- package/docs/docs/interfaces/WxColorStyleWeak.html +40 -20
- package/docs/docs/interfaces/WxColorStylesStrict.html +2 -2
- package/docs/docs/types/DataIntegrals.html +1 -1
- package/docs/docs/types/DataPictures.html +1 -1
- package/docs/examples/interactive.html +1 -1
- package/docs/examples/seaMaskAndAnimatedBlur.html +1 -1
- package/docs/examples/simpleDemo.html +1 -1
- package/docs/script/script.css +1 -1
- package/docs/script/script.js +5 -5
- package/docs/server.py +11 -0
- package/package.json +1 -1
- 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
package/src_example/start.ts
CHANGED
|
@@ -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
|
-
|
|
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
|