module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "lib/mapboxgl/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 797);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/interopRequireDefault");

/***/ }),

/***/ 1:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 101:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
var render, staticRenderFns




/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(
  _Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__["default"],
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 102:
/***/ (function(module, exports) {

module.exports = require("ant-design-vue/es/collapse/CollapsePanel");

/***/ }),

/***/ 116:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/collapse");

/***/ }),

/***/ 12:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_utils/util.js");

/***/ }),

/***/ 17:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/control.js");

/***/ }),

/***/ 2:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/init.js");

/***/ }),

/***/ 22:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Card.js");

/***/ }),

/***/ 3:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/inheritsLoose");

/***/ }),

/***/ 31:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Panel_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 32:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.collapsePanelTypes = void 0;
var _CollapsePanel = _interopRequireDefault(__webpack_require__(102));
var _vcCollapse = __webpack_require__(96);
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _AntdRender = _interopRequireDefault(__webpack_require__(6));
var collapsePanelTypes = exports.collapsePanelTypes = Object.assign({}, (0, _vcCollapse.panelProps)());
var _default = exports.default = {
  name: 'SmCollapsePanel',
  defaultComponent: _CollapsePanel.default,
  mixins: [_Theme.default, _AntdRender.default],
  inheritAttrs: false,
  props: collapsePanelTypes,
  methods: {
    getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
      if (customizePrefixCls) {
        return customizePrefixCls;
      }
      return this.defaultPrefixCls + "-" + suffixCls;
    }
  }
};

/***/ }),

