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

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


/***/ }),

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

/***/ 330:
/***/ (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_FlyTo_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(331);
/* 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_FlyTo_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_FlyTo_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_FlyTo_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_FlyTo_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_FlyTo_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 331:
/***/ (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 _vuePropertyDecorator = __webpack_require__(9);
var _mapGetter = _interopRequireDefault(__webpack_require__(7));
var _control = _interopRequireDefault(__webpack_require__(17));
var _VmUpdater = _interopRequireDefault(__webpack_require__(30));
var _Card = _interopRequireDefault(__webpack_require__(22));
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _CollapseCard = _interopRequireDefault(__webpack_require__(407));
var _FlyToViewModel = _interopRequireDefault(__webpack_require__(780));
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 FlyTo = /*#__PURE__*/function (_Mixins) {
  (0, _inheritsLoose2.default)(FlyTo, _Mixins);
  function FlyTo() {
    var _this;
    _this = _Mixins.apply(this, arguments) || this;
    _this.playStatus = false;
    _this.currentIndex = null;
    return _this;
  }
  var _proto = FlyTo.prototype;
  _proto.handleDataChanged = function handleDataChanged() {
    this.viewModel.setData(this.handleDataFormatted());
  };
  _proto.handleActiveIndexChanged = function handleActiveIndexChanged() {
    if (this.currentIndex === this.data.length - 1 && !this.loop && this.playStatus) {
      this.playStatus = false;
    }
  };
  _proto.handlePlayStatusChanged = function handlePlayStatusChanged() {
    this.viewModel.setAutoplay(this.playStatus);
  };
  _proto.change = function change(data) {
    return data;
  };
  _proto.created = function created() {
    var options = {
      data: this.handleDataFormatted(),
      autoplay: this.autoplay,
      interval: this.interval,
      immediate: this.immediate,
      loop: this.loop,
      defaultActiveIndex: this.defaultActiveIndex,
      activeIndex: this.activeIndex
    };
    this.viewModel = new _FlyToViewModel.default(options);
    this.playStatus = this.autoplay;
    this.viewModel.on('flychange', this.handleFlyChange);
  };
  _proto.handleDataFormatted = function handleDataFormatted() {
    var _this2 = this;
    if (!this.data) {
      return null;
    }
    var data = this.data;
    var nextData = data.map(function (item) {
      if (item instanceof Array) {
        return Object.assign(Object.assign({}, _this2.flyOptions), {
          center: item
        });
      } else if (typeof item === 'object' && item.location instanceof Array) {
        var flyOptions = item.flyOptions || _this2.flyOptions;
        return Object.assign({
          center: item.location
        }, flyOptions);
      }
      return null;
    });
    return nextData;
  };
  _proto.handleFlyChange = function handleFlyChange(_ref) {
    var activeIndex = _ref.activeIndex;
    this.currentIndex = activeIndex;
    this.change({
      activeIndex: activeIndex
    });
  };
  _proto.togglePlayStatus = function togglePlayStatus() {
    this.playStatus = !this.playStatus;
  };
  _proto.prev = function prev() {
    this.viewModel.prev();
  };
  _proto.next = function next() {
    this.viewModel.next();
  };
  _proto.goto = function goto(index) {
    this.viewModel.goto(index);
  };
  _proto.render = function render(h) {
    if (!this.showController) {
      return null;
    }
    return h(_CollapseCard.default, {
      props: {
        iconClass: this.iconClass,
        iconPosition: this.position,
        autoRotate: this.autoRotate,
        collapsed: this.collapsed,
        headerName: this.headerName,
        background: this.background,
        textColor: this.textColor
      },
      class: {
        'sm-component-fly-to': true
      },
      directives: [{
        name: 'show',
        value: this.isShow
      }]
    }, [h('div', {
      class: {
        'sm-component-fly-to__content': true
      }
    }, [h('i', {
      class: {
        'sm-components-icon-solid-triangle-left': true,
        'icon-disabled': !this.data || !this.loop && this.currentIndex === 0
      },
      style: this.subComponentSpanBgStyle,
      on: {
        click: this.prev
      }
    }), h('i', {
      class: {
        'sm-components-icon-bofang3': !this.playStatus,
        'sm-components-icon-zanting': this.playStatus,
        'icon-disabled': !this.data
      },
      style: this.subComponentSpanBgStyle,
      on: {
        click: this.togglePlayStatus
      }
    }), h('i', {
      class: {
        'sm-components-icon-solid-triangle-right': true,
        'icon-disabled': !this.data || !this.loop && this.currentIndex === this.data.length - 1
      },
      style: this.subComponentSpanBgStyle,
      on: {
        click: this.next
      }
    })])]);
  };
  return FlyTo;
}((0, _vuePropertyDecorator.Mixins)(_mapGetter.default, _control.default, _VmUpdater.default, _Card.default, _Theme.default));
__decorate([(0, _vuePropertyDecorator.Prop)()], FlyTo.prototype, "flyOptions", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)()], FlyTo.prototype, "data", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: true
})], FlyTo.prototype, "autoplay", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 3000
})], FlyTo.prototype, "interval", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: false
})], FlyTo.prototype, "immediate", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: true
})], FlyTo.prototype, "loop", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 0
})], FlyTo.prototype, "defaultActiveIndex", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)()], FlyTo.prototype, "activeIndex", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: true
})], FlyTo.prototype, "showController", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 'sm-components-icon-flyto'
})], FlyTo.prototype, "iconClass", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: function _default() {
    return this.$t('flyTo.title');
  }
})], FlyTo.prototype, "headerName", void 0);
__decorate([(0, _vuePropertyDecorator.Watch)('data', {
  deep: true
})], FlyTo.prototype, "handleDataChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('currentIndex')], FlyTo.prototype, "handleActiveIndexChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('playStatus')], FlyTo.prototype, "handlePlayStatusChanged", null);
__decorate([(0, _vuePropertyDecorator.Emit)()], FlyTo.prototype, "change", null);
FlyTo = __decorate([(0, _vuePropertyDecorator.Component)({
  name: 'SmFlyTo',
  viewModelProps: ['autoplay', 'interval', 'immediate', 'loop', 'defaultActiveIndex', 'activeIndex']
})], FlyTo);
var _default2 = exports.default = FlyTo;

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

