You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
53 KiB
1 lines
53 KiB
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.regexp.test.js","webpack:///./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack:///./node_modules/core-js/internals/iterator-close.js","webpack:///./node_modules/vue-baidu-map/components/base/mixins/common.js","webpack:///./node_modules/vue-baidu-map/components/base/util.js","webpack:///./node_modules/core-js/internals/get-iterator-method.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/internals/array-from.js","webpack:///./node_modules/vue-baidu-map/components/base/events.js","webpack:///./node_modules/vue-baidu-map/components/base/bindEvent.js","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/internals/string-trim.js","webpack:///./node_modules/vue-baidu-map/components/base/factory.js","webpack:///node_modules/vue-baidu-map/components/map/Map.vue","webpack:///./node_modules/core-js/internals/get-iterator.js","webpack:///./node_modules/core-js/internals/call-with-safe-iteration-closing.js","webpack:///./node_modules/core-js/modules/es.array.from.js","webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/modules/es.function.name.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","webpack:///./node_modules/vue-baidu-map/components/map/Map.vue?c231","webpack:///./node_modules/vue-baidu-map/components/map/Map.vue?cfb8","webpack:///./node_modules/vue-baidu-map/components/map/Map.vue","webpack:///./node_modules/core-js/internals/is-array-iterator-method.js","webpack:///./node_modules/core-js/modules/es.array.slice.js"],"names":["$","global","call","uncurryThis","isCallable","isObject","DELEGATES_TO_EXEC","execCalled","re","exec","apply","this","arguments","test","Error","un$Test","target","proto","forced","str","result","wellKnownSymbol","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","next","done","Array","from","error","module","exports","SKIP_CLOSING","ITERATION_SUPPORT","object","anObject","getMethod","iterator","kind","value","innerResult","innerError","types","control","unload","layer","overlay","contextMenu","getParent","$component","abstract","$el","$children","$parent","destroyInstance","renderByParent","reload","Mixin","prop","methods","BMap","map","load","$emit","e","type","replace","$nextTick","originInstance","clearResults","dispose","clearMarkers","computed","preventChildrenRender","mounted","ready","$on","destroyed","beforeDestroy","checkType","val","Object","prototype","toString","slice","classof","Iterators","it","undefined","valueOf","bind","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","isConstructor","lengthOfArrayLike","createProperty","getIterator","getIteratorMethod","arrayLike","O","IS_CONSTRUCTOR","argumentsLength","length","mapfn","mapping","step","iteratorMethod","index","ev","eventList","events","$options","name","forEach","event","hasOn","eventName","listener","$listeners","instance","addEventListener","fns","requireObjectCoercible","whitespaces","whitespace","ltrim","RegExp","rtrim","createMethod","TYPE","$this","string","start","end","trim","createPoint","options","lng","lat","Point","createSize","width","height","Size","createIcon","url","size","opts","Icon","anchor","imageSize","imageOffset","infoWindowAnchor","printImageUrl","createLabel","content","Label","offset","position","enableMassClear","props","ak","String","center","zoom","Number","minZoom","maxZoom","highResolution","Boolean","default","mapClick","mapType","dragging","scrollWheelZoom","doubleClickZoom","keyboard","inertialDragging","continuousZoom","pinchToZoom","autoResize","theme","mapStyle","watch","centerAndZoom","oldVal","setZoom","setMinZoom","setMaxZoom","reset","setMapType","enableDragging","disableDragging","enableScrollWheelZoom","disableScrollWheelZoom","enableDoubleClickZoom","disableDoubleClickZoom","enableKeyboard","disableKeyboard","enableInertialDragging","disableInertialDragging","enableContinuousZoom","disableContinuousZoom","enablePinchToZoom","disablePinchToZoom","enableAutoResize","disableAutoResize","setMapStyle","handler","styleJson","features","style","deep","setMapOptions","init","getCenterPoint","initMap","getMapScript","_preloader","Promise","resolve","_initBaiduMap","document","body","removeChild","$script","appendChild","src","data","hasBmView","aCallable","tryToString","TypeError","argument","usingIterator","iteratorClose","fn","ENTRIES","checkCorrectnessOfIteration","INCORRECT_ITERATION","iterable","stat","DESCRIPTORS","isForced","redefine","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","fails","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","thisNumberValue","NUMBER","NativeNumber","NumberPrototype","arraySlice","charCodeAt","toNumeric","primValue","toNumber","first","third","radix","maxCode","digits","code","NaN","parseInt","key","NumberWrapper","n","dummy","keys","split","j","constructor","FUNCTION_NAME_EXISTS","EXISTS","FunctionPrototype","Function","functionToString","nameRE","regExpExec","NAME","configurable","get","_arrayLikeToArray","arr","len","i","arr2","_unsupportedIterableToArray","o","minLen","arrayLikeToArray","_createForOfIteratorHelper","allowArrayLike","Symbol","isArray","unsupportedIterableToArray","F","s","_e","err","normalCompletion","didErr","_e2","render","_vm","_h","$createElement","_c","_self","ref","staticStyle","_t","staticRenderFns","component","ArrayPrototype","toAbsoluteIndex","toIndexedObject","arrayMethodHasSpeciesSupport","un$Slice","HAS_SPECIES_SUPPORT","SPECIES","max","Math","Constructor","k","fin"],"mappings":"kHAEA,EAAQ,QACR,IAAIA,EAAI,EAAQ,QACZC,EAAS,EAAQ,QACjBC,EAAO,EAAQ,QACfC,EAAc,EAAQ,QACtBC,EAAa,EAAQ,QACrBC,EAAW,EAAQ,QAEnBC,EAAoB,WACtB,IAAIC,GAAa,EACbC,EAAK,OAKT,OAJAA,EAAGC,KAAO,WAER,OADAF,GAAa,EACN,IAAIE,KAAKC,MAAMC,KAAMC,aAEJ,IAAnBJ,EAAGK,KAAK,QAAmBN,EAPZ,GAUpBO,EAAQb,EAAOa,MACfC,EAAUZ,EAAY,IAAIU,MAI9Bb,EAAE,CAAEgB,OAAQ,SAAUC,OAAO,EAAMC,QAASZ,GAAqB,CAC/DO,KAAM,SAAUM,GACd,IAAIV,EAAOE,KAAKF,KAChB,IAAKL,EAAWK,GAAO,OAAOM,EAAQJ,KAAMQ,GAC5C,IAAIC,EAASlB,EAAKO,EAAME,KAAMQ,GAC9B,GAAe,OAAXC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CAACE,EAAKnE,MAAOqE,IAAQ,GAAQF,EAAKnE,MAClGyD,EAAe7E,EAAQyF,EAAOrE,GAWlC,OADApB,EAAOoF,OAASK,EACTzF,I,oCC7CM,OACb,SAAU,CACR,QACA,WACA,aACA,gBACA,gBACA,YACA,YACA,WACA,YACA,SACA,UACA,YACA,UACA,aACA,aACA,gBACA,gBACA,gBACA,YACA,WACA,UACA,eACA,kBACA,OACA,SACA,eACA,cACA,aACA,cACA,aACA,YACA,WACA,aAEF,iBAAkB,CAChB,kBACA,iBAEF,kBAAmB,CACjB,cACA,gBAEF,YAAa,CACX,QACA,WACA,YACA,UACA,WACA,YACA,SACA,kBACA,iBACA,YACA,WACA,UACA,cAEF,cAAe,CACb,QACA,WACA,YACA,UACA,WACA,YACA,SACA,cAEF,aAAc,CACZ,QACA,WACA,YACA,UACA,WACA,YACA,SACA,cAEF,YAAa,CACX,QACA,WACA,YACA,UACA,WACA,YACA,SACA,cAEF,WAAY,CACV,QACA,WACA,YACA,UACA,WACA,YACA,SACA,cAEF,iBAAkB,CAChB,QACA,OACA,WACA,UACA,cAEF,YAAa,CACX,QACA,YAEF,kBAAmB,CACjB,YACA,eAEF,sBAAuB,CACrB,QACA,YACA,aCnHW,qBACb,MAAM0F,EAAKC,GAAaC,EAAOrG,KAAKsG,SAASC,MAC7CJ,GAAMA,EAAGK,QAAQC,IACf,MAAMC,EAA8B,OAAtBD,EAAM/B,MAAM,EAAG,GACvBiC,EAAYD,EAAQD,EAAM/B,MAAM,GAAK+B,EACrCG,EAAW5G,KAAK6G,WAAWF,GACjCC,GAAYE,EAASC,iBAAiBN,EAAOG,EAASI,S,mBCP1D5F,EAAOC,QAAU,iD,uBCDjB,IAAI7B,EAAc,EAAQ,QACtByH,EAAyB,EAAQ,QACjCxC,EAAW,EAAQ,QACnByC,EAAc,EAAQ,QAEtB1D,EAAUhE,EAAY,GAAGgE,SACzB2D,EAAa,IAAMD,EAAc,IACjCE,EAAQC,OAAO,IAAMF,EAAaA,E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C3B,IAKIsM,EAAazT,EAAQgQ,EALrB/K,EAAIiO,EAAgB3T,MACpB6F,EAASR,EAAkBK,GAC3ByO,EAAIT,EAAgB/L,EAAO9B,GAC3BuO,EAAMV,OAAwB5O,IAAR8C,EAAoB/B,EAAS+B,EAAK/B,GAG5D,GAAIwM,EAAQ3M,KACVwO,EAAcxO,EAAEoL,YAEZ1L,EAAc8O,KAAiBA,IAAgBjT,GAASoR,EAAQ6B,EAAY1P,YAC9E0P,OAAcpP,EACLpF,EAASwU,KAClBA,EAAcA,EAAYH,GACN,OAAhBG,IAAsBA,OAAcpP,IAEtCoP,IAAgBjT,QAAyB6D,IAAhBoP,GAC3B,OAAOL,EAASnO,EAAGyO,EAAGC,GAI1B,IADA3T,EAAS,SAAqBqE,IAAhBoP,EAA4BjT,EAAQiT,GAAaF,EAAII,EAAMD,EAAG,IACvE1D,EAAI,EAAG0D,EAAIC,EAAKD,IAAK1D,IAAS0D,KAAKzO,GAAGJ,EAAe7E,EAAQgQ,EAAG/K,EAAEyO,IAEvE,OADA1T,EAAOoF,OAAS4K,EACThQ","file":"js/chunk-3e9b4b62.dc520970.js","sourcesContent":["'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar Error = global.Error;\nvar un$Test = uncurryThis(/./.test);\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (str) {\n var exec = this.exec;\n if (!isCallable(exec)) return un$Test(this, str);\n var result = call(exec, this, str);\n if (result !== null && !isObject(result)) {\n throw new Error('RegExp exec method returned something other than an Object or null');\n }\n return !!result;\n }\n});\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","const types = {\n control: {\n unload: 'removeControl'\n },\n layer: {\n unload: 'removeTileLayer'\n },\n overlay: {\n unload: 'removeOverlay'\n },\n contextMenu: {\n unload: 'removeContextMenu'\n }\n}\n\nconst getParent = $component => ($component.abstract || $component.$el === $component.$children[0].$el) ? getParent($component.$parent) : $component\n\nfunction destroyInstance () {\n const {unload, renderByParent, $parent} = this\n if (renderByParent) {\n $parent.reload()\n }\n unload()\n}\n\nclass Mixin {\n constructor (prop) {\n this.methods = {\n ready () {\n const $parent = getParent(this.$parent)\n const BMap = this.BMap = $parent.BMap\n const map = this.map = $parent.map\n this.load()\n this.$emit('ready', {\n BMap,\n map\n })\n },\n transmitEvent (e) {\n this.$emit(e.type.replace(/^on/, ''), e)\n },\n reload () {\n this && this.BMap && this.$nextTick(() => {\n this.unload()\n this.$nextTick(this.load)\n })\n },\n unload () {\n const {map, originInstance} = this\n try {\n switch (prop.type) {\n case 'search':\n return originInstance.clearResults()\n case 'autoComplete':\n case 'lushu':\n return originInstance.dispose()\n case 'markerClusterer':\n return originInstance.clearMarkers()\n default:\n map[types[prop.type].unload](originInstance)\n }\n } catch (e) {}\n }\n }\n this.computed = {\n renderByParent () {\n return this.$parent.preventChildrenRender\n }\n }\n this.mounted = function () {\n const $parent = getParent(this.$parent)\n const map = $parent.map\n const {ready} = this\n map ? ready() : $parent.$on('ready', ready)\n }\n this.destroyed = destroyInstance\n this.beforeDestroy = destroyInstance\n }\n}\n\nexport default type => new Mixin({type})\n","import {createPoint} from './factory'\n\nexport const isPoint = obj => obj.lng && obj.lat\nexport const checkType = val => Object.prototype.toString.call(val).slice(8, -1)\n\nexport const getPosition = (BMap, point) => isPoint(point) ? createPoint(BMap, point) : point\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar isConstructor = require('../internals/is-constructor');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar Array = global.Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var IS_CONSTRUCTOR = isConstructor(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = getIterator(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = lengthOfArrayLike(O);\n result = IS_CONSTRUCTOR ? new this(length) : Array(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","export default {\n 'bm-map': [\n 'click',\n 'dblclick',\n 'rightclick',\n 'rightdblclick',\n 'maptypechange',\n 'mousemove',\n 'mouseover',\n 'mouseout',\n 'movestart',\n 'moving',\n 'moveend',\n 'zoomstart',\n 'zoomend',\n 'addoverlay',\n 'addcontrol',\n 'removecontrol',\n 'removeoverlay',\n 'clearoverlays',\n 'dragstart',\n 'dragging',\n 'dragend',\n 'addtilelayer',\n 'removetilelayer',\n 'load',\n 'resize',\n 'hotspotclick',\n 'hotspotover',\n 'hotspotout',\n 'tilesloaded',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'longpress'\n ],\n 'bm-geolocation': [\n 'locationSuccess',\n 'locationError'\n ],\n 'bm-overview-map': [\n 'viewchanged',\n 'viewchanging'\n ],\n 'bm-marker': [\n 'click',\n 'dblclick',\n 'mousedown',\n 'mouseup',\n 'mouseout',\n 'mouseover',\n 'remove',\n 'infowindowclose',\n 'infowindowopen',\n 'dragstart',\n 'dragging',\n 'dragend',\n 'rightclick'\n ],\n 'bm-polyline': [\n 'click',\n 'dblclick',\n 'mousedown',\n 'mouseup',\n 'mouseout',\n 'mouseover',\n 'remove',\n 'lineupdate'\n ],\n 'bm-polygon': [\n 'click',\n 'dblclick',\n 'mousedown',\n 'mouseup',\n 'mouseout',\n 'mouseover',\n 'remove',\n 'lineupdate'\n ],\n 'bm-circle': [\n 'click',\n 'dblclick',\n 'mousedown',\n 'mouseup',\n 'mouseout',\n 'mouseover',\n 'remove',\n 'lineupdate'\n ],\n 'bm-label': [\n 'click',\n 'dblclick',\n 'mousedown',\n 'mouseup',\n 'mouseout',\n 'mouseover',\n 'remove',\n 'rightclick'\n ],\n 'bm-info-window': [\n 'close',\n 'open',\n 'maximize',\n 'restore',\n 'clickclose'\n ],\n 'bm-ground': [\n 'click',\n 'dblclick'\n ],\n 'bm-autocomplete': [\n 'onconfirm',\n 'onhighlight'\n ],\n 'bm-point-collection': [\n 'click',\n 'mouseover',\n 'mouseout'\n ]\n}\n","import events from './events.js'\n\nexport default function (instance, eventList) {\n const ev = eventList || events[this.$options.name]\n ev && ev.forEach(event => {\n const hasOn = event.slice(0, 2) === 'on'\n const eventName = hasOn ? event.slice(2) : event\n const listener = this.$listeners[eventName]\n listener && instance.addEventListener(event, listener.fns)\n })\n}\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","export function createPoint (BMap, options = {}) {\n const {lng, lat} = options\n return new BMap.Point(lng, lat)\n}\n\nexport function createPixel (BMap, options = {}) {\n const {x, y} = options\n return new BMap.Pixel(x, y)\n}\n\nexport function createBounds (BMap, options = {}) {\n const {sw, ne} = options\n return new BMap.Bounds(createPoint(BMap, sw), createPoint(BMap, ne))\n}\n\nexport function createSize (BMap, options = {}) {\n const {width, height} = options\n return new BMap.Size(width, height)\n}\n\nexport function createIcon (BMap, options = {}) {\n const {url, size, opts = {}} = options\n return new BMap.Icon(url, createSize(BMap, size), {\n anchor: opts.anchor && createSize(BMap, opts.anchor),\n imageSize: opts.imageSize && createSize(BMap, opts.imageSize),\n imageOffset: opts.imageOffset && createSize(BMap, opts.imageOffset),\n infoWindowAnchor: opts.infoWindowAnchor && createSize(BMap, opts.infoWindowAnchor),\n printImageUrl: opts.printImageUrl\n })\n}\n\nexport function createLabel (BMap, options = {}) {\n const {content, opts} = options\n return new BMap.Label(content, {\n offset: opts.offset && createSize(BMap, opts.offset),\n position: opts.position && createPoint(BMap, opts.position),\n enableMassClear: opts.enableMassClear\n })\n}\n","<template>\n<div>\n <div v-if=\"!hasBmView\" ref=\"view\" style=\"width: 100%; height: 100%\">\n </div>\n <slot></slot>\n</div>\n</template>\n\n<script>\nimport bindEvents from '../base/bindEvent.js'\nimport {checkType} from '../base/util.js'\n\nexport default {\n name: 'bm-map',\n props: {\n ak: {\n type: String\n },\n center: {\n type: [Object, String]\n },\n zoom: {\n type: Number\n },\n minZoom: {\n type: Number\n },\n maxZoom: {\n type: Number\n },\n highResolution: {\n type: Boolean,\n default: true\n },\n mapClick: {\n type: Boolean,\n default: true\n },\n mapType: {\n type: String\n },\n dragging: {\n type: Boolean,\n default: true\n },\n scrollWheelZoom: {\n type: Boolean,\n default: false\n },\n doubleClickZoom: {\n type: Boolean,\n default: true\n },\n keyboard: {\n type: Boolean,\n default: true\n },\n inertialDragging: {\n type: Boolean,\n default: true\n },\n continuousZoom: {\n type: Boolean,\n default: true\n },\n pinchToZoom: {\n type: Boolean,\n default: true\n },\n autoResize: {\n type: Boolean,\n default: true\n },\n theme: {\n type: Array\n },\n mapStyle: {\n type: Object\n }\n },\n watch: {\n center (val, oldVal) {\n const {map, zoom} = this\n if (checkType(val) === 'String' && val !== oldVal) {\n map.centerAndZoom(val, zoom)\n }\n },\n 'center.lng' (val, oldVal) {\n const {BMap, map, zoom, center} = this\n if (val !== oldVal && val >= -180 && val <= 180) {\n map.centerAndZoom(new BMap.Point(val, center.lat), zoom)\n }\n },\n 'center.lat' (val, oldVal) {\n const {BMap, map, zoom, center} = this\n if (val !== oldVal && val >= -74 && val <= 74) {\n map.centerAndZoom(new BMap.Point(center.lng, val), zoom)\n }\n },\n zoom (val, oldVal) {\n const {map} = this\n if (val !== oldVal && val >= 3 && val <= 19) {\n map.setZoom(val)\n }\n },\n minZoom (val) {\n const {map} = this\n map.setMinZoom(val)\n },\n maxZoom (val) {\n const {map} = this\n map.setMaxZoom(val)\n },\n highResolution () {\n this.reset()\n },\n mapClick () {\n this.reset()\n },\n mapType (val) {\n const {map} = this\n map.setMapType(global[val])\n },\n dragging (val) {\n const {map} = this\n val ? map.enableDragging() : map.disableDragging()\n },\n scrollWheelZoom (val) {\n const {map} = this\n val ? map.enableScrollWheelZoom() : map.disableScrollWheelZoom()\n },\n doubleClickZoom (val) {\n const {map} = this\n val ? map.enableDoubleClickZoom() : map.disableDoubleClickZoom()\n },\n keyboard (val) {\n const {map} = this\n val ? map.enableKeyboard() : map.disableKeyboard()\n },\n inertialDragging (val) {\n const {map} = this\n val ? map.enableInertialDragging() : map.disableInertialDragging()\n },\n continuousZoom (val) {\n const {map} = this\n val ? map.enableContinuousZoom() : map.disableContinuousZoom()\n },\n pinchToZoom (val) {\n const {map} = this\n val ? map.enablePinchToZoom() : map.disablePinchToZoom()\n },\n autoResize (val) {\n const {map} = this\n val ? map.enableAutoResize() : map.disableAutoResize()\n },\n theme (val) {\n const {map} = this\n map.setMapStyle({styleJson: val})\n },\n 'mapStyle.features': {\n handler (val, oldVal) {\n const {map, mapStyle} = this\n const {style, styleJson} = mapStyle\n map.setMapStyle({\n styleJson,\n features: val,\n style\n })\n },\n deep: true\n },\n 'mapStyle.style' (val, oldVal) {\n const {map, mapStyle} = this\n const {features, styleJson} = mapStyle\n map.setMapStyle({\n styleJson,\n features,\n style: val\n })\n },\n 'mapStyle.styleJson': {\n handler (val, oldVal) {\n const {map, mapStyle} = this\n const {features, style} = mapStyle\n map.setMapStyle({\n styleJson: val,\n features,\n style\n })\n },\n deep: true\n },\n mapStyle (val) {\n const {map, theme} = this\n !theme && map.setMapStyle(val)\n }\n },\n methods: {\n setMapOptions () {\n const {map, minZoom, maxZoom, mapType, dragging, scrollWheelZoom, doubleClickZoom, keyboard, inertialDragging, continuousZoom, pinchToZoom, autoResize} = this\n minZoom && map.setMinZoom(minZoom)\n maxZoom && map.setMaxZoom(maxZoom)\n mapType && map.setMapType(global[mapType])\n dragging ? map.enableDragging() : map.disableDragging()\n scrollWheelZoom ? map.enableScrollWheelZoom() : map.disableScrollWheelZoom()\n doubleClickZoom ? map.enableDoubleClickZoom() : map.disableDoubleClickZoom()\n keyboard ? map.enableKeyboard() : map.disableKeyboard()\n inertialDragging ? map.enableInertialDragging() : map.disableInertialDragging()\n continuousZoom ? map.enableContinuousZoom() : map.disableContinuousZoom()\n pinchToZoom ? map.enablePinchToZoom() : map.disablePinchToZoom()\n autoResize ? map.enableAutoResize() : map.disableAutoResize()\n },\n init (BMap) {\n if (this.map) {\n return\n }\n let $el = this.$refs.view\n for (let $node of this.$slots.default || []) {\n if ($node.componentOptions && $node.componentOptions.tag === 'bm-view') {\n this.hasBmView = true\n $el = $node.elm\n }\n }\n const map = new BMap.Map($el, {enableHighResolution: this.highResolution, enableMapClick: this.mapClick})\n this.map = map\n const {setMapOptions, zoom, getCenterPoint, theme, mapStyle} = this\n theme ? map.setMapStyle({styleJson: theme}) : map.setMapStyle(mapStyle)\n setMapOptions()\n bindEvents.call(this, map)\n // 此处强行初始化一次地图 回避一个由于错误的 center 字符串导致初始化失败抛出的错误\n map.reset()\n map.centerAndZoom(getCenterPoint(), zoom)\n this.$emit('ready', {BMap, map})\n // Debug\n // global.map = map\n // global.mapComponent = this\n },\n getCenterPoint () {\n const {center, BMap} = this\n switch (checkType(center)) {\n case 'String': return center\n case 'Object': return new BMap.Point(center.lng, center.lat)\n default: return new BMap.Point()\n }\n },\n initMap (BMap) {\n this.BMap = BMap\n this.init(BMap)\n },\n getMapScript () {\n if (!global.BMap) {\n const ak = this.ak || this._BMap().ak\n global.BMap = {}\n global.BMap._preloader = new Promise((resolve, reject) => {\n global._initBaiduMap = function () {\n resolve(global.BMap)\n global.document.body.removeChild($script)\n global.BMap._preloader = null\n global._initBaiduMap = null\n }\n const $script = document.createElement('script')\n global.document.body.appendChild($script)\n $script.src = `https://api.map.baidu.com/api?v=2.0&ak=${ak}&callback=_initBaiduMap`\n })\n return global.BMap._preloader\n } else if (!global.BMap._preloader) {\n return Promise.resolve(global.BMap)\n } else {\n return global.BMap._preloader\n }\n },\n reset () {\n const {getMapScript, initMap} = this\n getMapScript()\n .then(initMap)\n }\n },\n mounted () {\n this.reset()\n },\n data () {\n return {\n hasBmView: false\n }\n }\n}\n</script>\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw TypeError(tryToString(argument) + ' is not iterable');\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar arraySlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = arraySlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n var dummy = this;\n // check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })\n ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n","var DESCRIPTORS = require('../internals/descriptors');\nvar FUNCTION_NAME_EXISTS = require('../internals/function-name').EXISTS;\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar FunctionPrototype = Function.prototype;\nvar functionToString = uncurryThis(FunctionPrototype.toString);\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar regExpExec = uncurryThis(nameRE.exec);\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.es/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return regExpExec(nameRE, functionToString(this))[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(!_vm.hasBmView)?_c('div',{ref:\"view\",staticStyle:{\"width\":\"100%\",\"height\":\"100%\"}}):_vm._e(),_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--1-0!../../../vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Map.vue?vue&type=template&id=470f2580&\"\nimport script from \"./Map.vue?vue&type=script&lang=js&\"\nexport * from \"./Map.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar un$Slice = require('../internals/array-slice');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\n\nvar SPECIES = wellKnownSymbol('species');\nvar Array = global.Array;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return un$Slice(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n"],"sourceRoot":""}
|