/***/ 340:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(341);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 341:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _control = _interopRequireDefault(__webpack_require__(17));
var _mapGetter = _interopRequireDefault(__webpack_require__(7));
var _Card = _interopRequireDefault(__webpack_require__(22));
var _Card2 = _interopRequireDefault(__webpack_require__(57));
var _Collapse = _interopRequireDefault(__webpack_require__(116));
var _Panel = _interopRequireDefault(__webpack_require__(101));
var _LegendViewModel = _interopRequireDefault(__webpack_require__(799));
var _util = __webpack_require__(12);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default2 = exports.default = {
  name: 'SmLegend',
  components: {
    SmCard: _Card2.default,
    SmCollapse: _Collapse.default,
    SmCollapsePanel: _Panel.default
  },
  filters: {
    selectLayerType: function selectLayerType(featureType, style) {
      if (style.className) {
        return style.className;
      }
      var result = {
        POLYGON: 'sm-components-icon-ploygon',
        POINT: 'sm-components-icon-multi-point',
        LINE: 'sm-components-icon-line'
      }[featureType];
      if (featureType === 'POINT' && style.type !== 'BASIC_POINT') {
        return '';
      }
      return result;
    }
  },
  mixins: [_mapGetter.default, _control.default, _Theme.default, _Card.default],
  props: {
    headerName: {
      type: String,
      default: function _default() {
        return this.$t('legend.title');
      }
    },
    iconClass: {
      type: String,
      default: 'sm-components-icon-list'
    },
    layerNames: {
      type: Array,
      required: true
    },
    isShowTitle: {
      type: Boolean,
      default: false
    },
    isShowField: {
      type: Boolean,
      default: false
    },
    mode: {
      type: String,
      default: 'simple',
      validator: function validator(mode) {
        return ['simple', 'panel'].includes(mode);
      }
    },
    position: {
      type: String,
      default: 'bottom-left'
    }
  },
  data: function data() {
    return {
      legendList: {},
      // 控制第一个图例默认展开
      activeLegend: [],
      themeStyle: {}
    };
  },
  computed: {
    uniqueSymbolStyle: function uniqueSymbolStyle() {
      return function (styleItem) {
        var style = styleItem.style,
          radius = styleItem.radius,
          color = styleItem.color;
        var generateStyle = {};
        switch (style.type) {
          case 'BASIC_POINT':
            generateStyle.color = (0, _util.getColorWithOpacity)(style.fillColor || color, style.fillOpacity);
            break;
          case 'SYMBOL_POINT':
            generateStyle.color = (0, _util.getColorWithOpacity)(style.fillColor || color, style.fillOpacity);
            generateStyle.fontSize = radius * 2 + "px";
            break;
          case 'IMAGE_POINT':
            generateStyle.background = "url(" + style.imageInfo.url + ")";
            generateStyle.backgroundSize = 'contain';
            generateStyle.width = (style.radius || radius) * 2 + "px";
            generateStyle.height = (style.radius || radius) * 2 + "px";
            break;
          case 'SVG_POINT':
            generateStyle['-webkit-mask'] = "url(" + style.url + ")";
            generateStyle.backgroundColor = (0, _util.getColorWithOpacity)(style.fillColor || color, style.fillOpacity);
            generateStyle['-webkit-mask-size'] = 'contain';
            generateStyle.width = (style.radius || radius) * 2 + "px";
            generateStyle.height = (style.radius || radius) * 2 + "px";
            break;
          default:
            generateStyle.color = (0, _util.getColorWithOpacity)(style.fillColor || color, style.fillOpacity);
            break;
        }
        return generateStyle;
      };
    },
    rankSymbolStyle: function rankSymbolStyle() {
      return function (styleItem) {
        var style = styleItem.style,
          radius = styleItem.radius,
          color = styleItem.color;
        var generateStyle = {};
        switch (style.type) {
          case 'BASIC_POINT':
            generateStyle.background = (0, _util.getColorWithOpacity)(color || style.fillColor, style.fillOpacity);
            generateStyle.width = radius * 2 + "px";
            generateStyle.height = radius * 2 + "px";
            generateStyle.borderRadius = radius + "px";
            break;
          case 'SYMBOL_POINT':
            generateStyle.color = (0, _util.getColorWithOpacity)(color || style.fillColor, style.fillOpacity);
            generateStyle.fontSize = radius * 2 + "px";
            break;
          case 'IMAGE_POINT':
            generateStyle.background = "url(" + style.imageInfo.url + ")";
            generateStyle.backgroundSize = 'contain';
            generateStyle.width = radius * 2 + "px";
            generateStyle.height = radius * 2 + "px";
            break;
          default:
            break;
        }
        return generateStyle;
      };
    },
    showRangeInfo: function showRangeInfo() {
      var _this = this;
      return function (item, layerKey) {
        var start = item.start,
          end = item.end;
        if (start !== undefined && end !== undefined) {
          if (_this.legendList[layerKey].integerType) {
            return _this.getIntegerRangeInfo(start, end);
          }
          return start + " - " + end;
        }
        return start !== undefined ? "\u2265" + start : "\u2264" + end;
      };
    },
    rankIconStyle: function rankIconStyle() {
      return function (styleGroup) {
        if (styleGroup instanceof Array) {
          var radiusArr = styleGroup.map(function (item) {
            return item.radius;
          });
          var maxRadius = Math.max.apply(Math, radiusArr);
          return {
            width: maxRadius * 2 + "px"
          };
        }
        return {};
      };
    }
  },
  watch: {
    layerNames: function layerNames() {
      this.initLegendList();
    }
  },
  methods: {
    initLegendList: function initLegendList() {
      var _this2 = this;
      this.legendList = {};
      if (this.viewModel) {
        this.layerNames.forEach(function (layer) {
          var style = _this2.viewModel.getStyle(layer);
          if (!style) {
            return;
          }
          if (!_this2.legendList[layer]) {
            _this2.$set(_this2.legendList, layer, style);
          }
        });
        this.activeLegend = JSON.stringify(this.legendList) !== '{}' ? Object.keys(this.legendList)[0] : [];
        this.activeLegend = this.isShowTitle ? this.activeLegend : Object.keys(this.legendList);
      }
    },
    getIntegerRangeInfo: function getIntegerRangeInfo(start, end) {
      if (end - 1 === start || end === start) {
        return "" + start;
      }
      return start + " - " + (end - 1);
    }
  },
  loaded: function loaded() {
    // show用来控制图例列表的显示
    this.viewModel = new _LegendViewModel.default(this.webmap);
    this.initLegendList();
  },
  removed: function removed() {
    this.legendList = {};
  }
};

/***/ }),

/***/ 4:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Theme.js");

/***/ }),

