Interactive SVG Map Component

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:

  • Retail for stores
  • Public Sector for geographical area
  • Logistic for warehouses
  • Office Space design/allocation
  • and many others

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:

  • Provide a custom SVG map image
  • Specify a list of areas as a parameter for which a different color (standard Appian colors or hex code) can be applied, show a custom tooltip, decide the best way to highlight the area on mouse hover, and optionally allow a click event on the area itself
  • Zoom in and out on the map using the mouse, buttons, or icons
  • Pan the map within the component area
  • Use Appian document generation template format to populate a text field in the map image with Appian values
  • As a result, the component will return the index of the selected area (across the ones specified as a parameter), which can be used in SAIL to show the details data related to that area
  • By leveraging the Rich Text Editor image upload connected system, it is also possible to convert the resulting map into a PNG image document for reporting purposes or for use in SAIL interfaces for read-only users.
Anonymous
  • Hi, I'm trying to use this plugin but I am having some problems. I write this code

    interactiveSvgMapField(
        label: "SVG Label test", 
        labelPosition: "ABOVE", 
        instructions: "instructions", 
        helpTooltip: "tooltip", 
        required: false, 
        disabled: false, 
        validations: {}, 
        height: "TALL", 
        showWhen: true, 
        mapSvg: cons!SVG_TEST, 
        mapAreaParameters: {
          id: "circlex",
          caption: "caption test",
          color: "ACCENT"
        }, 
        hoverEffect: "OUTLINE", 
        selectedIndex: {local!selectedIndex}
    )

    I can see the image, but I cannot interact with it.

    I'm using a simple svg image:

    <svg width="100" height="100">
       <circle id="circlex" cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
    </svg>

    In any case, what I would like to do is change the color of the elements based on some inputs.

    Thank you

  • Hi Arun

    there is readme file in the download package. also there is a demo application inside which you can import once you installed the component.  Let me know if I can assist further

  • Please suggest how to use this component as I dont find any document