import warning from './images/warning.png';
import error from './images/error.png';
var defaultData = [{
  name: '宿迁富世食品有限公司',
  symbol: "image://".concat(warning),
  symbolSize: 20,
  value: [118.775889, 34.129097],
  data: 67
}, {
  name: '国家级多式联运示范工程',
  symbol: "image://".concat(error),
  symbolSize: 20,
  value: [118.775889, 34],
  data: 34
}];
export var getOption = function getOption() {
  var labelData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultData;
  return {
    tooltip: {},
    geo: {
      map: '沭阳县',
      tooltip: {
        backgroundColor: 'rgba(1,6,29,0.80)',
        padding: 16,
        borderColor: '#013BFF',
        textStyle: {
          color: '#fff',
          fontWeight: 500
        },
        formatter: function formatter(params) {
          var res = '';
          var data = params.data;

          if (params.name !== '沭阳县') {
            res += "".concat(data.name, "<br/>\u98DF\u5B89\u6307\u6570\uFF1A<span style=\"color: #00F6F7;\">").concat(data.data, "\u5206</span>");
          }

          return res;
        }
      },
      label: {
        show: true,
        color: 'rgb(62,63,63)'
      },
      // 地图样式
      itemStyle: {
        // 区域样式
        areaColor: 'transparent',
        borderWidth: 2,
        borderColor: '#7385ea',
        shadowColor: 'rgba(50,180,255,1)',
        shadowBlur: 10,
        shadowOffsetY: 5,
        emphasis: {
          areaColor: 'transparent' //鼠标滑过区域颜色

        }
      }
    },
    series: [{
      data: labelData,
      type: 'scatter',
      coordinateSystem: 'geo',
      backgroundColor: '#00f',
      hoverAnimation: true
    }]
  };
};