node-red-contrib-web-worldmap 5.5.0 → 5.5.1

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 CHANGED
@@ -1,5 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v5.5.1 - Fix maxNativeZoom for pmtiles to pull from tiles files. Issue #312
3
4
  - v5.5.0 - Add ability to load raster pmtiles files. Issue #312
4
5
  - v5.4.0 - Let msg.payload.command.zoomLevels set an array of acceptable zoom levels. Issue #312
5
6
  - v5.3.0 - Let msg.payload.popupOptions object set Leaflet popup options so it can be customised. Issue #311
package/README.md CHANGED
@@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
13
13
 
14
14
  ### Updates
15
15
 
16
+ - v5.5.1 - Fix maxNativeZoom for pmtiles to pull from tiles files. Issue #312
16
17
  - v5.5.0 - Add ability to load raster pmtiles files. Issue #312
17
18
  - v5.4.0 - Let msg.payload.command.zoomLevels set an array of acceptable zoom levels. Issue #312
18
19
  - v5.3.0 - Let msg.payload.popupOptions object set Leaflet popup options so it can be customised. Issue #311
@@ -758,7 +759,7 @@ You can set some default options for the pmtiles by creating a file called **pmt
758
759
 
759
760
  {
760
761
  "attribution": "Protomaps and OSM",
761
- "maxDataZoom": 15,
762
+ "maxNativeZoom": 15,
762
763
  "maxZoom": 20,
763
764
  "theme": "dark"
764
765
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~7.2.0",
@@ -2730,8 +2730,9 @@ function doCommand(cmd) {
2730
2730
  const p = new pmtiles.PMTiles(cmd.map.pmtiles);
2731
2731
  p.getHeader().then((h) => {
2732
2732
  var opt = cmd.map.opt || {};
2733
- if (!opt.maxZoom) { opt.maxZoom = h.maxZoom || 20; }
2734
- opt.maxDataZoom = opt.maxDataZoom || 15;
2733
+ if (!opt.minNativeZoom) { opt.minNativeZoom = h.minZoom || 5; }
2734
+ if (!opt.maxNativeZoom) { opt.maxNativeZoom = h.maxZoom || 15; }
2735
+ opt.maxZoom = opt.maxZoom || 20;
2735
2736
  opt.attribution = opt.attribution || '© Protomaps & OSM';
2736
2737
  if (!opt.paintRules && !opt.labelRules && !opt.backgroundColor && !opt.theme) {
2737
2738
  opt.theme = "light"; // light, dark, white, black, grayscale