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 = 833);
/******/ })
/************************************************************************/
/******/ ({

/***/ 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
  }
}


/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

/***/ 364:
/***/ (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_LayerSelect_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(365);
/* 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_LayerSelect_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_LayerSelect_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_LayerSelect_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_LayerSelect_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_LayerSelect_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _createClass2 = _interopRequireDefault(__webpack_require__(14));
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _vuePropertyDecorator = __webpack_require__(9);
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _mapGetter = _interopRequireDefault(__webpack_require__(7));
var _TreeSelect = _interopRequireDefault(__webpack_require__(835));
var _LayerSelectViewModel = _interopRequireDefault(__webpack_require__(836));
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
  var c = arguments.length,
    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
    d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var LayerSelect = /*#__PURE__*/function (_Mixins) {
  (0, _inheritsLoose2.default)(LayerSelect, _Mixins);
  function LayerSelect() {
    var _this;
    _this = _Mixins.apply(this, arguments) || this;
    _this.treeData = [];
    return _this;
  }
  var _proto = LayerSelect.prototype;
  _proto.created = function created() {
    this.viewModel = new _LayerSelectViewModel.default();
    this.viewModel.on('layersupdated', this.layerUpdate);
  };
  _proto.getSelectedValue = function getSelectedValue(selectedData) {
    if (!selectedData || !selectedData.id || !selectedData.type) {
      return '';
    }
    return selectedData.id + "+" + selectedData.type;
  };
  _proto.layerUpdate = function layerUpdate(_ref) {
    var sourceList = _ref.sourceList;
    this.treeData = this.handleDatas(sourceList);
  };
  _proto.handleNodeChange = function handleNodeChange(val, label) {
    var _val$split = val.split('+'),
      id = _val$split[0],
      type = _val$split[1];
    var extra = this.sourceListDataCache[val] || {};
    this.$emit('change', {
      id: id,
      type: type
    }, label, extra);
    this.$emit('changedata', {
      id: id,
      type: type
    });
  };
  _proto.handleDatas = function handleDatas(sourceList) {
    var _this2 = this;
    var treeData = [];
    this.sourceListDataCache = {};
    Object.keys(sourceList).forEach(function (sourceName, sIndex) {
      var _sourceList$sourceNam = sourceList[sourceName],
        id = _sourceList$sourceNam.id,
        type = _sourceList$sourceNam.type,
        visibility = _sourceList$sourceNam.visibility;
      var disabled = false;
      var selectable = true;
      if (_this2.filter) {
        var res = _this2.filter(sourceList[sourceName], 'source', _this2.map) || {};
        disabled = res.disabled;
        selectable = res.selectable;
        if (typeof res.show === 'boolean' && res.show === false) {
          return;
        }
      }
      var sourceValue = sourceName + "+source";
      var sourceInfo = {
        title: sourceName,
        value: sourceValue,
        key: "" + sIndex,
        disabled: !!disabled,
        selectable: selectable
      };
      _this2.sourceListDataCache[sourceValue] = {
        id: id,
        type: type,
        visibility: visibility
      };
      if (sourceList[sourceName].sourceLayerList) {
        var sourceChildren = [];
        Object.keys(sourceList[sourceName].sourceLayerList).forEach(function (sourceLayerName, slIndex) {
          var disabled = false;
          var selectable = true;
          var sourceLayerOption = {
            id: null,
            source: id,
            sourceLayer: sourceLayerName
          };
          if (_this2.filter) {
            var _res = _this2.filter(sourceLayerOption, 'sourceLayer', _this2.map) || {};
            disabled = _res.disabled;
            selectable = _res.selectable;
            if (typeof _res.show === 'boolean' && _res.show === false) {
              return;
            }
          }
          var sourceLayerValue = sourceLayerName + "+sourceLayer";
          var sourceLayerInfo = {
            title: sourceLayerName,
            value: sourceLayerValue,
            key: sIndex + "-" + slIndex,
            disabled: !!disabled,
            selectable: selectable
          };
          _this2.sourceListDataCache[sourceLayerValue] = sourceLayerOption;
          var layers = sourceList[sourceName].sourceLayerList[sourceLayerName];
          var sourceLayerChildren = _this2.handleLayers(layers, sIndex + "-" + slIndex);
          if (sourceLayerChildren.length) {
            sourceLayerInfo.children = sourceLayerChildren;
          }
          sourceChildren.push(sourceLayerInfo);
        });
        if (sourceChildren.length) {
          sourceInfo.children = sourceChildren;
        }
      } else {
        var layers = sourceList[sourceName].layers;
        var layerChildren = _this2.handleLayers(layers, sIndex);
        if (layerChildren.length) {
          sourceInfo.children = layerChildren;
        }
      }
      treeData.push(sourceInfo);
    });
    return treeData;
  };
  _proto.handleLayers = function handleLayers(layers, keyString) {
    var _this3 = this;
    var layerChildren = [];
    layers.forEach(function (layerInfo, lIndex) {
      var id = layerInfo.id,
        maxzoom = layerInfo.maxzoom,
        minzoom = layerInfo.minzoom,
        source = layerInfo.source,
        sourceLayer = layerInfo.sourceLayer,
        type = layerInfo.type,
        visibility = layerInfo.visibility;
      var disabled = false;
      var selectable = true;
      if (_this3.filter) {
        var res = _this3.filter(layerInfo, 'layer', _this3.map) || {};
        disabled = res.disabled;
        selectable = res.selectable;
        if (typeof res.show === 'boolean' && res.show === false) {
          return;
        }
      }
      var layerValue = layerInfo.id + "+layer";
      layerChildren.push({
        title: layerInfo.id,
        value: layerValue,
        key: keyString + "-" + lIndex,
        disabled: !!disabled,
        selectable: selectable
      });
      _this3.sourceListDataCache[layerValue] = {
        id: id,
        maxzoom: maxzoom,
        minzoom: minzoom,
        source: source,
        sourceLayer: sourceLayer,
        type: type,
        visibility: visibility
      };
    });
    return layerChildren;
  };
  _proto.getPopupContainer = function getPopupContainer(triggerNode) {
    return triggerNode.parentNode;
  };
  _proto.beforeDestory = function beforeDestory() {
    this.sourceListDataCache = {};
    this.treeData = [];
    this.viewModel && this.viewModel.off('layersupdated', this.layerUpdate);
  };
  (0, _createClass2.default)(LayerSelect, [{
    key: "cValue",
    get: function get() {
      return this.getSelectedValue(this.value) || this.getSelectedValue(this.defaultValue);
    }
  }]);
  return LayerSelect;
}((0, _vuePropertyDecorator.Mixins)(_mapGetter.default, _Theme.default));
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: function _default() {
    return {
      type: '',
      id: ''
    };
  }
})], LayerSelect.prototype, "value", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)()], LayerSelect.prototype, "defaultValue", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)()], LayerSelect.prototype, "filter", void 0);
LayerSelect = __decorate([(0, _vuePropertyDecorator.Component)({
  name: 'SmLayerSelect',
  components: {
    TreeSelect: _TreeSelect.default
  },
  model: {
    prop: 'value',
    event: 'changedata'
  }
})], LayerSelect);
var _default2 = exports.default = LayerSelect;