/***/ }),

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

"use strict";


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

/***/ }),

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

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

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

/***/ }),

/***/ 780:
/***/ (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 FlyToViewModel = exports.default = /*#__PURE__*/function (_mapboxgl$Evented) {
  (0, _inheritsLoose2.default)(FlyToViewModel, _mapboxgl$Evented);
  function FlyToViewModel(options) {
    var _this;
    _this = _mapboxgl$Evented.call(this) || this;
    _this.options = options;
    _this._playSlidesFn = _this._playSlides.bind((0, _assertThisInitialized2.default)(_this));
    return _this;
  }
  var _proto = FlyToViewModel.prototype;
  _proto.setMap = function setMap(mapInfo) {
    this.map = mapInfo.map;
    this.startTimer();
  };
  _proto.setData = function setData(data) {
    this.options.data = data;
    if (this.clearTimer) {
      this.pauseTimer();
    }
    this.startTimer();
  };
  _proto.setAutoplay = function setAutoplay(autoplay) {
    this.options.autoplay = autoplay;
    if (autoplay) {
      var _this$options = this.options,
        data = _this$options.data,
        loop = _this$options.loop;
      if (data && this.activeIndex === data.length - 1 && !loop) {
        this.activeIndex = null;
      }
      this.startTimer();
    } else {
      this.pauseTimer();
    }
  };
  _proto.setInterval = function setInterval(interval) {
    this.options.interval = interval;
    if (this.clearTimer) {
      this.pauseTimer();
    }
    this.startTimer();
  };
  _proto.setImmediate = function setImmediate(immediate) {
    this.options.immediate = immediate;
  };
  _proto.setLoop = function setLoop(loop) {
    this.options.loop = loop;
  };
  _proto.setDefaultActiveIndex = function setDefaultActiveIndex(defaultActiveIndex) {
    this.options.defaultActiveIndex = defaultActiveIndex;
  };
  _proto.setActiveIndex = function setActiveIndex(activeIndex) {
    this.options.activeIndex = activeIndex;
    this._setActiveItem(activeIndex);
  };
  _proto.startTimer = function startTimer() {
    var _this$options2 = this.options,
      data = _this$options2.data,
      autoplay = _this$options2.autoplay,
      interval = _this$options2.interval,
      immediate = _this$options2.immediate;
    if (!this.map || !data || !autoplay || !interval || this.clearTimer) {
      return;
    }
    if (immediate) {
      this._setActiveItem(this._getActiveIndex());
    }
    this.clearTimer = window.setInterval(this._playSlidesFn, interval);
  };
  _proto.pauseTimer = function pauseTimer() {
    if (this.clearTimer) {
      window.clearInterval(this.clearTimer);
      this.clearTimer = null;
    }
  };
  _proto.prev = function prev() {
    var activeIndex = this._getActiveIndex();
    this._setActiveItem(activeIndex - 1);
  };
  _proto.next = function next() {
    var activeIndex = this._getActiveIndex();
    this._setActiveItem(activeIndex + 1);
  };
  _proto.goto = function goto(index) {
    this._setActiveItem(index);
  };
  _proto._getActiveIndex = function _getActiveIndex() {
    var activeIndex = this.activeIndex;
    if (typeof activeIndex !== 'number') {
      activeIndex = typeof this.options.activeIndex === 'number' ? this.options.activeIndex : this.options.defaultActiveIndex;
    }
    return activeIndex;
  };
  _proto._playSlides = function _playSlides() {
    var activeIndexChanged = this._changeActiveIndex();
    if (this.activeIndex === void 0) {
      this._setActiveItem(this._getActiveIndex());
      return;
    }
    if (activeIndexChanged) {
      this._flyTo();
    }
  };
  _proto._changeActiveIndex = function _changeActiveIndex() {
    var _this$options3 = this.options,
      data = _this$options3.data,
      loop = _this$options3.loop;
    var changed = false;
    if (this.activeIndex < data.length - 1) {
      this.activeIndex++;
      changed = true;
    } else if (loop) {
      this.activeIndex = 0;
      changed = true;
    }
    return changed;
  };
  _proto._setActiveItem = function _setActiveItem(index) {
    if (typeof index !== 'number') {
      return;
    }
    var _this$options4 = this.options,
      data = _this$options4.data,
      loop = _this$options4.loop;
    var length = data.length;
    var prevActiveIndex = this.activeIndex;
    if (index < 0) {
      this.activeIndex = loop ? length - 1 : 0;
    } else if (index >= length) {
      this.activeIndex = loop ? 0 : length - 1;
    } else {
      this.activeIndex = index;
    }
    if (prevActiveIndex !== this.activeIndex) {
      this._flyTo();
    }
  };
  _proto._flyTo = function _flyTo() {
    if (!this.map || !this.options.data) {
      return;
    }
    var nextOptions = this.options.data[this.activeIndex];
    if (nextOptions) {
      this.map.flyTo(nextOptions);
      this.fire('flychange', {
        activeIndex: this.activeIndex
      });
    } else {
      throw Error('flyOptions is invalid.');
    }
  };
  _proto.removed = function removed() {
    this.activeIndex = null;
    this.options = null;
    this.clearTimer && window.clearInterval(this.clearTimer);
  };
  return FlyToViewModel;
}(_mapboxGlEnhance.default.Evented);

/***/ }),

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

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

/***/ })

/******/ });