Let icons be inline images
This commit is contained in:
parent
5bef32c0f4
commit
c830282b24
@ -1,5 +1,6 @@
|
||||
### Change Log for Node-RED Worldmap
|
||||
|
||||
- v4.2.0 - Let icons also be inline images data:image...
|
||||
- v4.1.0 - Add optional SOG, COG, altft, altm input properties.
|
||||
- v4.0.0 - Breaking - Better context menu variable substitution and retention
|
||||
Now uses ${name} syntax rather than $name so we can handle user defined variables in context menus.
|
||||
|
@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
|
||||
|
||||
### Updates
|
||||
|
||||
- v4.2.0 - Let icons also be inline images data:image...
|
||||
- v4.1.0 - Add optional SOG, COG, altft, altm input properties.
|
||||
- v4.0.0 - Breaking - Better context menu variable substitution and retention
|
||||
Now uses ${name} syntax rather than $name so we can handle user defined variables in context menus.
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-contrib-web-worldmap",
|
||||
"version": "4.1.0",
|
||||
"version": "4.2.0",
|
||||
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||
"dependencies": {
|
||||
"@turf/bezier-spline": "~6.5.0",
|
||||
|
@ -1974,7 +1974,7 @@ function setMarker(data) {
|
||||
marker = L.marker(ll, {title:data.name, icon:myMarker, draggable:drag});
|
||||
labelOffset = [12,-4];
|
||||
}
|
||||
else if (data.icon.match(/^https?:.*$|^\//)) { // web url icon https://...
|
||||
else if (data.icon.match(/^https?:.*$|^\/|^data:image\//)) { // web url icon https://...
|
||||
var sz = data.iconSize ?? 32;
|
||||
myMarker = L.icon({
|
||||
iconUrl: data.icon,
|
||||
|
Loading…
Reference in New Issue
Block a user