/***/ 458:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/mapboxgl/web-map/control/legend/Legend.vue?vue&type=template&id=f5c045cc&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "sm-collapse-card",
    {
      directives: [
        {
          name: "show",
          rawName: "v-show",
          value: _vm.isShow,
          expression: "isShow",
        },
      ],
      staticClass: "sm-component-legend",
      attrs: {
        "icon-class": _vm.mode === "simple" ? "" : _vm.iconClass,
        "icon-position": _vm.position,
        "header-name": _vm.mode === "simple" ? "" : _vm.headerName,
        "auto-rotate": _vm.autoRotate,
        collapsed: _vm.collapsed,
        background: _vm.background,
        textColor: _vm.textColor,
        "split-line": _vm.splitLine,
      },
    },
    [
      _c(
        "sm-card",
        {
          style: _vm.mode !== "simple" && _vm.collapseCardBackgroundStyle,
          attrs: { bordered: false },
        },
        [
          (_vm.mode === "panel" ||
            (_vm.layerNames.length > 1 && _vm.mode !== "simple")) &&
          JSON.stringify(_vm.legendList) !== "{}"
            ? _c(
                "sm-collapse",
                {
                  staticClass: "sm-component-legend__table",
                  model: {
                    value: _vm.activeLegend,
                    callback: function ($$v) {
                      _vm.activeLegend = $$v
                    },
                    expression: "activeLegend",
                  },
                },
                _vm._l(_vm.legendList, function (layerValue, layerKey) {
                  return _c(
                    "sm-collapse-panel",
                    {
                      key: layerKey,
                      class: [
                        _vm.isShowTitle ? "" : "sm-component-legend__panel",
                      ],
                      attrs: { disabled: !_vm.isShowTitle, showArrow: false },
                    },
                    [
                      _c("template", { slot: "header" }, [
                        _vm.isShowTitle
                          ? _c(
                              "div",
                              {
                                staticClass: "header-wrap",
                                style: _vm.headingTextColorStyle,
                              },
                              [
                                _c(
                                  "div",
                                  {
                                    staticClass:
                                      "sm-component-legend__title add-ellipsis",
                                  },
                                  [_vm._v(_vm._s(layerValue.layerId))]
                                ),
                                _c("i", {
                                  class: _vm.activeLegend.includes(layerKey)
                                    ? "sm-components-icon-solid-triangle-down"
                                    : "sm-components-icon-solid-triangle-right",
                                }),
                              ]
                            )
                          : _vm._e(),
                      ]),
                      _vm.isShowField
                        ? _c(
                            "div",
                            {
                              staticClass:
                                "sm-component-legend__themefield add-ellipsis",
                              style: _vm.secondaryTextColorStyle,
                            },
                            [
                              _vm._v(
                                "\n          " +
                                  _vm._s(_vm.$t("legend.themeField")) +
                                  ":" +
                                  _vm._s(layerValue.themeField) +
                                  "\n        "
                              ),
                            ]
                          )
                        : _vm._e(),
                      layerValue.layerType === "UNIQUE"
                        ? _c(
                            "div",
                            { staticClass: "sm-component-legend__wrap" },
                            [
                              _c(
                                "div",
                                { staticClass: "sm-component-legend__point" },
                                _vm._l(
                                  layerValue.styleGroup,
                                  function (item, j) {
                                    return _c(
                                      "div",
                                      {
                                        key: j,
                                        staticClass:
                                          "sm-component-legend__item",
                                      },
                                      [
                                        _c(
                                          "div",
                                          {
                                            staticClass:
                                              "sm-component-legend__rank-icon",
                                          },
                                          [
                                            _c("i", {
                                              class: _vm._f("selectLayerType")(
                                                layerValue.featureType,
                                                item.style
                                              ),
                                              style:
                                                _vm.uniqueSymbolStyle(item),
                                            }),
                                          ]
                                        ),
                                        _c(
                                          "span",
                                          { staticClass: "add-ellipsis" },
                                          [
                                            _vm._v(
                                              "\n                " +
                                                _vm._s(item.value) +
                                                "\n              "
                                            ),
                                          ]
                                        ),
                                      ]
                                    )
                                  }
                                ),
                                0
                              ),
                            ]
                          )
                        : _vm._e(),
                      layerValue.layerType === "HEAT"
                        ? _c(
                            "div",
                            { staticClass: "sm-component-legend__wrap" },
                            [
                              _c(
                                "div",
                                { staticClass: "sm-component-legend__heatbox" },
                                [
                                  _c(
                                    "div",
                                    {
                                      staticClass: "sm-component-legend__heat",
                                    },
                                    [
                                      _c("i", {
                                        style: {
                                          background:
                                            "linear-gradient(to top," +
                                            layerValue.styleGroup.join(",") +
                                            ")",
                                        },
                                      }),
                                    ]
                                  ),
                                  _c(
                                    "div",
                                    {
                                      staticClass:
                                        "sm-component-legend__heatText",
                                    },
                                    [
                                      _c(
                                        "span",
                                        {
                                          staticClass:
                                            "sm-component-legend__top",
                                        },
                                        [
                                          _c("i", {
                                            staticClass:
                                              "sm-components-icon-solid-triangle-left",
                                          }),
                                          _vm._v(
                                            "\n                " +
                                              _vm._s(_vm.$t("legend.top")) +
                                              "\n              "
                                          ),
                                        ]
                                      ),
                                      _c(
                                        "span",
                                        {
                                          staticClass:
                                            "sm-component-legend__bottom",
                                        },
                                        [
                                          _c("i", {
                                            staticClass:
                                              "sm-components-icon-solid-triangle-left",
                                          }),
                                          _vm._v(
                                            "\n                " +
                                              _vm._s(_vm.$t("legend.bottom")) +
                                              "\n              "
                                          ),
                                        ]
                                      ),
                                    ]
                                  ),
                                ]
                              ),
                            ]
                          )
                        : _vm._e(),
                      layerValue.layerType === "RANGE"
                        ? _c(
                            "div",
                            { staticClass: "sm-component-legend__wrap" },
                            [
                              _c(
                                "div",
                                { staticClass: "sm-component-legend__range" },
                                _vm._l(
                                  layerValue.styleGroup,
                                  function (item, j) {
                                    return _c(
                                      "div",
                                      {
                                        key: j,
                                        staticClass:
                                          "sm-component-legend__range-item",
                                      },
                                      [
                                        _c("div", [
                                          _c("i", {
                                            style: { background: item.color },
                                          }),
                                        ]),
                                        _c(
                                          "span",
                                          { staticClass: "add-ellipsis" },
                                          [
                                            _c("i", {
                                              staticClass:
                                                "sm-components-icon-solid-triangle-left",
                                            }),
                                            _vm._v(
                                              "\n                " +
                                                _vm._s(
                                                  _vm.showRangeInfo(
                                                    item,
                                                    layerKey
                                                  )
                                                ) +
                                                "\n              "
                                            ),
                                          ]
                                        ),
                                      ]
                                    )
                                  }
                                ),
                                0
                              ),
                            ]
                          )
                        : _vm._e(),
                      layerValue.layerType === "RANK_SYMBOL"
                        ? _c(
                            "div",
                            { staticClass: "sm-component-legend__wrap" },
                            [
                              _c(
                                "div",
                                { staticClass: "sm-component-legend__rank" },
                                _vm._l(
                                  layerValue.styleGroup,
                                  function (item, j) {
                                    return _c(
                                      "div",
                                      {
                                        key: j,
                                        staticClass:
                                          "sm-component-legend__rank-item",
                                      },
                                      [
                                        _c(
                                          "div",
                                          {
                                            staticClass:
                                              "sm-component-legend__rank-icon",
                                            style: _vm.rankIconStyle(
                                              layerValue.styleGroup
                                            ),
                                          },
                                          [
                                            _c("i", {
                                              class: item.style.className,
                                              style: _vm.rankSymbolStyle(item),
                                            }),
                                          ]
                                        ),
                                        _c(
                                          "span",
                                          { staticClass: "add-ellipsis" },
                                          [
                                            _c("i", {
                                              staticClass:
                                                "sm-components-icon-solid-triangle-left",
                                            }),
                                            _vm._v(
                                              "\n                " +
                                                _vm._s(item.start) +
                                                "-" +
                                                _vm._s(item.end) +
                                                "\n              "
                                            ),
                                          ]
                                        ),
                                      ]
                                    )
                                  }
                                ),
                                0
                              ),
                            ]
                          )
                        : _vm._e(),
                    ],
                    2
                  )
                }),
                1
              )
            : _vm.mode === "simple" || _vm.layerNames.length === 1
            ? _vm._l(_vm.legendList, function (layerValue, layerKey, index) {
                return _c(
                  "div",
                  { key: index, staticClass: "sm-component-legend__noBorder" },
                  [
                    _vm.isShowTitle
                      ? _c(
                          "div",
                          {
                            staticClass:
                              "sm-component-legend__title add-ellipsis",
                            style: _vm.headingTextColorStyle,
                          },
                          [
                            _vm._v(
                              "\n        " +
                                _vm._s(layerValue.layerId) +
                                "\n      "
                            ),
                          ]
                        )
                      : _vm._e(),
                    _vm.isShowField
                      ? _c(
                          "div",
                          {
                            staticClass:
                              "sm-component-legend__themefield add-ellipsis",
                            style: _vm.secondaryTextColorStyle,
                          },
                          [
                            _vm._v(
                              "\n        " +
                                _vm._s(_vm.$t("legend.themeField")) +
                                ":" +
                                _vm._s(layerValue.themeField) +
                                "\n      "
                            ),
                          ]
                        )
                      : _vm._e(),
                    layerValue.layerType === "UNIQUE"
                      ? _c(
                          "div",
                          { staticClass: "sm-component-legend__wrap" },
                          [
                            _c(
                              "div",
                              { staticClass: "sm-component-legend__point" },
                              _vm._l(layerValue.styleGroup, function (item, j) {
                                return _c(
                                  "div",
                                  {
                                    key: j,
                                    staticClass: "sm-component-legend__item",
                                  },
                                  [
                                    _c(
                                      "div",
                                      {
                                        staticClass:
                                          "sm-component-legend__rank-icon",
                                      },
                                      [
                                        _c("i", {
                                          class: _vm._f("selectLayerType")(
                                            layerValue.featureType,
                                            item.style
                                          ),
                                          style: _vm.uniqueSymbolStyle(item),
                                        }),
                                      ]
                                    ),
                                    _c(
                                      "span",
                                      { staticClass: "add-ellipsis" },
                                      [
                                        _vm._v(
                                          "\n              " +
                                            _vm._s(item.value) +
                                            "\n            "
                                        ),
                                      ]
                                    ),
                                  ]
                                )
                              }),
                              0
                            ),
                          ]
                        )
                      : _vm._e(),
                    layerValue.layerType === "HEAT"
                      ? _c(
                          "div",
                          { staticClass: "sm-component-legend__wrap" },
                          [
                            _c(
                              "div",
                              { staticClass: "sm-component-legend__heatbox" },
                              [
                                _c(
                                  "div",
                                  { staticClass: "sm-component-legend__heat" },
                                  [
                                    _c("i", {
                                      style: {
                                        background:
                                          "linear-gradient(to top," +
                                          layerValue.styleGroup.join(",") +
                                          ")",
                                      },
                                    }),
                                  ]
                                ),
                                _c(
                                  "div",
                                  {
                                    staticClass:
                                      "sm-component-legend__heatText",
                                  },
                                  [
                                    _c(
                                      "span",
                                      {
                                        staticClass: "sm-component-legend__top",
                                      },
                                      [
                                        _c("i", {
                                          staticClass:
                                            "sm-components-icon-solid-triangle-left",
                                        }),
                                        _vm._v(
                                          "\n              " +
                                            _vm._s(_vm.$t("legend.top")) +
                                            "\n            "
                                        ),
                                      ]
                                    ),
                                    _c(
                                      "span",
                                      {
                                        staticClass:
                                          "sm-component-legend__bottom",
                                      },
                                      [
                                        _c("i", {
                                          staticClass:
                                            "sm-components-icon-solid-triangle-left",
                                        }),
                                        _vm._v(
                                          "\n              " +
                                            _vm._s(_vm.$t("legend.bottom")) +
                                            "\n            "
                                        ),
                                      ]
                                    ),
                                  ]
                                ),
                              ]
                            ),
                          ]
                        )
                      : _vm._e(),
                    layerValue.layerType === "RANGE"
                      ? _c(
                          "div",
                          { staticClass: "sm-component-legend__wrap" },
                          [
                            _c(
                              "div",
                              { staticClass: "sm-component-legend__range" },
                              _vm._l(layerValue.styleGroup, function (item, l) {
                                return _c(
                                  "div",
                                  {
                                    key: l,
                                    staticClass:
                                      "sm-component-legend__range-item",
                                  },
                                  [
                                    _c("div", [
                                      _c("i", {
                                        style: { background: item.color },
                                      }),
                                    ]),
                                    _c(
                                      "span",
                                      { staticClass: "add-ellipsis" },
                                      [
                                        _c("i", {
                                          staticClass:
                                            "sm-components-icon-solid-triangle-left",
                                        }),
                                        _vm._v(
                                          "\n              " +
                                            _vm._s(
                                              _vm.showRangeInfo(item, layerKey)
                                            ) +
                                            "\n            "
                                        ),
                                      ]
                                    ),
                                  ]
                                )
                              }),
                              0
                            ),
                          ]
                        )
                      : _vm._e(),
                    layerValue.layerType === "RANK_SYMBOL"
                      ? _c(
                          "div",
                          { staticClass: "sm-component-legend__wrap" },
                          [
                            _c(
                              "div",
                              { staticClass: "sm-component-legend__rank" },
                              _vm._l(layerValue.styleGroup, function (item, l) {
                                return _c(
                                  "div",
                                  {
                                    key: l,
                                    staticClass:
                                      "sm-component-legend__rank-item",
                                  },
                                  [
                                    _c(
                                      "div",
                                      {
                                        staticClass:
                                          "sm-component-legend__rank-icon",
                                        style: _vm.rankIconStyle(
                                          layerValue.styleGroup
                                        ),
                                      },
                                      [
                                        _c("i", {
                                          class: item.style.className,
                                          style: _vm.rankSymbolStyle(item),
                                        }),
                                      ]
                                    ),
                                    _c(
                                      "span",
                                      { staticClass: "add-ellipsis" },
                                      [
                                        _c("i", {
                                          staticClass:
                                            "sm-components-icon-solid-triangle-left",
                                        }),
                                        _vm._v(
                                          "\n              " +
                                            _vm._s(item.start) +
                                            "-" +
                                            _vm._s(item.end) +
                                            "\n            "
                                        ),
                                      ]
                                    ),
                                  ]
                                )
                              }),
                              0
                            ),
                          ]
                        )
                      : _vm._e(),
                  ]
                )
              })
            : _vm._e(),
        ],
        2
      ),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./src/mapboxgl/web-map/control/legend/Legend.vue?vue&type=template&id=f5c045cc&


/***/ }),

