External: cfg

cfg

Simple json object with state-specific configuration parameters

Example

{
  "s1s1": { // 's1s1' - id of a region. Must be unique.
      "name":"Afghanistan", // Region name
      "color":"#7798bb", // Normal color
      "color2":"#366CA3", // Highlighted color (mouse over)
      "color3":"#ff0000", // Selected color
      "colorDisabled": "#AAAAAA", // Color for disabled state. (optional)
      "popup_type" : "1", // Type of popup behavior. If 2 - url won't be opened,but popup will freeze (if url property not empty)
      "url" : "", // If not empty and popup_type - 1 this url will be opened by click
      "target" : "", // Target for opening url
      "popup": "", // Popup text
      "image": "", // Popup image
      "disabled": false, // Is state disabled by default. (optional, default - false)
      "selectable": true, // Is state can be selected. (optional, default - true)
      "allowOpen": true // Is second level can be shown? (optional, default - true)
  },
...
}