Overview
The possibility to highlight business KPIs with colors on tailored custom maps and to drill down into details from that is a common need in several sectors such as:
Leveraging an SVG integration, we provide a way to customer to use their own svg maps into Appian SAIL.
Key Features & Functionality
The interactiveSvgMapComponent allows customers to:
Thanks Lorenzo. I tried using the above suggested but same results.
readtextfromfile function asks for two parameters, I tried passing another boolean param both values but no luck
...
The component does not read the document but expect a text as svg map parameter, so if you want to use a document you should import in your environment the Text File Utilities plugin and pass as parameter
svgMap: readtextfromfile(cons!TVM_USA_LABEL_BOXES)
Hi, I am trying to use this plugin but when referencing a document image via constant it's not showing up. I am not able to import the sample application as its a community edition environment. Please suggest what could be wrong here.Moreover, How can we get a sample svg image for world or USA map?
Things I would check
Hello, I used this plug-in in my community appian and everything worked fine. Then I copied the interface in my company's appian and map won't appear. Everything is the same. I had an issue of this type a month ago, when I didn't see the map, but one of my colleagues did - I thought that it could be a version issue (as my company's Appian used the previous version of plug-in), but now neither of us sees the map. (Currently we have the latest version of plug-in)
Thank you Lorenzo for helping us.
We had everything right, I just hadn't found the readtextfromfile function (probably because the plugin is a bit old).
Congratulations on the great Plug-in you've developed, grazie!
You are passing the document as parameter while you should pass the svg as string as per doc mapSvg (Text): SVG Map Source
In your case you can use readtextfromfile(local!svg) , requires Text File Utilities plugin, in your code to get that
Also be aware that to be shown SVG file should start with <svg> tag (no xml/html headers tag)
refers to the word document with all parameters and note in the download package
This is the second image, not sure if you can see it.
Thank you for your reply.
I took another look at the sample app, but from what I can see all the SVGs that are used there are inside constants.
Let me show you an example:
As you can see, the SVG is not visible with your component. Are we doing something wrong?