/***/ 5:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/static/libs/mapboxgl/mapbox-gl-enhance.js");

/***/ }),

/***/ 57:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/card");

/***/ }),

/***/ 6:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/AntdRender.js");

/***/ }),

/***/ 7:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/map-getter.js");

/***/ }),

/***/ 797:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _Legend = _interopRequireDefault(__webpack_require__(798));
var _init = _interopRequireDefault(__webpack_require__(2));
_Legend.default.install = function (Vue, opts) {
  (0, _init.default)(Vue, opts);
  Vue.component(_Legend.default.options ? _Legend.default.options.name : _Legend.default.name, _Legend.default);
};
var _default = exports.default = _Legend.default;

/***/ }),

/***/ 798:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Legend_vue_vue_type_template_id_f5c045cc___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(458);
/* harmony import */ var _Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(340);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _Legend_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _Legend_vue_vue_type_template_id_f5c045cc___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
  _Legend_vue_vue_type_template_id_f5c045cc___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 799:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _mapboxGlEnhance = _interopRequireDefault(__webpack_require__(5));
/**
 * @class LegendViewModel
 * @description Legend viewModel.
 * @param {Object} webmap - webmap实例对象。
 * @extends mapboxgl.Evented
 */
var LegendViewModel = /*#__PURE__*/function (_mapboxgl$Evented) {
  (0, _inheritsLoose2.default)(LegendViewModel, _mapboxgl$Evented);
  function LegendViewModel(webmap) {
    var _this;
    _this = _mapboxgl$Evented.call(this, webmap) || this;
    _this.webmap = webmap;
    _this.sourceListModel = _this.webmap ? _this.webmap.getSourceListModel : {};
    return _this;
  }
  var _proto = LegendViewModel.prototype;
  _proto.getStyle = function getStyle(layerName) {
    return this.sourceListModel && this.sourceListModel.getLegendStyle(layerName);
  };
  return LegendViewModel;
}(_mapboxGlEnhance.default.Evented);
var _default = exports.default = LegendViewModel;

/***/ }),

/***/ 96:
/***/ (function(module, exports) {

module.exports = require("ant-design-vue/es/vc-collapse");

/***/ })

/******/ });