404
Looks like we've got some broken links.Take me home.
diff --git a/dist/vue-mapbox.common.js b/dist/vue-mapbox.common.js index e91d9b1f..0853e168 100644 --- a/dist/vue-mapbox.common.js +++ b/dist/vue-mapbox.common.js @@ -1,7 +1,62 @@ module.exports = /******/ (function(modules) { // webpackBootstrap - /******/ // The module cache - /******/ var installedModules = {}; // The require function + /******/ // install a JSONP callback for chunk loading + /******/ function webpackJsonpCallback(data) { + /******/ var chunkIds = data[0]; + /******/ var moreModules = data[1]; // add "moreModules" to the modules object, // then flag all "chunkIds" as loaded and fire callback + /******/ + /******/ + /******/ /******/ /******/ var moduleId, + chunkId, + i = 0, + resolves = []; + /******/ for (; i < chunkIds.length; i++) { + /******/ chunkId = chunkIds[i]; + /******/ if (installedChunks[chunkId]) { + /******/ resolves.push(installedChunks[chunkId][0]); + /******/ + } + /******/ installedChunks[chunkId] = 0; + /******/ + } + /******/ for (moduleId in moreModules) { + /******/ if ( + Object.prototype.hasOwnProperty.call(moreModules, moduleId) + ) { + /******/ modules[moduleId] = moreModules[moduleId]; + /******/ + } + /******/ + } + /******/ if (parentJsonpFunction) parentJsonpFunction(data); + /******/ + /******/ while (resolves.length) { + /******/ resolves.shift()(); + /******/ + } + /******/ + /******/ + } // The module cache + /******/ + /******/ + /******/ /******/ var installedModules = {}; // object to store loaded and loading chunks // undefined = chunk not loaded, null = chunk preloaded/prefetched // Promise = chunk loading, 0 = chunk loaded + /******/ + /******/ /******/ /******/ /******/ var installedChunks = { + /******/ 0: 0 + /******/ + }; // script path function + /******/ + /******/ + /******/ + /******/ /******/ function jsonpScriptSrc(chunkId) { + /******/ return ( + __webpack_require__.p + + "vue-mapbox.common." + + ({}[chunkId] || chunkId) + + ".js" + ); + /******/ + } // The require function /******/ /******/ /******/ function __webpack_require__(moduleId) { /******/ @@ -107,7 +162,24 @@ module.exports = /******/ (function(modules) { return Object.prototype.hasOwnProperty.call(object, property); }; // __webpack_public_path__ /******/ - /******/ /******/ __webpack_require__.p = ""; // Load entry module and return exports + /******/ /******/ __webpack_require__.p = ""; // on error function for async loading + /******/ + /******/ /******/ __webpack_require__.oe = function(err) { + console.error(err); + throw err; + }; + /******/ + /******/ var jsonpArray = ((typeof self !== "undefined" ? self : this)[ + "webpackJsonpvue_mapbox" + ] = + (typeof self !== "undefined" ? self : this)["webpackJsonpvue_mapbox"] || + []); + /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); + /******/ jsonpArray.push = webpackJsonpCallback; + /******/ jsonpArray = jsonpArray.slice(); + /******/ for (var i = 0; i < jsonpArray.length; i++) + webpackJsonpCallback(jsonpArray[i]); + /******/ var parentJsonpFunction = oldJsonpFunction; // Load entry module and return exports /******/ /******/ /******/ /******/ return __webpack_require__( @@ -1772,6 +1844,20 @@ module.exports = /******/ (function(modules) { /***/ }, + /***/ "8615": /***/ function(module, exports, __webpack_require__) { + // https://github.com/tc39/proposal-object-values-entries + var $export = __webpack_require__("5ca1"); + var $values = __webpack_require__("504c")(false); + + $export($export.S, "Object", { + values: function values(it) { + return $values(it); + } + }); + + /***/ + }, + /***/ "86cc": /***/ function(module, exports, __webpack_require__) { var anObject = __webpack_require__("cb7c"); var IE8_DOM_DEFINE = __webpack_require__("c69a"); @@ -2530,7 +2616,7 @@ module.exports = /******/ (function(modules) { // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = null; - // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/map/GlMap.vue?vue&type=template&id=a6b1c212& + // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/map/GlMap.vue?vue&type=template&id=b8a4f864& var render = function() { var _vm = this; var _h = _vm.$createElement; @@ -2551,7 +2637,7 @@ module.exports = /******/ (function(modules) { } ]; - // CONCATENATED MODULE: ./src/components/map/GlMap.vue?vue&type=template&id=a6b1c212& + // CONCATENATED MODULE: ./src/components/map/GlMap.vue?vue&type=template&id=b8a4f864& // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js var web_dom_iterable = __webpack_require__("ac6a"); @@ -2562,13 +2648,8 @@ module.exports = /******/ (function(modules) { // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js var es6_object_keys = __webpack_require__("456d"); - // EXTERNAL MODULE: external {"commonjs":"mapbox-gl","commonjs2":"mapbox-gl","amd":"mapbox-gl","root":"mapbox-gl"} - var external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_ = __webpack_require__( - "2ff6" - ); - var external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_default = /*#__PURE__*/ __webpack_require__.n( - external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_ - ); + // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js + var es6_promise = __webpack_require__("551c"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js function _defineProperty(obj, key, value) { @@ -3070,9 +3151,6 @@ module.exports = /******/ (function(modules) { /* harmony default export */ var withWatchers = { watch: makeWatchers() }; - // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js - var es6_promise = __webpack_require__("551c"); - // CONCATENATED MODULE: ./src/components/map/mixins/withPrivateMethods.js /* harmony default export */ var withPrivateMethods = { @@ -3132,17 +3210,20 @@ module.exports = /******/ (function(modules) { $_loadMap: function $_loadMap() { var _this3 = this; - return new Promise(function(resolve) { - if (_this3.accessToken) - _this3.mapbox.accessToken = _this3.accessToken; - var map = new _this3.mapbox.Map( - _objectSpread({}, _this3._props, { - container: _this3.$refs.container, - style: _this3.mapStyle - }) - ); - map.on("load", function() { - return resolve(map); + return this.mapboxPromise.then(function(mapbox) { + _this3.mapbox = mapbox.default ? mapbox.default : mapbox; + return new Promise(function(resolve) { + if (_this3.accessToken) + _this3.mapbox.accessToken = _this3.accessToken; + var map = new _this3.mapbox.Map( + _objectSpread({}, _this3._props, { + container: _this3.$refs.container, + style: _this3.mapStyle + }) + ); + map.on("load", function() { + return resolve(map); + }); }); }); }, @@ -3230,7 +3311,15 @@ module.exports = /******/ (function(modules) { withPrivateMethods, withEvents ], - props: options, + props: _objectSpread( + { + mapboxGl: { + type: Object, + default: null + } + }, + options + ), provide: function provide() { var self = this; return { @@ -3286,8 +3375,11 @@ module.exports = /******/ (function(modules) { created: function created() { this.map = null; this.propsIsUpdating = {}; - this.mapbox = - external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_default.a; + this.mapboxPromise = this.mapboxGl + ? Promise.resolve(this.mapboxGl) + : Promise.resolve(/* import() */).then( + __webpack_require__.t.bind(null, "2ff6", 7) + ); }, mounted: function mounted() { var _this = this; @@ -3666,8 +3758,8 @@ module.exports = /******/ (function(modules) { this.$_addControl(); } }; - // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=template&id=5c629593& - var Markervue_type_template_id_5c629593_render = function() { + // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=template&id=63af2177& + var Markervue_type_template_id_63af2177_render = function() { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; @@ -3678,9 +3770,12 @@ module.exports = /******/ (function(modules) { 2 ); }; - var Markervue_type_template_id_5c629593_staticRenderFns = []; + var Markervue_type_template_id_63af2177_staticRenderFns = []; + + // CONCATENATED MODULE: ./src/components/UI/Marker.vue?vue&type=template&id=63af2177& - // CONCATENATED MODULE: ./src/components/UI/Marker.vue?vue&type=template&id=5c629593& + // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.values.js + var es7_object_values = __webpack_require__("8615"); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=script&lang=js& @@ -3699,6 +3794,11 @@ module.exports = /******/ (function(modules) { dragstart: "dragstart", dragend: "dragend" }; + var markerDOMEvents = { + click: "click", + mouseenter: "mouseenter", + mouseleave: "mouseleave" + }; /* harmony default export */ var Markervue_type_script_lang_js_ = { name: "MapMarker", mixins: [withEvents, withSelfEvents], @@ -3792,6 +3892,7 @@ module.exports = /******/ (function(modules) { methods: { $_addMarker: function $_addMarker() { this.marker.setLngLat(this.coordinates).addTo(this.map); + this.$_bindMarkerDOMEvents(); this.$_emitEvent("added", { marker: this.marker }); @@ -3801,6 +3902,17 @@ module.exports = /******/ (function(modules) { marker: this.marker }); }, + $_bindMarkerDOMEvents: function $_bindMarkerDOMEvents() { + var _this2 = this; + + Object.keys(this.$listeners).forEach(function(key) { + if (Object.values(markerDOMEvents).includes(key)) { + _this2.marker._element.addEventListener(key, function(event) { + _this2.$_emitSelfEvent(event); + }); + } + }); + }, remove: function remove() { this.marker.remove(); this.$_emitEvent("removed"); @@ -3818,8 +3930,8 @@ module.exports = /******/ (function(modules) { var Marker_component = normalizeComponent( UI_Markervue_type_script_lang_js_, - Markervue_type_template_id_5c629593_render, - Markervue_type_template_id_5c629593_staticRenderFns, + Markervue_type_template_id_63af2177_render, + Markervue_type_template_id_63af2177_staticRenderFns, false, null, null, diff --git a/dist/vue-mapbox.umd.js b/dist/vue-mapbox.umd.js index af820864..85a84bd6 100644 --- a/dist/vue-mapbox.umd.js +++ b/dist/vue-mapbox.umd.js @@ -15,8 +15,63 @@ ) { return /******/ (function(modules) { // webpackBootstrap - /******/ // The module cache - /******/ var installedModules = {}; // The require function + /******/ // install a JSONP callback for chunk loading + /******/ function webpackJsonpCallback(data) { + /******/ var chunkIds = data[0]; + /******/ var moreModules = data[1]; // add "moreModules" to the modules object, // then flag all "chunkIds" as loaded and fire callback + /******/ + /******/ + /******/ /******/ /******/ var moduleId, + chunkId, + i = 0, + resolves = []; + /******/ for (; i < chunkIds.length; i++) { + /******/ chunkId = chunkIds[i]; + /******/ if (installedChunks[chunkId]) { + /******/ resolves.push(installedChunks[chunkId][0]); + /******/ + } + /******/ installedChunks[chunkId] = 0; + /******/ + } + /******/ for (moduleId in moreModules) { + /******/ if ( + Object.prototype.hasOwnProperty.call(moreModules, moduleId) + ) { + /******/ modules[moduleId] = moreModules[moduleId]; + /******/ + } + /******/ + } + /******/ if (parentJsonpFunction) parentJsonpFunction(data); + /******/ + /******/ while (resolves.length) { + /******/ resolves.shift()(); + /******/ + } + /******/ + /******/ + } // The module cache + /******/ + /******/ + /******/ /******/ var installedModules = {}; // object to store loaded and loading chunks // undefined = chunk not loaded, null = chunk preloaded/prefetched // Promise = chunk loading, 0 = chunk loaded + /******/ + /******/ /******/ /******/ /******/ var installedChunks = { + /******/ 0: 0 + /******/ + }; // script path function + /******/ + /******/ + /******/ + /******/ /******/ function jsonpScriptSrc(chunkId) { + /******/ return ( + __webpack_require__.p + + "vue-mapbox.umd." + + ({}[chunkId] || chunkId) + + ".js" + ); + /******/ + } // The require function /******/ /******/ /******/ function __webpack_require__(moduleId) { /******/ @@ -122,7 +177,24 @@ return Object.prototype.hasOwnProperty.call(object, property); }; // __webpack_public_path__ /******/ - /******/ /******/ __webpack_require__.p = ""; // Load entry module and return exports + /******/ /******/ __webpack_require__.p = ""; // on error function for async loading + /******/ + /******/ /******/ __webpack_require__.oe = function(err) { + console.error(err); + throw err; + }; + /******/ + /******/ var jsonpArray = ((typeof self !== "undefined" ? self : this)[ + "webpackJsonpvue_mapbox" + ] = + (typeof self !== "undefined" ? self : this)["webpackJsonpvue_mapbox"] || + []); + /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); + /******/ jsonpArray.push = webpackJsonpCallback; + /******/ jsonpArray = jsonpArray.slice(); + /******/ for (var i = 0; i < jsonpArray.length; i++) + webpackJsonpCallback(jsonpArray[i]); + /******/ var parentJsonpFunction = oldJsonpFunction; // Load entry module and return exports /******/ /******/ /******/ /******/ return __webpack_require__( @@ -1804,6 +1876,20 @@ /***/ }, + /***/ "8615": /***/ function(module, exports, __webpack_require__) { + // https://github.com/tc39/proposal-object-values-entries + var $export = __webpack_require__("5ca1"); + var $values = __webpack_require__("504c")(false); + + $export($export.S, "Object", { + values: function values(it) { + return $values(it); + } + }); + + /***/ + }, + /***/ "86cc": /***/ function(module, exports, __webpack_require__) { var anObject = __webpack_require__("cb7c"); var IE8_DOM_DEFINE = __webpack_require__("c69a"); @@ -2566,7 +2652,7 @@ // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = null; - // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/map/GlMap.vue?vue&type=template&id=a6b1c212& + // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/map/GlMap.vue?vue&type=template&id=b8a4f864& var render = function() { var _vm = this; var _h = _vm.$createElement; @@ -2590,7 +2676,7 @@ } ]; - // CONCATENATED MODULE: ./src/components/map/GlMap.vue?vue&type=template&id=a6b1c212& + // CONCATENATED MODULE: ./src/components/map/GlMap.vue?vue&type=template&id=b8a4f864& // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js var web_dom_iterable = __webpack_require__("ac6a"); @@ -2601,13 +2687,8 @@ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js var es6_object_keys = __webpack_require__("456d"); - // EXTERNAL MODULE: external {"commonjs":"mapbox-gl","commonjs2":"mapbox-gl","amd":"mapbox-gl","root":"mapbox-gl"} - var external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_ = __webpack_require__( - "2ff6" - ); - var external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_default = /*#__PURE__*/ __webpack_require__.n( - external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_ - ); + // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js + var es6_promise = __webpack_require__("551c"); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js function _defineProperty(obj, key, value) { @@ -3118,9 +3199,6 @@ /* harmony default export */ var withWatchers = { watch: makeWatchers() }; - // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js - var es6_promise = __webpack_require__("551c"); - // CONCATENATED MODULE: ./src/components/map/mixins/withPrivateMethods.js /* harmony default export */ var withPrivateMethods = { @@ -3180,17 +3258,20 @@ $_loadMap: function $_loadMap() { var _this3 = this; - return new Promise(function(resolve) { - if (_this3.accessToken) - _this3.mapbox.accessToken = _this3.accessToken; - var map = new _this3.mapbox.Map( - _objectSpread({}, _this3._props, { - container: _this3.$refs.container, - style: _this3.mapStyle - }) - ); - map.on("load", function() { - return resolve(map); + return this.mapboxPromise.then(function(mapbox) { + _this3.mapbox = mapbox.default ? mapbox.default : mapbox; + return new Promise(function(resolve) { + if (_this3.accessToken) + _this3.mapbox.accessToken = _this3.accessToken; + var map = new _this3.mapbox.Map( + _objectSpread({}, _this3._props, { + container: _this3.$refs.container, + style: _this3.mapStyle + }) + ); + map.on("load", function() { + return resolve(map); + }); }); }); }, @@ -3278,7 +3359,15 @@ withPrivateMethods, withEvents ], - props: options, + props: _objectSpread( + { + mapboxGl: { + type: Object, + default: null + } + }, + options + ), provide: function provide() { var self = this; return { @@ -3334,8 +3423,11 @@ created: function created() { this.map = null; this.propsIsUpdating = {}; - this.mapbox = - external_commonjs_mapbox_gl_commonjs2_mapbox_gl_amd_mapbox_gl_root_mapbox_gl_default.a; + this.mapboxPromise = this.mapboxGl + ? Promise.resolve(this.mapboxGl) + : Promise.resolve(/* import() */).then( + __webpack_require__.t.bind(null, "2ff6", 7) + ); }, mounted: function mounted() { var _this = this; @@ -3714,8 +3806,8 @@ this.$_addControl(); } }; - // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=template&id=5c629593& - var Markervue_type_template_id_5c629593_render = function() { + // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"47f5d000-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=template&id=63af2177& + var Markervue_type_template_id_63af2177_render = function() { var _vm = this; var _h = _vm.$createElement; var _c = _vm._self._c || _h; @@ -3726,9 +3818,12 @@ 2 ); }; - var Markervue_type_template_id_5c629593_staticRenderFns = []; + var Markervue_type_template_id_63af2177_staticRenderFns = []; + + // CONCATENATED MODULE: ./src/components/UI/Marker.vue?vue&type=template&id=63af2177& - // CONCATENATED MODULE: ./src/components/UI/Marker.vue?vue&type=template&id=5c629593& + // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.values.js + var es7_object_values = __webpack_require__("8615"); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UI/Marker.vue?vue&type=script&lang=js& @@ -3747,6 +3842,11 @@ dragstart: "dragstart", dragend: "dragend" }; + var markerDOMEvents = { + click: "click", + mouseenter: "mouseenter", + mouseleave: "mouseleave" + }; /* harmony default export */ var Markervue_type_script_lang_js_ = { name: "MapMarker", mixins: [withEvents, withSelfEvents], @@ -3840,6 +3940,7 @@ methods: { $_addMarker: function $_addMarker() { this.marker.setLngLat(this.coordinates).addTo(this.map); + this.$_bindMarkerDOMEvents(); this.$_emitEvent("added", { marker: this.marker }); @@ -3849,6 +3950,17 @@ marker: this.marker }); }, + $_bindMarkerDOMEvents: function $_bindMarkerDOMEvents() { + var _this2 = this; + + Object.keys(this.$listeners).forEach(function(key) { + if (Object.values(markerDOMEvents).includes(key)) { + _this2.marker._element.addEventListener(key, function(event) { + _this2.$_emitSelfEvent(event); + }); + } + }); + }, remove: function remove() { this.marker.remove(); this.$_emitEvent("removed"); @@ -3866,8 +3978,8 @@ var Marker_component = normalizeComponent( UI_Markervue_type_script_lang_js_, - Markervue_type_template_id_5c629593_render, - Markervue_type_template_id_5c629593_staticRenderFns, + Markervue_type_template_id_63af2177_render, + Markervue_type_template_id_63af2177_staticRenderFns, false, null, null, diff --git a/dist/vue-mapbox.umd.min.js b/dist/vue-mapbox.umd.min.js index 288ccfaf..66ffb6fd 100644 --- a/dist/vue-mapbox.umd.min.js +++ b/dist/vue-mapbox.umd.min.js @@ -11,44 +11,51 @@ : (t["vue-mapbox"] = e(t["map-promisified"], t["mapbox-gl"])); })("undefined" !== typeof self ? self : this, function(t, e) { return (function(t) { - var e = {}; - function n(r) { - if (e[r]) return e[r].exports; - var o = (e[r] = { i: r, l: !1, exports: {} }); - return t[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports; + function e(e) { + for (var n, o, i = e[0], a = e[1], s = 0, u = []; s < i.length; s++) + (o = i[s]), r[o] && u.push(r[o][0]), (r[o] = 0); + for (n in a) Object.prototype.hasOwnProperty.call(a, n) && (t[n] = a[n]); + c && c(e); + while (u.length) u.shift()(); } - return ( - (n.m = t), - (n.c = e), - (n.d = function(t, e, r) { - n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }); + var n = {}, + r = { 0: 0 }; + function o(e) { + if (n[e]) return n[e].exports; + var r = (n[e] = { i: e, l: !1, exports: {} }); + return t[e].call(r.exports, r, r.exports, o), (r.l = !0), r.exports; + } + (o.m = t), + (o.c = n), + (o.d = function(t, e, n) { + o.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }); }), - (n.r = function(t) { + (o.r = function(t) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }), - (n.t = function(t, e) { - if ((1 & e && (t = n(t)), 8 & e)) return t; + (o.t = function(t, e) { + if ((1 & e && (t = o(t)), 8 & e)) return t; if (4 & e && "object" === typeof t && t && t.__esModule) return t; - var r = Object.create(null); + var n = Object.create(null); if ( - (n.r(r), - Object.defineProperty(r, "default", { enumerable: !0, value: t }), + (o.r(n), + Object.defineProperty(n, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) ) - for (var o in t) - n.d( + for (var r in t) + o.d( + n, r, - o, function(e) { return t[e]; - }.bind(null, o) + }.bind(null, r) ); - return r; + return n; }), - (n.n = function(t) { + (o.n = function(t) { var e = t && t.__esModule ? function() { @@ -57,14 +64,25 @@ : function() { return t; }; - return n.d(e, "a", e), e; + return o.d(e, "a", e), e; }), - (n.o = function(t, e) { + (o.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e); }), - (n.p = ""), - n((n.s = "fb15")) - ); + (o.p = ""), + (o.oe = function(t) { + throw (console.error(t), t); + }); + var i = (("undefined" !== typeof self ? self : this)[ + "webpackJsonpvue_mapbox" + ] = + ("undefined" !== typeof self ? self : this)["webpackJsonpvue_mapbox"] || + []), + a = i.push.bind(i); + (i.push = e), (i = i.slice()); + for (var s = 0; s < i.length; s++) e(i[s]); + var c = a; + return o((o.s = "fb15")); })({ "01f9": function(t, e, n) { "use strict"; @@ -112,10 +130,10 @@ M = O[l] || O[p] || (g && O[g]), j = M || I(g), k = g ? (E ? I("entries") : j) : void 0, - C = ("Array" == e && O.entries) || M; + P = ("Array" == e && O.entries) || M; if ( - (C && - (($ = f(C.call(new t()))), + (P && + (($ = f(P.call(new t()))), $ !== Object.prototype && $.next && (u($, w, !0), r || "function" == typeof $[l] || a($, l, v))), @@ -733,7 +751,7 @@ M = "process" == f(w), j = function() {}, k = (o = b.f), - C = !!(function() { + P = !!(function() { try { var t = O.resolve(1), e = ((t.constructor = {})[n("2b4c")("species")] = function(t) { @@ -747,7 +765,7 @@ ); } catch (r) {} })(), - P = function(t) { + C = function(t) { var e; return !(!d(t) || "function" != typeof (e = t.then)) && e; }, @@ -777,7 +795,7 @@ f && (f.exit(), (a = !0))), n === e.promise ? u(I("Promise-chain cycle")) - : (i = P(n)) + : (i = C(n)) ? i.call(n, c, u) : c(n)) : u(r); @@ -843,7 +861,7 @@ (n._d = !0), (n = n._w || n); try { if (n === t) throw I("Promise can't be resolved itself"); - (e = P(t)) + (e = C(t)) ? g(function() { var r = { _w: n, _d: !1 }; try { @@ -858,7 +876,7 @@ } } }; - C || + P || ((O = function(t) { h(this, O, $, "_h"), p(t), r.call(this); try { @@ -902,18 +920,18 @@ (b.f = k = function(t) { return t === O || t === a ? new i(t) : o(t); })), - l(l.G + l.W + l.F * !C, { Promise: O }), + l(l.G + l.W + l.F * !P, { Promise: O }), n("7f20")(O, $), n("7a56")($), (a = n("8378")[$]), - l(l.S + l.F * !C, $, { + l(l.S + l.F * !P, $, { reject: function(t) { var e = k(this), n = e.reject; return n(t), e.promise; } }), - l(l.S + l.F * (s || !C), $, { + l(l.S + l.F * (s || !P), $, { resolve: function(t) { return S(s && this === a ? O : this, t); } @@ -922,7 +940,7 @@ l.S + l.F * !( - C && + P && n("5cc5")(function(t) { O.all(t)["catch"](j); }) @@ -1255,6 +1273,15 @@ "84f2": function(t, e) { t.exports = {}; }, + 8615: function(t, e, n) { + var r = n("5ca1"), + o = n("504c")(!1); + r(r.S, "Object", { + values: function(t) { + return o(t); + } + }); + }, "86cc": function(t, e, n) { var r = n("cb7c"), o = n("c69a"), @@ -1775,10 +1802,9 @@ n = t._self._c || e; return n("div", { ref: "container", attrs: { id: t.container } }); } - ], - a = (n("ac6a"), n("cadf"), n("456d"), n("2ff6")), - s = n.n(a); - function c(t, e, n) { + ]; + n("ac6a"), n("cadf"), n("456d"), n("551c"); + function a(t, e, n) { return ( e in t ? Object.defineProperty(t, e, { @@ -1791,7 +1817,7 @@ t ); } - function u(t) { + function s(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}, r = Object.keys(n); @@ -1802,30 +1828,30 @@ }) )), r.forEach(function(e) { - c(t, e, n[e]); + a(t, e, n[e]); }); } return t; } - var f = { + var c = { methods: { $_emitEvent: function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - this.$emit(t, u({ map: this.map, component: this }, e)); + this.$emit(t, s({ map: this.map, component: this }, e)); }, $_emitMapEvent: function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - this.$_emitEvent(t.type, u({ mapboxEvent: t }, e)); + this.$_emitEvent(t.type, s({ mapboxEvent: t }, e)); } } }, - l = { + u = { resize: { name: "resize" }, webglcontextlost: { name: "webglcontextlost" }, webglcontextrestored: { name: "webglcontextrestored" }, @@ -1868,7 +1894,7 @@ pitch: { name: "pitch" }, idle: { name: "idle" } }, - d = (n("6762"), + f = (n("6762"), n("2fdb"), n("c5f6"), n("28a5"), @@ -1942,7 +1968,7 @@ fadeDuration: { type: Number, default: 300 }, crossSourceCollisions: { type: Boolean, default: !0 } }), - p = (n("ffc1"), + l = (n("ffc1"), { maxBounds: function(t) { this.map.setMaxBounds(t); @@ -1981,7 +2007,7 @@ this.map.setLigh(t); } }); - function h(t, e, n, r) { + function d(t, e, n, r) { var o = this; this.initial || (this.$listeners["update:".concat(t)] @@ -1994,20 +2020,19 @@ (this.propsIsUpdating[t] = !1)) : e(n, r)); } - function m() { + function p() { var t = {}; return ( - Object.entries(p).forEach(function(e) { + Object.entries(l).forEach(function(e) { t[e[0]] = function(t, n) { - return h.call(this, e[0], e[1].bind(this), t, n); + return d.call(this, e[0], e[1].bind(this), t, n); }; }), t ); } - var v = { watch: m() }, - y = (n("551c"), - { + var h = { watch: p() }, + m = { methods: { $_updateSyncedPropsFabric: function(t, e) { var n = this; @@ -2053,17 +2078,22 @@ }, $_loadMap: function() { var t = this; - return new Promise(function(e) { - t.accessToken && (t.mapbox.accessToken = t.accessToken); - var n = new t.mapbox.Map( - u({}, t._props, { - container: t.$refs.container, - style: t.mapStyle + return this.mapboxPromise.then(function(e) { + return ( + (t.mapbox = e.default ? e.default : e), + new Promise(function(e) { + t.accessToken && (t.mapbox.accessToken = t.accessToken); + var n = new t.mapbox.Map( + s({}, t._props, { + container: t.$refs.container, + style: t.mapStyle + }) + ); + n.on("load", function() { + return e(n); + }); }) ); - n.on("load", function() { - return e(n); - }); }); }, $_RTLTextPluginError: function(t) { @@ -2082,16 +2112,16 @@ }); } } - }), - g = n("2191"), - b = n.n(g), - _ = { + }, + v = n("2191"), + y = n.n(v), + g = { created: function() { this.actions = {}; }, methods: { $_registerAsyncActions: function(t) { - this.actions = u({}, b()(t), { + this.actions = s({}, y()(t), { stop: function() { var t = this; this.map.stop(); @@ -2112,10 +2142,10 @@ } } }, - x = { + b = { name: "GlMap", - mixins: [v, _, y, f], - props: d, + mixins: [h, g, m, c], + props: s({ mapboxGl: { type: Object, default: null } }, f), provide: function() { var t = this; return { @@ -2163,7 +2193,11 @@ } }, created: function() { - (this.map = null), (this.propsIsUpdating = {}), (this.mapbox = s.a); + (this.map = null), + (this.propsIsUpdating = {}), + (this.mapboxPromise = this.mapboxGl + ? Promise.resolve(this.mapboxGl) + : Promise.resolve().then(n.t.bind(null, "2ff6", 7))); }, mounted: function() { var t = this; @@ -2174,7 +2208,7 @@ t.RTLTextPluginUrl, t.$_RTLTextPluginError ); - var n = Object.keys(l); + var n = Object.keys(u); t.$_bindMapEvents(n), t.$_registerAsyncActions(e), t.$_bindPropsUpdateEvents(), @@ -2190,9 +2224,9 @@ }); } }, - S = x; + _ = b; n("a23d"); - function $(t, e, n, r, o, i, a, s) { + function x(t, e, n, r, o, i, a, s) { var c, u = "function" === typeof t ? t.options : t; if ( @@ -2236,17 +2270,17 @@ } return { exports: t, options: u }; } - var I = $(S, o, i, !1, null, null, null); - I.options.__file = "GlMap.vue"; - var w = I.exports, - E = { + var S = x(_, o, i, !1, null, null, null); + S.options.__file = "GlMap.vue"; + var $ = S.exports, + I = { methods: { $_emitSelfEvent: function(t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - this.$_emitMapEvent(t, u({ control: this.control }, e)); + this.$_emitMapEvent(t, s({ control: this.control }, e)); }, $_bindSelfEvents: function(t, e) { var n = this; @@ -2264,8 +2298,8 @@ } } }, - L = { - mixins: [f, E], + w = { + mixins: [c, I], inject: ["mapbox", "map", "actions"], props: { position: { type: String, default: "top-right" } }, beforeDestroy: function() { @@ -2283,9 +2317,9 @@ }, render: function() {} }, - O = { + E = { name: "NavigationControl", - mixins: [L], + mixins: [w], props: { showCompass: { type: Boolean, default: !0 }, showZoom: { type: Boolean, default: !0 } @@ -2295,15 +2329,15 @@ this.$_addControl(); } }, - M = { + L = { trackuserlocationstart: "trackuserlocationstart", trackuserlocationend: "trackuserlocationend", geolocate: "geolocate", error: "error" }, - j = { + O = { name: "GeolocateControl", - mixins: [f, E, L], + mixins: [c, I, w], props: { positionOptions: { type: Object, @@ -2324,7 +2358,7 @@ var t = this.mapbox.GeolocateControl; (this.control = new t(this.$props)), this.$_addControl(), - this.$_bindSelfEvents(Object.keys(M), this.control); + this.$_bindSelfEvents(Object.keys(L), this.control); }, methods: { trigger: function() { @@ -2332,18 +2366,18 @@ } } }, - k = { + M = { name: "FullscreenControl", - mixins: [L], + mixins: [w], props: { container: { type: HTMLElement, default: void 0 } }, created: function() { (this.control = new this.mapbox.FullscreenControl(this.$props)), this.$_addControl(); } }, - C = { + j = { name: "AttributionControl", - mixins: [L], + mixins: [w], props: { compact: { type: Boolean, default: !0 }, customAttribution: { type: [String, Array], deafault: void 0 } @@ -2353,9 +2387,9 @@ this.$_addControl(); } }, - P = { + k = { name: "ScaleControl", - mixins: [L], + mixins: [w], props: { maxWidth: { type: Number, default: 150 }, unit: { @@ -2376,7 +2410,7 @@ this.$_addControl(); } }, - T = function() { + P = function() { var t = this, e = t.$createElement, n = t._self._c || e; @@ -2387,11 +2421,17 @@ 2 ); }, - B = [], - F = { drag: "drag", dragstart: "dragstart", dragend: "dragend" }, - A = { + C = [], + T = (n("8615"), + { drag: "drag", dragstart: "dragstart", dragend: "dragend" }), + B = { + click: "click", + mouseenter: "mouseenter", + mouseleave: "mouseleave" + }, + F = { name: "MapMarker", - mixins: [f, E], + mixins: [c, I], inject: ["mapbox", "map"], provide: function() { var t = this; @@ -2426,7 +2466,7 @@ }, mounted: function() { var t = this, - e = u({}, this.$props); + e = s({}, this.$props); this.$slots.marker && (e.element = this.$slots.marker[0].elm), (this.marker = new this.mapbox.Marker(e)), this.$listeners["update:coordinates"] && @@ -2438,7 +2478,7 @@ : e.target._lngLat), t.$emit("update:coordinates", n); }); - var n = Object.keys(F); + var n = Object.keys(T); this.$_bindSelfEvents(n, this.marker), (this.initial = !1), this.$_addMarker(); @@ -2451,11 +2491,21 @@ methods: { $_addMarker: function() { this.marker.setLngLat(this.coordinates).addTo(this.map), + this.$_bindMarkerDOMEvents(), this.$_emitEvent("added", { marker: this.marker }); }, $_emitSelfEvent: function(t) { this.$_emitMapEvent(t, { marker: this.marker }); }, + $_bindMarkerDOMEvents: function() { + var t = this; + Object.keys(this.$listeners).forEach(function(e) { + Object.values(B).includes(e) && + t.marker._element.addEventListener(e, function(e) { + t.$_emitSelfEvent(e); + }); + }); + }, remove: function() { this.marker.remove(), this.$_emitEvent("removed"); }, @@ -2464,11 +2514,11 @@ } } }, - R = A, - N = $(R, T, B, !1, null, null, null); - N.options.__file = "Marker.vue"; - var z = N.exports, - U = function() { + A = F, + R = x(A, P, C, !1, null, null, null); + R.options.__file = "Marker.vue"; + var N = R.exports, + z = function() { var t = this, e = t.$createElement, n = t._self._c || e; @@ -2481,9 +2531,9 @@ }, D = [], G = { open: "open", close: "close" }, - Z = { + U = { name: "Popup", - mixins: [f, E], + mixins: [c, I], inject: { mapbox: { default: null }, map: { default: null }, @@ -2582,11 +2632,11 @@ } } }, - V = Z, - q = $(V, U, D, !1, null, null, null); - q.options.__file = "Popup.vue"; - var H = q.exports, - W = (n("a481"), + Z = U, + V = x(Z, z, D, !1, null, null, null); + V.options.__file = "Popup.vue"; + var q = V.exports, + H = (n("a481"), [ "mousedown", "mouseup", @@ -2602,23 +2652,23 @@ "touchend", "touchcancel" ]), - X = { + W = { sourceId: { type: String, required: !0 }, source: { type: [Object, String], default: void 0 } }, - K = { + X = { layerId: { type: String, required: !0 }, layer: { type: Object, required: !0 }, before: { type: String, default: void 0 } }, - Y = { + J = { clearSource: { type: Boolean, default: !0 }, replaceSource: { type: Boolean, default: !1 }, replace: { type: Boolean, default: !1 } }, - J = { - mixins: [f], - props: u({}, X, K, Y), + K = { + mixins: [c], + props: s({}, W, X, J), inject: ["mapbox", "map"], data: function() { return { initial: !0 }; @@ -2748,9 +2798,9 @@ }, render: function() {} }, - Q = { + Y = { name: "GeojsonLayer", - mixins: [J], + mixins: [K], computed: { getSourceFeatures: function() { var t = this; @@ -2850,7 +2900,7 @@ (this.map.on("dataloading", this.$_watchSourceLoading), this.source) ) { - var t = u({ type: "geojson" }, this.source); + var t = s({ type: "geojson" }, this.source); try { this.map.addSource(this.sourceId, t); } catch (e) { @@ -2860,7 +2910,7 @@ } } this.$_addLayer(), - this.$_bindLayerEvents(W), + this.$_bindLayerEvents(H), this.map.off("dataloading", this.$_watchSourceLoading), (this.initial = !1); }, @@ -2874,7 +2924,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, source: this.sourceId }, this.layer ); @@ -2901,9 +2951,9 @@ } } }, - tt = { + Q = { name: "ImageLayer", - mixins: [J], + mixins: [K], created: function() { this.source && (this.source.coordinates && @@ -2931,7 +2981,7 @@ }, methods: { $_deferredMount: function() { - var t = u({ type: "image" }, this.source); + var t = s({ type: "image" }, this.source); this.map.on("dataloading", this.$_watchSourceLoading); try { this.map.addSource(this.sourceId, t); @@ -2940,7 +2990,7 @@ (this.map.removeSource(this.sourceId), this.map.addSource(this.sourceId, t)); } - this.$_addLayer(), this.$_bindLayerEvents(W), (this.initial = !1); + this.$_addLayer(), this.$_bindLayerEvents(H), (this.initial = !1); }, $_addLayer: function() { var t = this.map.getLayer(this.layerId); @@ -2952,7 +3002,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, source: this.sourceId, type: "raster" }, this.layer ); @@ -2961,9 +3011,9 @@ } } }, - et = { + tt = { name: "CanvasLayer", - mixins: [J], + mixins: [K], inject: ["mapbox", "map"], props: { source: { type: Object, required: !0 }, @@ -2984,7 +3034,7 @@ }, methods: { $_deferredMount: function() { - var t = u({ type: "canvas" }, this.source); + var t = s({ type: "canvas" }, this.source); this.map.on("dataloading", this.$_watchSourceLoading); try { this.map.addSource(this.sourceId, t); @@ -2993,7 +3043,7 @@ (this.map.removeSource(this.sourceId), this.map.addSource(this.sourceId, t)); } - this.$_addLayer(), this.$_bindLayerEvents(W), (this.initial = !1); + this.$_addLayer(), this.$_bindLayerEvents(H), (this.initial = !1); }, $_addLayer: function() { var t = this.map.getLayer(this.layerId); @@ -3005,7 +3055,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, source: this.sourceId, type: "raster" }, this.layer ); @@ -3017,9 +3067,9 @@ } } }, - nt = { + et = { name: "VideoLayer", - mixins: [J], + mixins: [K], computed: { video: function() { return this.map.getSource(this.sourceId).getVideo(); @@ -3035,7 +3085,7 @@ }, methods: { $_deferredMount: function() { - var t = u({ type: "video" }, this.source); + var t = s({ type: "video" }, this.source); this.map.on("dataloading", this.$_watchSourceLoading); try { this.map.addSource(this.sourceId, t); @@ -3044,7 +3094,7 @@ (this.map.removeSource(this.sourceId), this.map.addSource(this.sourceId, t)); } - this.$_addLayer(), this.$_bindLayerEvents(W), (this.initial = !1); + this.$_addLayer(), this.$_bindLayerEvents(H), (this.initial = !1); }, $_addLayer: function() { var t = this.map.getLayer(this.layerId); @@ -3056,7 +3106,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, source: this.sourceId, type: "background" }, this.layer ); @@ -3065,9 +3115,9 @@ } } }, - rt = { + nt = { name: "VectorLayer", - mixins: [J], + mixins: [K], computed: { getSourceFeatures: function() { var t = this; @@ -3102,7 +3152,7 @@ }, methods: { $_deferredMount: function() { - var t = u({ type: "vector" }, this.source); + var t = s({ type: "vector" }, this.source); this.map.on("dataloading", this.$_watchSourceLoading); try { this.map.addSource(this.sourceId, t); @@ -3112,7 +3162,7 @@ this.map.addSource(this.sourceId, t)); } this.$_addLayer(), - this.$_bindLayerEvents(W), + this.$_bindLayerEvents(H), this.map.off("dataloading", this.$_watchSourceLoading), (this.initial = !1); }, @@ -3126,7 +3176,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, source: this.sourceId }, this.layer ); @@ -3155,15 +3205,15 @@ } } }, - ot = { + rt = { name: "RasterLayer", - mixins: [J], + mixins: [K], created: function() { this.$_deferredMount(); }, methods: { $_deferredMount: function() { - var t = u({ type: "raster" }, this.source); + var t = s({ type: "raster" }, this.source); this.map.on("dataloading", this.$_watchSourceLoading); try { this.map.addSource(this.sourceId, t); @@ -3173,7 +3223,7 @@ this.map.addSource(this.sourceId, t)); } this.$_addLayer(), - this.$_bindLayerEvents(W), + this.$_bindLayerEvents(H), this.map.off("dataloading", this.$_watchSourceLoading), (this.initial = !1); }, @@ -3187,7 +3237,7 @@ ); this.map.removeLayer(this.layerId); } - var e = u( + var e = s( { id: this.layerId, type: "raster", source: this.sourceId }, this.layer ); @@ -3196,84 +3246,84 @@ } } }, - it = f, - at = E, - st = L, - ct = J, - ut = { withEvents: f, withSelfEvents: E, asControl: L, asLayer: J }, - ft = w, + ot = c, + it = I, + at = w, + st = K, + ct = { withEvents: c, withSelfEvents: I, asControl: w, asLayer: K }, + ut = $, + ft = E, lt = O, - dt = j, - pt = k, - ht = C, - mt = P, + dt = M, + pt = j, + ht = k, + mt = Y, vt = Q, yt = tt, gt = et, bt = nt, _t = rt, - xt = ot, - St = z, - $t = H, - It = w; + xt = N, + St = q, + $t = $; n.d(e, "withEvents", function() { - return it; + return ot; }), n.d(e, "withSelfEvents", function() { - return at; + return it; }), n.d(e, "asControl", function() { - return st; + return at; }), n.d(e, "asLayer", function() { - return ct; + return st; }), n.d(e, "$helpers", function() { - return ut; + return ct; }), n.d(e, "MglMap", function() { - return ft; + return ut; }), n.d(e, "MglNavigationControl", function() { - return lt; + return ft; }), n.d(e, "MglGeolocateControl", function() { - return dt; + return lt; }), n.d(e, "MglFullscreenControl", function() { - return pt; + return dt; }), n.d(e, "MglAttributionControl", function() { - return ht; + return pt; }), n.d(e, "MglScaleControl", function() { - return mt; + return ht; }), n.d(e, "MglGeojsonLayer", function() { - return vt; + return mt; }), n.d(e, "MglImageLayer", function() { - return yt; + return vt; }), n.d(e, "MglCanvasLayer", function() { - return gt; + return yt; }), n.d(e, "MglVideoLayer", function() { - return bt; + return gt; }), n.d(e, "MglVectorLayer", function() { - return _t; + return bt; }), n.d(e, "MglRasterLayer", function() { - return xt; + return _t; }), n.d(e, "MglMarker", function() { - return St; + return xt; }), n.d(e, "MglPopup", function() { - return $t; + return St; }); - e["default"] = It; + e["default"] = $t; }, fdef: function(t, e) { t.exports = "\t\n\v\f\r \u2028\u2029\ufeff"; diff --git a/docs/404.html b/docs/404.html index 20228881..5103cf02 100644 --- a/docs/404.html +++ b/docs/404.html @@ -7,11 +7,11 @@ - +
-