/***/ }),

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

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

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _SourceModel = _interopRequireDefault(__webpack_require__(44));
var _LayerModel = _interopRequireDefault(__webpack_require__(45));
var SourceListModel = /*#__PURE__*/function () {
  function SourceListModel(options) {
    this.map = options.map;
    this.style = this.map.getStyle();
    this.layers = this.map.getStyle().layers;
    this.overlayLayers = this.map.overlayLayersManager;
    this.detailLayers = null;
    this.sourceList = {};
    this.sourceNames = [];
    this._initLayers();
    this._initSource();
    this.excludeSourceNames = ['tdt-search-', 'tdt-route-', 'smmeasure', 'mapbox-gl-draw'];
  }
  var _proto = SourceListModel.prototype;
  _proto.getSourceList = function getSourceList() {
    var sourceList = {};
    for (var key in this.sourceList) {
      if (key && this.excludeSource(key)) {
        sourceList[key] = this.sourceList[key];
      }
    }
    return sourceList;
  };
  _proto.getSourceNames = function getSourceNames() {
    var _this = this;
    var names = [];
    this.sourceNames.forEach(function (element) {
      if (element && _this.excludeSource(element)) {
        names.push(element);
      }
    });
    return names;
  };
  _proto.excludeSource = function excludeSource(key) {
    for (var i = 0; i < this.excludeSourceNames.length; i++) {
      if (key.indexOf(this.excludeSourceNames[i]) >= 0) {
        return false;
      }
    }
    return true;
  };
  _proto.getLegendStyle = function getLegendStyle(sourceName) {
    if (sourceName) {
      return this.sourceList[sourceName] ? this.sourceList[sourceName].style : '';
    }
    var sourceList = Object.values(this.sourceList) || [];
    var styles = sourceList.filter(function (item) {
      return !!item.style;
    });
    return styles;
  };
  _proto.getLayers = function getLayers() {
    return this.detailLayers;
  };
  _proto.getLayersBySourceLayer = function getLayersBySourceLayer(sourceName, sourceLayer) {
    return this.sourceList[sourceName].sourceLayerList[sourceLayer];
  };
  _proto.getSourceLayersBySource = function getSourceLayersBySource(sourceName) {
    return this.sourceList[sourceName].sourceLayerList;
  };
  _proto.addSourceStyle = function addSourceStyle(sourceName, sourceStyle) {
    if (this.sourceList[sourceName]) {
      this.sourceList[sourceName].style = sourceStyle;
    }
  };
  _proto._initLayers = function _initLayers() {
    var _this2 = this;
    this.layers && (this.detailLayers = this.layers.map(function (layer) {
      return _this2.map.getLayer(layer.id);
    }));
    var overLayerList = Object.values(this.overlayLayers);
    overLayerList.forEach(function (overlayer) {
      if (overlayer.id) {
        _this2.detailLayers.push({
          id: overlayer.id,
          visibility: overlayer.visibility ? 'visible' : 'none',
          source: overlayer.id
        });
      }
    });
  };
  _proto._initSource = function _initSource() {
    var _this3 = this;
    this.detailLayers && this.detailLayers.forEach(function (layer) {
      if (!_this3.sourceList[layer.source]) {
        var source = _this3.map.getSource(layer.source);
        _this3.sourceList[layer.source] = new _SourceModel.default({
          source: layer.source,
          type: source && source.type
        });
        _this3.sourceNames.push(layer.source);
      }
      _this3.sourceList[layer.source].addLayer(new _LayerModel.default(layer), layer.sourceLayer);
    });
  };
  return SourceListModel;
}();
var _default = exports.default = SourceListModel;

