code: function(style) {
          var dash = style.strokeDashstyle;
          switch (dash) {
              case 'solid':
              case 'dot':
              case 'dash':
              case 'dashdot':
              case 'longdash':
              case 'longdashdot':
                  return dash;
              default:
                  // very basic guessing of dash style patterns
                  var parts = dash.split(/[ ,]/);
                  if (parts.length == 2) {
                      if (1*parts[0] >= 2*parts[1]) {
                          return "longdash";
                      }
                      return (parts[0] == 1 || parts[1] == 1) ? "dot" : "dash";
                  } else if (parts.length == 4) {
                      return (1*parts[0] >= 2*parts[1]) ? "longdashdot" :
                          "dashdot";
                  }
                  return "solid";
          }
      }
docs: Method: dashStyle
  
  Parameters:
  style - {Object}
  
  Returns:
  {String} A VML compliant 'stroke-dasharray' value