fix web path error

This commit is contained in:
Dave Conway-Jones 2019-09-27 12:21:59 +01:00
parent f061ac10c1
commit f1b377a196
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
5 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap
- v2.1.3 - Fix web page file path error
- v2.1.2 - Fix layercontrol remove bug. Issue #116
- v2.1.1 - fix bug in repeated add with polygon
- v2.1.0 - add ui-worldmap node to make embedding in Dashboard easier. Let -in node specify connection actions only.

View File

@ -7,6 +7,7 @@ map web page for plotting "things" on.
### Updates
- v2.1.3 - Fix web page file path error
- v2.1.2 - Fix layercontrol remove bug. Issue #116
- v2.1.1 - fix bug in repeated add with polygon
- v2.1.0 - add ui-worldmap node to make embedding in Dashboard easier. Let -in node specify connection actions only.
@ -36,8 +37,7 @@ see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for
Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red`
npm i --save node-red-contrib-web-worldmap
npm i node-red-contrib-web-worldmap
## Usage

View File

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

View File

@ -408,7 +408,7 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
return this.name?"node_label_italic":"";
},
info: function() {
return 'The map can also be found [here]('+RED.settings.httpNodeRoot.slice(0,-1)+this.path+').';
return 'The map can be found [here]('+RED.settings.httpNodeRoot.slice(0,-1)+this.path+').';
},
oneditprepare: function() {
$("#node-input-size").elementSizer({

View File

@ -43,7 +43,7 @@ module.exports = function(RED) {
node.coords = n.coords || "none";
node.showgrid = n.showgrid || "false";
node.path = n.path || "/worldmap";
if (node.path.charAt(0) != "/") { noed.path = "/" + node.path; }
if (node.path.charAt(0) != "/") { node.path = "/" + node.path; }
if (!sockets[node.path]) {
var libPath = path.posix.join(RED.settings.httpNodeRoot, node.path, 'leaflet', 'sockjs.min.js');
var sockPath = path.posix.join(RED.settings.httpNodeRoot,node.path,'socket');