tweaks
This commit is contained in:
parent
262298e46d
commit
6234299fd4
@ -142,8 +142,8 @@ module.exports = function(RED) {
|
|||||||
var height = config.height;
|
var height = config.height;
|
||||||
if (height == 0) { height = 10; }
|
if (height == 0) { height = 10; }
|
||||||
var size = ui.getSizes();
|
var size = ui.getSizes();
|
||||||
var frameWidth = (size.sx +size.cx) *width - size.cx - 1;
|
var frameWidth = (size.sx +size.cx) * width - size.cx;
|
||||||
var frameHeight = (size.sy +size.cy) *height - size.cy - 2;
|
var frameHeight = (size.sy +size.cy) * height - size.cy;
|
||||||
var url = encodeURI(config.path);
|
var url = encodeURI(config.path);
|
||||||
var html = `<style>.nr-dashboard-ui_worldmap{padding:0;}</style><div style="overflow:hidden;">
|
var html = `<style>.nr-dashboard-ui_worldmap{padding:0;}</style><div style="overflow:hidden;">
|
||||||
<iframe src="${url}" width="${frameWidth}px" height="${frameHeight}px" style="border:none;"></iframe>
|
<iframe src="${url}" width="${frameWidth}px" height="${frameHeight}px" style="border:none;"></iframe>
|
||||||
|
@ -18,7 +18,7 @@ var menuOpen = false;
|
|||||||
var clusterAt = 0;
|
var clusterAt = 0;
|
||||||
var maxage = 600; // default max age of icons on map in seconds - cleared after 10 mins
|
var maxage = 600; // default max age of icons on map in seconds - cleared after 10 mins
|
||||||
var baselayername = "OSM grey"; // Default base layer OSM but uniform grey
|
var baselayername = "OSM grey"; // Default base layer OSM but uniform grey
|
||||||
var ibmfoot = " © IBM 2015,2019"
|
var ibmfoot = " © IBM 2015,2021"
|
||||||
var inIframe = false;
|
var inIframe = false;
|
||||||
var showUserMenu = true;
|
var showUserMenu = true;
|
||||||
var showLayerMenu = true;
|
var showLayerMenu = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user