/***/ }),

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

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var SourceModel = /*#__PURE__*/function () {
  function SourceModel(options) {
    this.id = options.source;
    this.sourceLayerList = {};
    this.layers = [];
    this.type = options.type;
  }
  var _proto = SourceModel.prototype;
  _proto.addLayer = function addLayer(layer, sourceLayer) {
    if (sourceLayer) {
      if (!this.sourceLayerList[sourceLayer]) {
        this.sourceLayerList[sourceLayer] = [];
      }
      this.sourceLayerList[sourceLayer].push(layer);
    } else {
      this.sourceLayerList = undefined;
    }
    this.layers.push(layer);
    if ([layer.visibility, this.visibility].includes('visible')) {
      this.visibility = 'visible';
    } else {
      this.visibility = 'none';
    }
  };
  return SourceModel;
}();
var _default = exports.default = SourceModel;

/***/ }),

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

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
/**
 * @class LayerModel
 * @description 图层数据模型。
 * @param {Object} options - 图层参数。
 * @param {String} [options.id] - 图层 ID。
 * @param {Number} [options.maxzoom] - 最大缩放级别。
 * @param {Number} [options.minzoom] - 最小缩放级别。
 * @param {GeoJSONObject} [options.source] - 数据源。
 * @param {String} [options.type] - 图层类型。
 * @param {String} [options.visibility] - 图层是否可见。
 * @category Model
 */
var LayerModel = function LayerModel(options) {
  if (options === void 0) {
    options = {};
  }
  this.id = options.id;
  this.maxzoom = options.maxzoom;
  this.minzoom = options.minzoom;
  this.source = options.source;
  this.sourceLayer = options.sourceLayer;
  this.type = options.type;
  this.visibility = options.visibility || 'visible';
};
var _default = exports.default = LayerModel;

/***/ }),

/***/ 467:
/***/ (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/layer-select/LayerSelect.vue?vue&type=template&id=5bdb726b&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "TreeSelect",
    _vm._b(
      {
        attrs: {
          value: _vm.cValue,
          "tree-data": _vm.treeData,
          multiple: false,
          dropdownMatchSelectWidth: true,
          getPopupContainer: _vm.getPopupContainer,
        },
        on: { change: _vm.handleNodeChange },
      },
      "TreeSelect",
      _vm.$attrs,
      false
    )
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./src/mapboxgl/layer-select/LayerSelect.vue?vue&type=template&id=5bdb726b&


/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

"use strict";


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

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LayerSelect_vue_vue_type_template_id_5bdb726b___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(467);
/* harmony import */ var _LayerSelect_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(364);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _LayerSelect_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _LayerSelect_vue_vue_type_script_lang_ts___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"])(
  _LayerSelect_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__["default"],
  _LayerSelect_vue_vue_type_template_id_5bdb726b___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
  _LayerSelect_vue_vue_type_template_id_5bdb726b___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
  false,
  null,
  null,
  null
  
)

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

/***/ }),

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

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

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(24));
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _mapboxGlEnhance = _interopRequireDefault(__webpack_require__(5));
var _SourceListModel = _interopRequireDefault(__webpack_require__(43));
var LayerSelectViewModel = /*#__PURE__*/function (_mapboxgl$Evented) {
  (0, _inheritsLoose2.default)(LayerSelectViewModel, _mapboxgl$Evented);
  function LayerSelectViewModel() {
    var _this;
    _this = _mapboxgl$Evented.call(this) || this;
    _this.updateFn = _this._updateLayers.bind((0, _assertThisInitialized2.default)(_this));
    return _this;
  }
  var _proto = LayerSelectViewModel.prototype;
  _proto._updateLayers = function _updateLayers() {
    var sourceListModel = new _SourceListModel.default({
      map: this.map
    });
    var sourceList = sourceListModel.getSourceList();
    this.fire('layersupdated', {
      sourceList: sourceList
    });
  };
  _proto.setMap = function setMap(mapInfo) {
    var map = mapInfo.map;
    this.map = map;
    this.map.on('styledata', this.updateFn);
    this._updateLayers();
  };
  _proto.removed = function removed() {
    this.map.off('styledata', this.updateFn);
  };
  return LayerSelectViewModel;
}(_mapboxGlEnhance.default.Evented);
var _default = exports.default = LayerSelectViewModel;

/***/ }),

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

module.exports = require("vue-property-decorator");

/***/ })

/******/ });