@metoceanapi/wxtiles-leaflet 2.0.4 → 2.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metoceanapi/wxtiles-leaflet",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
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",
@@ -25,14 +25,19 @@ async function start() {
25
25
  // const dataServerURL = 'http://tiles3.metoceanapi.com/';
26
26
  const myHeaders = new Headers();
27
27
  // myHeaders.append('x-api-key', 'SpV3J1RypVrv2qkcJE91gG');
28
- const wxapi = new WxAPI({ dataServerURL, maskURL: 'none', qtreeURL: 'none', requestInit: { headers: myHeaders } });
28
+ const wxapi = new WxAPI({
29
+ dataServerURL,
30
+ maskURL: dataServerURL + 'masks/{z}/{x}/{y}.png',
31
+ qtreeURL: dataServerURL + 'masks/9+1.seamask.qtree',
32
+ requestInit: { headers: myHeaders },
33
+ });
29
34
 
30
- // let datasetName = 'gfs.global'; /* 'mercator.global/'; */ /* 'ecwmf.global/'; */ /* 'obs-radar.rain.nzl.national/'; */
31
- // let variables: WxVars = ['air.temperature.at-2m'];
35
+ let datasetName = 'gfs.global'; /* 'mercator.global/'; */ /* 'ecwmf.global/'; */ /* 'obs-radar.rain.nzl.national/'; */
36
+ let variables: WxVars = ['air.temperature.at-2m'];
32
37
  // let variables: WxVars = ['wind.speed.eastward.at-10m', 'wind.speed.northward.at-10m'];
33
38
 
34
- let datasetName = 'ww3-ecmwf.global';
35
- let variables: WxVars = ['wave.direction.mean'];
39
+ // let datasetName = 'ww3-ecmwf.global';
40
+ // let variables: WxVars = ['wave.direction.mean'];
36
41
 
37
42
  // let datasetName = 'obs-radar.rain.nzl.national';
38
43
  // let variables: WxVars = ['reflectivity'];