@metoceanapi/wxtiles-leaflet 2.0.9 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metoceanapi/wxtiles-leaflet",
3
- "version": "2.0.9",
3
+ "version": "2.1.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",
@@ -37,7 +37,7 @@ export async function start() {
37
37
  // let variable = 'wave.direction.mean';
38
38
 
39
39
  // let datasetName = 'obs-radar.rain.nzl.national';
40
- // let variables: WxVars = ['reflectivity'];
40
+ // let variable = 'reflectivity';
41
41
 
42
42
  // get datasetName from URL
43
43
  const urlParams = window.location.toString().split('##')[1];
@@ -62,7 +62,7 @@ export async function start() {
62
62
  console.log(e);
63
63
  }
64
64
 
65
- flyTo(map, zoom, lng, lat, bearing, pitch);
65
+ params && flyTo(map, zoom, lng, lat, bearing, pitch); // if no params stay at default position set in initFrameWork()
66
66
 
67
67
  // const sth = { style: {} };
68
68
  map.on('zoom', () => setURL(map, time, datasetName, variable, sth.style));