Ken
?
I am not sure exactly what you ask. ?But, let me explain a feature of the SVG node that allows you to send a SVG base 64 image to the node (maps).
?
If you send the following JSON object to the SVG node it will show the base 64 SVG image:
?
var m =
[
{
"command": "update_attribute",
"elementId": "image",
"attributeName": "xlink:href",
"attributeValue": msg.payload
}
]
msg.payload = m
return msg;
?
In this JSON, "attributeValue, is the base 64 image, or in this case, msg.payoad.
?
Now you must build the upstream msg.payload, which is the base 64 version of the SVG map code.
?
To build this payload, insert the sag map file after the below string, followed by a ", to complete the string.
?
msg.payload = "data:image/png;base64,SVGFile"
?
To help in your learning, I have attached a "build your own" map using the SVG node.
?
There is a section for sending SVG files in the flow.
?
There are many other individual attributes you can change to customized your rotor graphic, all
taking advantage of the advance features of the SVG Node.
?
?
?
Alan. WA9WUD