Fix maxage set to 0 not recognised

to Close #64
This commit is contained in:
Dave Conway-Jones 2019-01-11 11:11:58 +00:00
parent 3e51895d45
commit c2edfbe63e
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
6 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v1.5.17 - Allow setting maxage to 0 (infinite) correctly - Issue #64
- v1.5.16 - Allow setting panlock, zoomlock and hiderightclick via commands - Issue #60 - v1.5.16 - Allow setting panlock, zoomlock and hiderightclick via commands - Issue #60
- v1.5.15 - Allow setting clusterAt to 0 to fully disable it - Issue #61 - v1.5.15 - Allow setting clusterAt to 0 to fully disable it - Issue #61
- v1.5.14 - Stop delete marker feedback to allow updating multiple maps - Issue #59 - v1.5.14 - Stop delete marker feedback to allow updating multiple maps - Issue #59

View File

@ -9,6 +9,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v1.5.17 - Allow setting maxage to 0 (infinite) correctly - Issue #64
- v1.5.16 - Allow setting panlock, zoomlock and hiderightclick via commands - Issue #60 - v1.5.16 - Allow setting panlock, zoomlock and hiderightclick via commands - Issue #60
- v1.5.15 - Allow setting clusterAt to 0 to fully disable it - Issue #61 - v1.5.15 - Allow setting clusterAt to 0 to fully disable it - Issue #61
- v1.5.14 - Stop delete marker feedback to allow updating multiple maps - Issue #59 - v1.5.14 - Stop delete marker feedback to allow updating multiple maps - Issue #59

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "1.5.16", "version": "1.5.17",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"cgi": "0.3.1", "cgi": "0.3.1",

View File

@ -47,7 +47,7 @@
</div> </div>
<div class="form-row"> <div class="form-row">
<label for="node-input-maxage"><i class="fa fa-clock-o"></i> Max age</label> <label for="node-input-maxage"><i class="fa fa-clock-o"></i> Max age</label>
Remove markers after <input type="text" id="node-input-maxage" style="width:67px;"> seconds Remove markers after <input type="text" id="node-input-maxage" placeholder="600" style="width:67px;"> seconds
</div> </div>
<div class="form-row"> <div class="form-row">
<label for="node-input-usermenu"><i class="fa fa-user"></i> User menu</label> <label for="node-input-usermenu"><i class="fa fa-user"></i> User menu</label>

View File

@ -31,6 +31,7 @@ module.exports = function(RED) {
this.layer = n.layer || ""; this.layer = n.layer || "";
this.cluster = n.cluster || ""; this.cluster = n.cluster || "";
this.maxage = n.maxage || ""; this.maxage = n.maxage || "";
if (n.maxage == 0) { this.maxage = "0"; }
this.showmenu = n.usermenu || "show"; this.showmenu = n.usermenu || "show";
this.layers = n.layers || "show"; this.layers = n.layers || "show";
this.panlock = n.panlock || "false"; this.panlock = n.panlock || "false";

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# date: Dec 23rd 2018 - v1.5.16 # date: Jan 11th 2019 - v1.5.17
CACHE: CACHE:
index.html index.html