Fix node label to not truncate path

This commit is contained in:
Dave Conway-Jones 2019-02-05 15:01:45 +00:00
parent f4eb610438
commit 6aa8643cc6
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
- v1.5.19 - Fix map path label
- v1.5.18 - Update Leaflet.vector-markers to 0.0.6 (https://github.com/hiasinho/Leaflet.vector-markers)
- 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

View File

@ -1,6 +1,6 @@
{
"name": "node-red-contrib-web-worldmap",
"version": "1.5.18",
"version": "1.5.19",
"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

@ -158,7 +158,7 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
icon: "white-globe.png",
align: "right",
label: function() {
return this.name||this.path.substr(1)||"world map";
return this.name||(this.path.charAt(0)==='/'?this.path.substr(1):this.path)||"world map";
},
labelStyle: function() {
return this.name?"node_label_italic":"";

View File

@ -19,6 +19,7 @@
<title>Node-RED map all the things</title>
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet",type="text/css" href="css/map.css"/>
<link rel="stylesheet",type="text/css" href="leaflet/leaflet.css"/>
<link rel="stylesheet",type="text/css" href="leaflet/font-awesome/css/font-awesome.min.css"/>

View File

@ -4,6 +4,7 @@
<meta charset='utf-8' />
<title>Node-RED 3D Map all the Things</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="leaflet/sockjs.min.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet'/>

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# date: Jan 26th 2019 - v1.5.18
# date: Feb 5th 2019 - v1.5.19
CACHE:
index.html