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 +1 -0
- package/README.md +2 -1
- package/package.json +1 -1
- package/worldmap/worldmap.js +3 -2
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 [ {
|
|
|
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.
|
|
2734
|
-
opt.
|
|
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
|