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

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


/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

/***/ 316:
/***/ (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_RasterTileLayer_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(317);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_RasterTileLayer_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_RasterTileLayer_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_RasterTileLayer_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_RasterTileLayer_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_RasterTileLayer_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _mapGetter = _interopRequireDefault(__webpack_require__(7));
var _layer = _interopRequireDefault(__webpack_require__(20));
var _RasterTileLayerViewModel = _interopRequireDefault(__webpack_require__(752));
var _default = exports.default = {
  name: 'SmRasterTileLayer',
  mixins: [_mapGetter.default, _layer.default],
  props: {
    tileSize: {
      type: Number
    },
    mapUrl: {
      type: String
    },
    tiles: {
      type: Array
    },
    bounds: {
      type: Array
    },
    attribution: {
      type: String
    },
    scheme: {
      type: String,
      default: 'xyz',
      validator: function validator(scheme) {
        return ['xyz', 'tms'].indexOf(scheme) !== -1;
      }
    }
  },
  watch: {
    tiles: function tiles(val) {
      this.viewModel && this.viewModel.setTiles(val);
    }
  },
  created: function created() {
    this.viewModel = new _RasterTileLayerViewModel.default(this.$props);
  },
  render: function render() {}
};

/***/ }),

/***/ 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");

/***/ }),

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

"use strict";


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

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _RasterTileLayer_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(316);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _RasterTileLayer_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 _RasterTileLayer_vue_vue_type_script_lang_js___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"])(
  _RasterTileLayer_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"],
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

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

/***/ }),

/***/ 752:
/***/ (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));
__webpack_require__(15);
var RasterTileLayerViewModel = exports.default = /*#__PURE__*/function (_mapboxgl$Evented) {
  (0, _inheritsLoose2.default)(RasterTileLayerViewModel, _mapboxgl$Evented);
  function RasterTileLayerViewModel(rasterLayerOptions) {
    var _this;
    _this = _mapboxgl$Evented.call(this) || this;
    var layerId = rasterLayerOptions.layerId,
      tileSize = rasterLayerOptions.tileSize,
      mapUrl = rasterLayerOptions.mapUrl,
      tiles = rasterLayerOptions.tiles,
      bounds = rasterLayerOptions.bounds,
      _rasterLayerOptions$m = rasterLayerOptions.minZoom,
      minZoom = _rasterLayerOptions$m === void 0 ? 0 : _rasterLayerOptions$m,
      _rasterLayerOptions$m2 = rasterLayerOptions.maxZoom,
      maxZoom = _rasterLayerOptions$m2 === void 0 ? 22 : _rasterLayerOptions$m2,
      attribution = rasterLayerOptions.attribution,
      _rasterLayerOptions$s = rasterLayerOptions.scheme,
      scheme = _rasterLayerOptions$s === void 0 ? 'xyz' : _rasterLayerOptions$s,
      _rasterLayerOptions$v = rasterLayerOptions.visible,
      visible = _rasterLayerOptions$v === void 0 ? true : _rasterLayerOptions$v,
      _rasterLayerOptions$o = rasterLayerOptions.opacity,
      opacity = _rasterLayerOptions$o === void 0 ? 1 : _rasterLayerOptions$o,
      before = rasterLayerOptions.before;
    _this.layerId = layerId;
    _this.tileSize = tileSize;
    _this.mapUrl = mapUrl;
    _this.tiles = tiles;
    _this.bounds = bounds;
    _this.minZoom = minZoom;
    _this.maxZoom = maxZoom;
    _this.attribution = attribution;
    _this.scheme = scheme;
    _this.opacity = opacity;
    _this.visibility = visible ? 'visible' : 'none';
    _this.before = before;
    // enhance扩展，传iserver标识是iserver rest map
    _this.rasterSource = '';
    return _this;
  }
  var _proto = RasterTileLayerViewModel.prototype;
  _proto.setMap = function setMap(mapInfo) {
    var map = mapInfo.map;
    this.map = map;
    this._init();
  };
  _proto.setTiles = function setTiles(tiles) {
    if (this.map.getSource(this.layerId)) {
      this.map.getSource(this.layerId).tiles = tiles;
      // @ts-ignore
      this.map.style.sourceCaches[this.layerId].clearTiles();
      // @ts-ignore
      this.map.style.sourceCaches[this.layerId].update(this.map.transform);
      // @ts-ignore
      this.map.triggerRepaint();
    } else {
      this._addLayer();
    }
  };
  _proto._init = function _init() {
    if (this.mapUrl) {
      this._addRestMapLayer();
    } else {
      this._addLayer();
    }
  };
  _proto._addRestMapLayer = function _addRestMapLayer() {
    var _this2 = this;
    var service = new _mapboxGlEnhance.default.supermap.MapService(this.mapUrl);
    service.getMapInfo(function (mapObj) {
      if (!_this2.layerId) {
        _this2.layerId = mapObj.name;
      }
      if (!_this2.tileSize && mapObj.viewer) {
        _this2.tileSize = mapObj.viewer.width;
      }
      var bounds = mapObj.bounds;
      if (!_this2.bounds && bounds) {
        _this2.bounds = [bounds.left, bounds.bottom, bounds.right, bounds.top];
      }
      _this2.rasterSource = 'iserver';
      _this2.tiles = [_this2.mapUrl];
      _this2._addLayer(mapObj);
    });
  };
  _proto._addLayer = function _addLayer() {
    this.map.addLayer({
      id: this.layerId || "raster-layer-" + new Date().getTime(),
      type: 'raster',
      source: {
        bounds: this.bounds || [-180, -85.051129, 180, 85.051129],
        type: 'raster',
        tileSize: this.tileSize || 256,
        tiles: this.tiles,
        rasterSource: this.rasterSource,
        minzoom: this.minZoom,
        maxzoom: this.maxZoom,
        scheme: this.scheme
      }
    }, this.before);
  };
  _proto.removed = function removed() {
    var map = this.map,
      layerId = this.layerId;
    if (map && layerId && map.getLayer(layerId)) {
      map.removeLayer(layerId);
    }
    if (map && layerId && map.getSource(layerId)) {
      map.removeSource(layerId);
    }
  };
  return RasterTileLayerViewModel;
}(_mapboxGlEnhance.default.Evented);

/***/ })

/******/ });