Fix node label to not truncate path
This commit is contained in:
parent
f4eb610438
commit
6aa8643cc6
@ -1,5 +1,6 @@
|
|||||||
### Change Log for Node-RED Worldmap
|
### 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.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.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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"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.",
|
"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",
|
||||||
|
@ -158,7 +158,7 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
|
|||||||
icon: "white-globe.png",
|
icon: "white-globe.png",
|
||||||
align: "right",
|
align: "right",
|
||||||
label: function() {
|
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() {
|
labelStyle: function() {
|
||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
<title>Node-RED map all the things</title>
|
<title>Node-RED map all the things</title>
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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="css/map.css"/>
|
||||||
<link rel="stylesheet",type="text/css" href="leaflet/leaflet.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"/>
|
<link rel="stylesheet",type="text/css" href="leaflet/font-awesome/css/font-awesome.min.css"/>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset='utf-8' />
|
<meta charset='utf-8' />
|
||||||
<title>Node-RED 3D Map all the Things</title>
|
<title>Node-RED 3D Map all the Things</title>
|
||||||
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
|
<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 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>
|
<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'/>
|
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet'/>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# date: Jan 26th 2019 - v1.5.18
|
# date: Feb 5th 2019 - v1.5.19
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user