Fix ui check callback path

to close #158
This commit is contained in:
Dave Conway-Jones 2021-11-03 11:04:48 +00:00
parent e874fb2a87
commit be204a791e
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
5 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap
- v2.21.1 - Fix ui check callback to not use .
- v2.21.0 - Let config panel select maps to show, default map and choice of overlays.
- v2.20.0 - Add support of .pbf map layers. Issue #123.
- v2.19.0 - Bump leaflet to latest. v1.7

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates
- v2.21.1 - Fix ui check callback to not use .
- v2.21.0 - Let config panel select maps to show, default map and choice of overlays.
- v2.20.0 - Add support of .pbf map layers. Issue 123.
- v2.19.1 - Add filter for bounds events only.

View File

@ -1,6 +1,6 @@
{
"name": "node-red-contrib-web-worldmap",
"version": "2.21.0",
"version": "2.21.1",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": {
"@turf/bezier-spline": "~6.5.0",

View File

@ -437,7 +437,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
}
});
$.get('/.ui-worldmap', function (data) {
$.get('/-ui-worldmap', function (data) {
if (data === "true") {
RED.nodes.registerType('ui_worldmap',{
category: 'dashboard',

View File

@ -521,7 +521,7 @@ module.exports = function(RED) {
}
RED.nodes.registerType("worldmap-hull",WorldMapHull);
RED.httpNode.get("/.ui-worldmap", function(req, res) {
RED.httpNode.get("/-ui-worldmap", function(req, res) {
res.send(ui ? "true": "false");
});
}