bump leaflet level to 1.7
This commit is contained in:
parent
4a7af58ded
commit
0faebaa83c
@ -1,6 +1,7 @@
|
|||||||
### Change Log for Node-RED Worldmap
|
### Change Log for Node-RED Worldmap
|
||||||
|
|
||||||
- v2.18.§ - Let fillOpacity be 0.
|
- v2.19.0 - Bump leaflet to latest. v1.7
|
||||||
|
- v2.18.1 - Let fillOpacity be 0.
|
||||||
- v2.18.0 - Add bounds event onzoom or drag.
|
- v2.18.0 - Add bounds event onzoom or drag.
|
||||||
- v2.17.3 - Yet more better feedback on clicks, moves.
|
- v2.17.3 - Yet more better feedback on clicks, moves.
|
||||||
- v2.17.2 - Add smallplane icon.
|
- v2.17.2 - Add smallplane icon.
|
||||||
|
@ -11,7 +11,8 @@ map web page for plotting "things" on.
|
|||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
- v2.18.§ - Let fillOpacity be 0.
|
- v2.19.0 - Bump leaflet to latest. v1.7
|
||||||
|
- v2.18.1 - Let fillOpacity be 0.
|
||||||
- v2.18.0 - Add bounds event onzoom or drag.
|
- v2.18.0 - Add bounds event onzoom or drag.
|
||||||
- v2.17.3 - Yet more better feedback on clicks, moves.
|
- v2.17.3 - Yet more better feedback on clicks, moves.
|
||||||
- v2.17.2 - Add smallplane icon.
|
- v2.17.2 - Add smallplane icon.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"name": "node-red-contrib-web-worldmap",
|
||||||
"version": "2.18.1",
|
"version": "2.19.0",
|
||||||
"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",
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
/* Prevents IE11 from highlighting tiles in blue */
|
||||||
|
.leaflet-tile::selection {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
||||||
.leaflet-safari .leaflet-tile {
|
.leaflet-safari .leaflet-tile {
|
||||||
image-rendering: -webkit-optimize-contrast;
|
image-rendering: -webkit-optimize-contrast;
|
||||||
@ -237,7 +241,8 @@
|
|||||||
|
|
||||||
.leaflet-marker-icon.leaflet-interactive,
|
.leaflet-marker-icon.leaflet-interactive,
|
||||||
.leaflet-image-layer.leaflet-interactive,
|
.leaflet-image-layer.leaflet-interactive,
|
||||||
.leaflet-pane > svg path.leaflet-interactive {
|
.leaflet-pane > svg path.leaflet-interactive,
|
||||||
|
svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
@ -527,7 +532,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-oldie .leaflet-popup-content-wrapper {
|
.leaflet-oldie .leaflet-popup-content-wrapper {
|
||||||
zoom: 1;
|
-ms-zoom: 1;
|
||||||
}
|
}
|
||||||
.leaflet-oldie .leaflet-popup-tip {
|
.leaflet-oldie .leaflet-popup-tip {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
@ -553,15 +558,15 @@
|
|||||||
.leaflet-div-icon {
|
.leaflet-div-icon {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #666;
|
border: 1px solid #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-popup-content-wrapper {
|
.leaflet-popup-content-wrapper {
|
||||||
border-radius: 6px !important;
|
border-radius: 6px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-popup-content {
|
.leaflet-popup-content {
|
||||||
margin: 6px 8px !important;
|
margin: 6px 8px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Tooltip */
|
/* Tooltip */
|
||||||
/* Base styles for the element that has a tooltip */
|
/* Base styles for the element that has a tooltip */
|
||||||
|
File diff suppressed because one or more lines are too long
@ -66,7 +66,11 @@ var connect = function() {
|
|||||||
setTimeout(function() { connect(); }, 2500);
|
setTimeout(function() { connect(); }, 2500);
|
||||||
};
|
};
|
||||||
ws.onmessage = function(e) {
|
ws.onmessage = function(e) {
|
||||||
try { var data = JSON.parse(e.data); handleData(data); }
|
try {
|
||||||
|
var data = JSON.parse(e.data);
|
||||||
|
if (data.hasOwnProperty("type") && data.hasOwnProperty("data") && data.type === "Buffer") { data = data.data.toString(); }
|
||||||
|
handleData(data);
|
||||||
|
}
|
||||||
catch (e) { if (data) { console.log("BAD DATA",data); } }
|
catch (e) { if (data) { console.log("BAD DATA",data); } }
|
||||||
// console.log("DATA",typeof data,data);
|
// console.log("DATA",typeof data,data);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user