@styzy/vue-amap 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-ctn[data-v-0a8871e0],.v-amap-c
32
32
 
33
33
  /***/ }),
34
34
 
35
- /***/ 757:
35
+ /***/ 209:
36
36
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
37
37
 
38
38
  "use strict";
@@ -46,14 +46,14 @@ __webpack_require__.r(__webpack_exports__);
46
46
 
47
47
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
48
48
  // Module
49
- ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-place-search-input input[data-v-57fd4556]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}", ""]);
49
+ ___CSS_LOADER_EXPORT___.push([module.id, ".v-amap-place-search-input input[data-v-ee372b00]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}", ""]);
50
50
  // Exports
51
51
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
52
52
 
53
53
 
54
54
  /***/ }),
55
55
 
56
- /***/ 242:
56
+ /***/ 753:
57
57
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
58
58
 
59
59
  "use strict";
@@ -194,35 +194,35 @@ var update = add("1bf2dbec", content, true, {"sourceMap":false,"shadowMode":fals
194
194
 
195
195
  /***/ }),
196
196
 
197
- /***/ 510:
197
+ /***/ 248:
198
198
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
199
199
 
200
200
  // style-loader: Adds some css to the DOM by adding a <style> tag
201
201
 
202
202
  // load the styles
203
- var content = __webpack_require__(757);
203
+ var content = __webpack_require__(209);
204
204
  if(content.__esModule) content = content.default;
205
205
  if(typeof content === 'string') content = [[module.id, content, '']];
206
206
  if(content.locals) module.exports = content.locals;
207
207
  // add the styles to the DOM
208
208
  var add = (__webpack_require__(402)/* ["default"] */ .Z)
209
- var update = add("02632d94", content, true, {"sourceMap":false,"shadowMode":false});
209
+ var update = add("4e9f3830", content, true, {"sourceMap":false,"shadowMode":false});
210
210
 
211
211
  /***/ }),
212
212
 
213
- /***/ 12:
213
+ /***/ 419:
214
214
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
215
215
 
216
216
  // style-loader: Adds some css to the DOM by adding a <style> tag
217
217
 
218
218
  // load the styles
219
- var content = __webpack_require__(242);
219
+ var content = __webpack_require__(753);
220
220
  if(content.__esModule) content = content.default;
221
221
  if(typeof content === 'string') content = [[module.id, content, '']];
222
222
  if(content.locals) module.exports = content.locals;
223
223
  // add the styles to the DOM
224
224
  var add = (__webpack_require__(402)/* ["default"] */ .Z)
225
- var update = add("32ab85ac", content, true, {"sourceMap":false,"shadowMode":false});
225
+ var update = add("353a7b5e", content, true, {"sourceMap":false,"shadowMode":false});
226
226
 
227
227
  /***/ }),
228
228
 
@@ -1351,10 +1351,10 @@ var VAMapPolygon_component = normalizeComponent(
1351
1351
  )
1352
1352
 
1353
1353
  /* harmony default export */ var VAMapPolygon = (VAMapPolygon_component.exports);
1354
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/pug-plain-loader/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug
1355
- var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-place-search-input"},[_c('input',{ref:"input",attrs:{"placeholder":_vm.placeholder}})])
1354
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/pug-plain-loader/index.js!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=template&id=ee372b00&scoped=true&lang=pug
1355
+ var VAMapPlaceSearchInputvue_type_template_id_ee372b00_scoped_true_lang_pug_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"v-amap-place-search-input"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.inputValue),expression:"inputValue"}],ref:"input",attrs:{"placeholder":_vm.placeholder},domProps:{"value":(_vm.inputValue)},on:{"blur":function($event){return _vm.handleBlur()},"input":function($event){if($event.target.composing)return;_vm.inputValue=$event.target.value}}})])
1356
1356
  }
1357
- var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns = []
1357
+ var VAMapPlaceSearchInputvue_type_template_id_ee372b00_scoped_true_lang_pug_staticRenderFns = []
1358
1358
 
1359
1359
 
1360
1360
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
@@ -1376,6 +1376,8 @@ var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_stat
1376
1376
  data() {
1377
1377
  return {
1378
1378
  AMap: null,
1379
+ inputValue: '',
1380
+ placeName: '',
1379
1381
  autocompleteListener: null,
1380
1382
  placeSearchListener: null
1381
1383
  }
@@ -1398,6 +1400,7 @@ var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_stat
1398
1400
  autocomplete,
1399
1401
  'select',
1400
1402
  event => {
1403
+ this.placeName = event.poi.name
1401
1404
  placeSearch.search(event.poi.name)
1402
1405
  }
1403
1406
  )
@@ -1418,30 +1421,45 @@ var VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_stat
1418
1421
  event.poiList.pois[0].location.lat
1419
1422
  ]
1420
1423
  }
1421
- this.$emit('change', position)
1422
1424
 
1423
1425
  if (!position && !this.customEnable) {
1424
- this.$refs.input.value = ''
1426
+ this.inputValue = ''
1425
1427
  }
1428
+
1429
+ this.$emit('change', position, this.inputValue)
1426
1430
  }
1427
1431
  )
1428
1432
  },
1429
1433
  removeListener() {
1430
1434
  this.AMap.event.removeListener(this.autocompleteListener)
1431
1435
  this.AMap.event.removeListener(this.placeSearchListener)
1436
+ },
1437
+ clear() {
1438
+ this.inputValue = ''
1439
+ this.placeName = ''
1440
+ this.$emit('change', null, this.inputValue)
1441
+ },
1442
+ handleBlur() {
1443
+ if (this.customEnable) return
1444
+ if (this.inputValue !== this.placeName) {
1445
+ this.clear()
1446
+ }
1447
+ },
1448
+ handleInput(event) {
1449
+ this.inputValue = event.target.value
1432
1450
  }
1433
1451
  }
1434
1452
  });
1435
1453
 
1436
1454
  ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=script&lang=js
1437
1455
  /* harmony default export */ var Components_VAMapPlaceSearchInputvue_type_script_lang_js = (VAMapPlaceSearchInputvue_type_script_lang_js);
1438
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true
1439
- var VAMapPlaceSearchInputvue_type_style_index_0_id_57fd4556_prod_lang_stylus_scoped_true = __webpack_require__(510);
1440
- ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true
1456
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=ee372b00&prod&lang=stylus&scoped=true
1457
+ var VAMapPlaceSearchInputvue_type_style_index_0_id_ee372b00_prod_lang_stylus_scoped_true = __webpack_require__(248);
1458
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=ee372b00&prod&lang=stylus&scoped=true
1441
1459
 
1442
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus
1443
- var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus = __webpack_require__(12);
1444
- ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus
1460
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!./node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=ee372b00&prod&lang=stylus
1461
+ var VAMapPlaceSearchInputvue_type_style_index_1_id_ee372b00_prod_lang_stylus = __webpack_require__(419);
1462
+ ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=ee372b00&prod&lang=stylus
1445
1463
 
1446
1464
  ;// CONCATENATED MODULE: ./src/Components/VAMapPlaceSearchInput.vue
1447
1465
 
@@ -1455,11 +1473,11 @@ var VAMapPlaceSearchInputvue_type_style_index_1_id_57fd4556_prod_lang_stylus = _
1455
1473
 
1456
1474
  var VAMapPlaceSearchInput_component = normalizeComponent(
1457
1475
  Components_VAMapPlaceSearchInputvue_type_script_lang_js,
1458
- VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_render,
1459
- VAMapPlaceSearchInputvue_type_template_id_57fd4556_scoped_true_lang_pug_staticRenderFns,
1476
+ VAMapPlaceSearchInputvue_type_template_id_ee372b00_scoped_true_lang_pug_render,
1477
+ VAMapPlaceSearchInputvue_type_template_id_ee372b00_scoped_true_lang_pug_staticRenderFns,
1460
1478
  false,
1461
1479
  null,
1462
- "57fd4556",
1480
+ "ee372b00",
1463
1481
  null
1464
1482
 
1465
1483
  )
@@ -1480,12 +1498,12 @@ var VAMapPlaceSearchInput_component = normalizeComponent(
1480
1498
  VAMapPlaceSearchInput
1481
1499
  ]);
1482
1500
 
1501
+ ;// CONCATENATED MODULE: ./package.json
1502
+ var package_namespaceObject = {"i8":"1.1.2"};
1483
1503
  ;// CONCATENATED MODULE: ./src/config/index.js
1484
- const version = '1.1.0'
1485
1504
 
1486
- /* harmony default export */ var config = ({
1487
- version
1488
- });
1505
+
1506
+ const version = package_namespaceObject.i8
1489
1507
 
1490
1508
  ;// CONCATENATED MODULE: ./src/index.js
1491
1509
 
@@ -1 +1 @@
1
- {"version":3,"file":"vue-amap.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;ACVA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,4GAA4G,YAAY;AACxH;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,4FAA4F,qBAAqB,sBAAsB,eAAe,WAAW,YAAY,UAAU,yBAAyB,kBAAkB,sBAAsB,sBAAsB,cAAc,kBAAkB,iBAAiB,2DAA2D,wBAAwB;AAClZ;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,2DAA2D,aAAa;AACxE;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpFa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAif;AACvgB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAigB;AACvhB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAqf;AAC3gB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;;UC7NA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB;AACA;AACA;AACA;AACA;AACA,kDAAe,SAAS;;;ACLY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,aAAS,SAAS,KAAK,aAAa;AAChD;AACA,GAAG,YAAY,kBAAkB,UAAU,uBAAuB;AAClE;AACA;AACA,uCAAuC,eAAe;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,aAAS,eAAe,GAAG,WAAW;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,UAAU,kDAAkD,IAAI;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,2CAAe,YAAY;;;AC5G3B,+BAA+B,6BAA6B,iBAAiB,yBAAyB,YAAY,gCAAgC,iDAAiD,gCAAgC;AACnO;AACA;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,wDAAe,aAAa;;;ACd5B;AACA;AACA;AACA;AACA,iDAAe,MAAM;;;ACJQ;AAC7B;AACA;AACA;AACA;AACA,OAAO,YAAM;AACb,aAAa,2BAA2B,KAAK;AAC7C,OAAO,YAAM;AACb;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA,GAAG;AACH,cAAc,0BAA0B;AACxC;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,aAAa,6CAA6C;AAC1D;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA,qDAAe,UAAU;;;;ACxBkB;AACQ;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,MAAU;;AAE/B;AACA;AACA,IAAI,KAAW;AACf;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC7E+H,CAAC,4EAAe,4BAAG,EAAC;;;;;;AEApJ;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FwG;AAChD;AACL;AACnD,CAAgG;;;AAGhG;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,uCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,0CAAe;;ACnBf,IAAI,oEAAM,qBAAqB,6BAA6B,iBAAiB,4BAA4B,YAAY,kDAAkD;AACvK;AACA,IAAI,6EAAe;;;;;ACIW;AACqB;;AAEnD,MAAM,+CAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,+CAAY;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;;AC7GqI,CAAC,kFAAe,kCAAG,EAAC;;ACA5C;AAChD;AACL;;;AAGzD;AACA,CAAmG;AACnG,IAAI,qBAAS,GAAG,kBAAU;AAC1B,EAAE,6CAAM;AACR,EAAE,oEAAM;AACR,EAAE,6EAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,gDAAe,qBAAS;;;ACjBM;AACqB;;AAEnD,MAAM,kDAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0EAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,kDAAY;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;ACpEwI,CAAC,qFAAe,qCAAG,EAAC;;ACA7J,IAAI,qBAAM,EAAE,8BAAe;AAC3B,CAAiE;AACL;;;AAG5D;AACA,CAAmG;AACnG,IAAI,wBAAS,GAAG,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,qBAAM;AACR,EAAE,8BAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAe,wBAAS;;;ACjBM;AACqB;;AAEnD,MAAM,gDAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,gDAAY;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC1HsI,CAAC,mFAAe,mCAAG,EAAC;;ACA3J,IAAI,mBAAM,EAAE,4BAAe;AAC3B,CAA+D;AACL;;;AAG1D;AACA,CAAmG;AACnG,IAAI,sBAAS,GAAG,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,mBAAM;AACR,EAAE,4BAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAe,sBAAS;;AClBxB,IAAI,8EAAM,qBAAqB,6BAA6B,iBAAiB,wCAAwC,cAAc,mBAAmB,+BAA+B;AACrL;AACA,IAAI,uFAAe;;;;;ACIW;;AAE9B,iFAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC9E+I,CAAC,4FAAe,4CAAG,EAAC;;;;;;;;;;AGA5C;AAChD;AACL;AACnE,CAAgH;AACZ;;;AAGpG;AACmG;AACnG,IAAI,+BAAS,GAAG,kBAAU;AAC1B,EAAE,uDAAM;AACR,EAAE,8EAAM;AACR,EAAE,uFAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAe,+BAAS;;ACpBG;AACY;AACM;AACJ;AACkB;AAC3D;AACA,+CAAe;AACf,CAAC,KAAK;AACN,CAAC,WAAW;AACZ,CAAC,cAAc;AACf,CAAC,YAAY;AACb,CAAC,qBAAqB;AACtB,CAAC;;;ACZM;AACP;AACA,2CAAe;AACf;AACA,CAAC;;;ACJgC;AACI;AACH;AAClC;AACA;AACA;AACA;AACA;AACA,SAAS,OAAO;AAChB;AACA;AACA,SAAS,MAAU;AACnB;AACA;AACA;AACA;AACA;AACA,EAAE,UAAU;AACZ;AACA,GAAG;AACH;AACA,yBAAyB,8BAA8B,WAAW;AAClE,qCAAqC;AACrC;AACA,EAAE,MAAU,UAAU,SAAS;AAC/B;AACA,eAAe,MAAU;AACzB;AACA;AACA;AACA;AACqB;AACrB;AACA,0CAAe,WAAW;;;ACjCF;AACA;AACxB,8CAAe,KAAG;AACI","sources":["webpack://vue-amap/webpack/universalModuleDefinition","webpack://vue-amap/./src/Components/VAMap.vue?7c17","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?20f5","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?e588","webpack://vue-amap/./node_modules/css-loader/dist/runtime/api.js","webpack://vue-amap/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://vue-amap/./src/Components/VAMap.vue?8f34","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?cb23","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?af27","webpack://vue-amap/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://vue-amap/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://vue-amap/webpack/bootstrap","webpack://vue-amap/webpack/runtime/compat get default export","webpack://vue-amap/webpack/runtime/define property getters","webpack://vue-amap/webpack/runtime/hasOwnProperty shorthand","webpack://vue-amap/webpack/runtime/make namespace object","webpack://vue-amap/webpack/runtime/publicPath","webpack://vue-amap/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-amap/./src/CONSTANTS/index.js","webpack://vue-amap/./src/loader/index.js","webpack://vue-amap/./src/Components/VAMap.vue?40d1","webpack://vue-amap/./src/utils/listenerProxy.js","webpack://vue-amap/./src/utils/typeOf.js","webpack://vue-amap/./src/utils/watchProps.js","webpack://vue-amap/src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMap.vue?3795","webpack://vue-amap/./src/Components/VAMap.vue?f500","webpack://vue-amap/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://vue-amap/./src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?b7cd","webpack://vue-amap/src/Components/VAMapMarker.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?7c70","webpack://vue-amap/./src/Components/VAMapMarker.vue","webpack://vue-amap/src/Components/VAMapMassMarks.vue","webpack://vue-amap/./src/Components/VAMapMassMarks.vue?0a8c","webpack://vue-amap/./src/Components/VAMapMassMarks.vue","webpack://vue-amap/src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPolygon.vue?6a80","webpack://vue-amap/./src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?5bdf","webpack://vue-amap/src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?c63c","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?a26b","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?4cf9","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/index.js","webpack://vue-amap/./src/config/index.js","webpack://vue-amap/./src/index.js","webpack://vue-amap/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-amap\"] = factory();\n\telse\n\t\troot[\"vue-amap\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-amap-place-search-input input[data-v-57fd4556]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".amap-sug-result{display:none}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"1bf2dbec\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"02632d94\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"32ab85ac\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","const CONSTANTS = {\r\n\tSDK_URL: 'https://webapi.amap.com/maps',\r\n\tCALLBACK_NAME: 'aMapInitCallback'\r\n}\r\n\r\nexport default CONSTANTS\r\n","import CONSTANTS from '../CONSTANTS'\r\n\r\nclass Loader {\r\n\tget key() {\r\n\t\treturn this._key\r\n\t}\r\n\tget version() {\r\n\t\treturn this._version\r\n\t}\r\n\tget uiVersion() {\r\n\t\treturn this._uiVersion\r\n\t}\r\n\tget plugins() {\r\n\t\treturn this._plugins\r\n\t}\r\n\tget sdkUrl() {\r\n\t\treturn `${CONSTANTS.SDK_URL}?v=${this.version}&key=${\r\n\t\t\tthis.key\r\n\t\t}&callback=${this.callbackName}&plugin=${this.plugins.join(',')}`\r\n\t}\r\n\tget uiSdkUrl() {\r\n\t\treturn `https://webapi.amap.com/ui/${this.uiVersion}/main-async.js`\r\n\t}\r\n\tget callbackName() {\r\n\t\treturn this._callbackName\r\n\t}\r\n\tget isSdkLoaded() {\r\n\t\treturn this._isSdkLoaded\r\n\t}\r\n\tget isSdkLoading() {\r\n\t\treturn this._isSdkLoading\r\n\t}\r\n\tget callbacks() {\r\n\t\treturn this._callbacks\r\n\t}\r\n\tconstructor() {\r\n\t\tthis._loadCallback = null\r\n\t\tthis._callbackName = `${CONSTANTS.CALLBACK_NAME}_${Date.now()}`\r\n\t\tthis._isSdkLoaded = false\r\n\t\tthis._isSdkLoading = false\r\n\t\tthis._callbacks = []\r\n\t}\r\n\t_loadScript(url, callback) {\r\n\t\tlet el_script = document.createElement('script')\r\n\t\tel_script.charset = 'utf-8'\r\n\t\tel_script.src = url\r\n\r\n\t\tif (el_script.addEventListener) {\r\n\t\t\tel_script.addEventListener('load', () => {\r\n\t\t\t\tcallback && callback()\r\n\t\t\t})\r\n\t\t} else if (el_script.attachEvent) {\r\n\t\t\tel_script.attachEvent('onreadystatechange', () => {\r\n\t\t\t\tlet target = window.event.srcElement\r\n\t\t\t\tif (target.readyState == 'loaded') {\r\n\t\t\t\t\tcallback && callback()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t\tdocument.head.appendChild(el_script)\r\n\t}\r\n\tconfig({ key = '', version = '', uiVersion = '', plugins } = {}) {\r\n\t\tthis._key = key\r\n\t\tthis._version = version\r\n\t\tthis._uiVersion = uiVersion\r\n\t\tthis._plugins = plugins\r\n\t}\r\n\tasync load() {\r\n\t\tif (this.isSdkLoaded) return window.AMap\r\n\r\n\t\tif (this.isSdkLoading)\r\n\t\t\treturn new Promise(resolve => {\r\n\t\t\t\tthis.callbacks.push(() => {\r\n\t\t\t\t\tresolve(window.AMap)\r\n\t\t\t\t})\r\n\t\t\t})\r\n\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tthis._isSdkLoading = true\r\n\r\n\t\t\twindow[this.callbackName] = () => {\r\n\t\t\t\tthis._isSdkLoaded = true\r\n\t\t\t\tthis._isSdkLoading = false\r\n\r\n\t\t\t\tif (this.uiVersion) {\r\n\t\t\t\t\twindow.initAMapUI()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdelete window[this.callbackName]\r\n\t\t\t\tresolve(window.AMap)\r\n\r\n\t\t\t\tthis.callbacks.forEach(callback => {\r\n\t\t\t\t\tcallback && callback()\r\n\t\t\t\t})\r\n\r\n\t\t\t\tthis._callbacks = []\r\n\t\t\t}\r\n\t\t\tif (this.uiVersion) {\r\n\t\t\t\tthis._loadScript(this.uiSdkUrl, () => {\r\n\t\t\t\t\tthis._loadScript(this.sdkUrl)\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis._loadScript(this.sdkUrl)\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n}\r\n\r\nexport default new Loader()\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-ctn\"},[_c('div',{ref:\"aMap\",staticClass:\"v-amap\"}),(_vm.AMap && _vm.aMap)?[_vm._t(\"default\",null,{\"AMap\":_vm.AMap,\"aMap\":_vm.aMap})]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","const listenerProxy = (aMapObject, vm) => {\r\n\tconst listeners = vm.$listeners\r\n\r\n\tfor (const event in listeners) {\r\n\t\tif (Object.hasOwnProperty.call(listeners, event)) {\r\n\t\t\tconst handler = listeners[event]\r\n\r\n\t\t\taMapObject.on(event, (...args) => {\r\n\t\t\t\thandler(...args)\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport default listenerProxy\r\n","const typeOf = function (param) {\r\n\treturn Object.prototype.toString.call(param).match(/\\s+(\\w+)/)[1]\r\n}\r\n\r\nexport default typeOf\r\n","import typeOf from './typeOf'\r\n\r\nconst watchProps = (aMapObject, vm, props) => {\r\n\tprops\r\n\t\t.map(prop => {\r\n\t\t\tif (typeOf(prop) === 'String')\r\n\t\t\t\treturn { prop, watchProp: `$attrs.${prop}` }\r\n\t\t\tif (typeOf(prop) === 'Array')\r\n\t\t\t\treturn {\r\n\t\t\t\t\tprop: prop[0],\r\n\t\t\t\t\twatchProp: `$attrs.${prop[0]}`,\r\n\t\t\t\t\thandler: prop[1]\r\n\t\t\t\t}\r\n\t\t})\r\n\t\t.forEach(({ watchProp, prop, handler }) => {\r\n\t\t\tvm.$watch(watchProp, (newValue, oldValue) => {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (handler) {\r\n\t\t\t\t\t\thandler.call(vm, aMapObject, newValue, oldValue)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\taMapObject[\r\n\t\t\t\t\t\t\t`set${prop.replace(prop[0], prop[0].toUpperCase())}`\r\n\t\t\t\t\t\t](newValue)\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (error) {\r\n\t\t\t\t\t// eslint-disable-next-line\r\n\t\t\t\t\tconsole.error('Props watch error:', error)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t})\r\n}\r\n\r\nexport default watchProps\r\n","<template lang=\"pug\">\r\n.v-amap-ctn\r\n\t.v-amap(ref=\"aMap\")\r\n\ttemplate(v-if=\"AMap && aMap\")\r\n\t\tslot(:AMap=\"AMap\" :aMap=\"aMap\")\r\n</template>\r\n\r\n<script>\r\nimport AMapManager, { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'zoom',\r\n\t[\r\n\t\t'center',\r\n\t\tfunction (aMap, newValue, oldValue) {\r\n\t\t\tif (newValue === oldValue) return\r\n\t\t\taMap.setCenter(newValue)\r\n\t\t}\r\n\t],\r\n\t'labelzIndex',\r\n\t'lang',\r\n\t'defaultCursor',\r\n\t'features',\r\n\t'mapStyle',\r\n\t'pitch'\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMap',\r\n\tprovide() {\r\n\t\treturn {\r\n\t\t\tgetMap: this.getMap\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tAMap: null,\r\n\t\t\taMap: null\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis._createMap()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._destroyMap()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMap() {\r\n\t\t\tthis.AMap = await AMapLoader.load()\r\n\r\n\t\t\tconst options = Object.assign(\r\n\t\t\t\t{},\r\n\t\t\t\tAMapManager.globalMapOptions,\r\n\t\t\t\tthis.$attrs\r\n\t\t\t)\r\n\r\n\t\t\tthis.aMap = new this.AMap.Map(this.$refs.aMap, options)\r\n\r\n\t\t\tlistenerProxy(this.aMap, this)\r\n\t\t\twatchProps(this.aMap, this, watchedProps)\r\n\r\n\t\t\tthis.$emit('init', this.aMap, this.AMap)\r\n\t\t},\r\n\t\t_destroyMap() {\r\n\t\t\tthis.aMap && this.aMap.destroy()\r\n\t\t},\r\n\t\tgetMap() {\r\n\t\t\treturn this.aMap\r\n\t\t}\r\n\t\t// addMarker(marker) {\r\n\t\t// \tthis.aMap && this.aMap.add(marker)\r\n\t\t// },\r\n\t\t// removeMarker(marker) {\r\n\t\t// \tthis.aMap && this.aMap.remove(marker)\r\n\t\t// }\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped>\r\n.v-amap-ctn\r\n\t// overflow hidden\r\n\theight 100%\r\n\t.v-amap\r\n\t\theight 100%\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VAMap.vue?vue&type=template&id=0a8871e0&scoped=true&lang=pug\"\nimport script from \"./VAMap.vue?vue&type=script&lang=js\"\nexport * from \"./VAMap.vue?vue&type=script&lang=js\"\nimport style0 from \"./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0a8871e0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-marker\"},[_c('div',{ref:\"content\",staticClass:\"v-amap-marker-content\"},[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template lang=\"pug\">\r\n.v-amap-marker\r\n\t.v-amap-marker-content(ref=\"content\")\r\n\t\tslot\r\n</template>\r\n<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'position',\r\n\t'anchor',\r\n\t'offset',\r\n\t'icon',\r\n\t'draggable',\r\n\t'cursor',\r\n\t[\r\n\t\t'visible',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t\tvalue && this._updateMarkerContent()\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'zIndex',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setzIndex(value)\r\n\t\t}\r\n\t],\r\n\t'angle',\r\n\t'animation',\r\n\t'shadow',\r\n\t'title',\r\n\t'clickable',\r\n\t'shape',\r\n\t'extData',\r\n\t'label'\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapMarker',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null,\r\n\t\t\tisFixedMarkerSize: false\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\thasSlot() {\r\n\t\t\treturn !!this.$scopedSlots.default\r\n\t\t}\r\n\t},\r\n\tasync mounted() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tasync updated() {\r\n\t\tif (!this.marker) return\r\n\t\tif (this.isFixedMarkerSize) return\r\n\r\n\t\tthis.isFixedMarkerSize = true\r\n\r\n\t\tawait this.$nextTick()\r\n\r\n\t\tthis._updateMarkerContent()\r\n\t},\r\n\tbeforeDestroy() {\r\n\t\tthis._resetMarkerContent()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tcontent: this._getMarkerContent()\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.Marker(options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_getMarkerContent() {\r\n\t\t\treturn this.hasSlot ? this.$refs.content : null\r\n\t\t},\r\n\t\t_updateMarkerContent() {\r\n\t\t\tif (!this.hasSlot) return\r\n\r\n\t\t\tthis.marker.setContent(this._getMarkerContent())\r\n\t\t},\r\n\t\t_resetMarkerContent() {\r\n\t\t\tif (!this.hasSlot) return\r\n\r\n\t\t\tthis.$el.appendChild(this.$refs.content)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.getMap()?.add(this.marker)\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.getMap()?.remove(this.marker)\r\n\t\t}\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped></style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./VAMapMarker.vue?vue&type=template&id=6931c341&scoped=true&lang=pug\"\nimport script from \"./VAMapMarker.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapMarker.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6931c341\",\n null\n \n)\n\nexport default component.exports","<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t// 新增属性\r\n\t[\r\n\t\t'data',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setData(value)\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'styleObject',\r\n\t\t(marker, value) => {\r\n\t\t\tmarker.setStyle(value)\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'visible',\r\n\t\t(marker, value) => {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t}\r\n\t]\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapMassMarks',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tasync created() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tstyle: this.$attrs.styleObject || {}\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.MassMarks(this.$attrs.data || [], options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.marker.setMap(this.getMap())\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.marker.clear()\r\n\t\t\tthis.marker.setMap()\r\n\t\t}\r\n\t},\r\n\trender() {\r\n\t\treturn null\r\n\t}\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMassMarks.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMassMarks.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./VAMapMassMarks.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapMassMarks.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/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","<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'path',\r\n\t// 新增属性\r\n\t[\r\n\t\t'visible',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'zIndex',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ zIndex: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'bubble',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ bubble: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'cursor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ cursor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeColor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeColor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeOpacity',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeOpacity: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeWeight',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeWeight: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeStyle',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeStyle: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeDasharray',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeDasharray: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'fillColor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ fillColor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'fillOpacity',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ fillOpacity: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'draggable',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ draggable: value })\r\n\t\t}\r\n\t]\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapPolygon',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tasync created() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tmap: undefined\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.Polygon(options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.getMap()?.add(this.marker)\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.getMap()?.remove(this.marker)\r\n\t\t}\r\n\t},\r\n\trender() {\r\n\t\treturn null\r\n\t}\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPolygon.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPolygon.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./VAMapPolygon.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapPolygon.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/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 render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-place-search-input\"},[_c('input',{ref:\"input\",attrs:{\"placeholder\":_vm.placeholder}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template lang=\"pug\">\r\n.v-amap-place-search-input\r\n\tinput(:placeholder=\"placeholder\" ref=\"input\")\r\n</template>\r\n\r\n<script>\r\nimport { AMapLoader } from '@'\r\n\r\nexport default {\r\n\tname: 'VAMapPlaceSearchInput',\r\n\tprops: {\r\n\t\tplaceholder: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tcustomEnable: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tAMap: null,\r\n\t\t\tautocompleteListener: null,\r\n\t\t\tplaceSearchListener: null\r\n\t\t}\r\n\t},\r\n\tasync mounted() {\r\n\t\tthis.AMap = await AMapLoader.load()\r\n\t\tthis.addListener()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis.removeListener()\r\n\t},\r\n\tmethods: {\r\n\t\tasync addListener() {\r\n\t\t\tconst autocomplete = new this.AMap.Autocomplete({\r\n\t\t\t\t\tinput: this.$refs.input\r\n\t\t\t\t}),\r\n\t\t\t\tplaceSearch = new this.AMap.PlaceSearch({})\r\n\r\n\t\t\tthis.autocompleteListener = this.AMap.event.addListener(\r\n\t\t\t\tautocomplete,\r\n\t\t\t\t'select',\r\n\t\t\t\tevent => {\r\n\t\t\t\t\tplaceSearch.search(event.poi.name)\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t\t\tthis.placeSearchListener = this.AMap.event.addListener(\r\n\t\t\t\tplaceSearch,\r\n\t\t\t\t'complete',\r\n\t\t\t\tevent => {\r\n\t\t\t\t\tvar position = null\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent &&\r\n\t\t\t\t\t\tevent.poiList &&\r\n\t\t\t\t\t\tevent.poiList.pois &&\r\n\t\t\t\t\t\tevent.poiList.pois.length\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tposition = [\r\n\t\t\t\t\t\t\tevent.poiList.pois[0].location.lng,\r\n\t\t\t\t\t\t\tevent.poiList.pois[0].location.lat\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$emit('change', position)\r\n\r\n\t\t\t\t\tif (!position && !this.customEnable) {\r\n\t\t\t\t\t\tthis.$refs.input.value = ''\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t},\r\n\t\tremoveListener() {\r\n\t\t\tthis.AMap.event.removeListener(this.autocompleteListener)\r\n\t\t\tthis.AMap.event.removeListener(this.placeSearchListener)\r\n\t\t}\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped>\r\n.v-amap-place-search-input\r\n\tinput\r\n\t\tdisplay inline-block\r\n\t\tbox-sizing border-box\r\n\t\tpadding 0 15px\r\n\t\twidth 100%\r\n\t\theight 40px\r\n\t\toutline 0\r\n\t\tborder 1px solid #DCDFE6\r\n\t\tborder-radius 4px\r\n\t\tbackground-color #FFF\r\n\t\tbackground-image none\r\n\t\tcolor #606266\r\n\t\tfont-size inherit\r\n\t\tline-height 40px\r\n\t\ttransition border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n\t\t-webkit-appearance none\r\n</style>\r\n\r\n<style lang=\"stylus\">\r\n.amap-sug-result\r\n\tdisplay none\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus\"","import { render, staticRenderFns } from \"./VAMapPlaceSearchInput.vue?vue&type=template&id=57fd4556&scoped=true&lang=pug\"\nimport script from \"./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true\"\nimport style1 from \"./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"57fd4556\",\n null\n \n)\n\nexport default component.exports","import VAMap from './VAMap'\r\nimport VAMapMarker from './VAMapMarker'\r\nimport VAMapMassMarks from './VAMapMassMarks'\r\nimport VAMapPolygon from './VAMapPolygon'\r\nimport VAMapPlaceSearchInput from './VAMapPlaceSearchInput'\r\n\r\nexport default [\r\n\tVAMap,\r\n\tVAMapMarker,\r\n\tVAMapMassMarks,\r\n\tVAMapPolygon,\r\n\tVAMapPlaceSearchInput\r\n]\r\n","export const version = '1.1.0'\r\n\r\nexport default {\r\n\tversion\r\n}\r\n","import AMapLoader from './loader'\r\nimport Components from './Components'\r\nimport { version } from './config'\r\n\r\nlet globalMapOptions = {}\r\n\r\nclass AMapManager {\r\n\tstatic get version() {\r\n\t\treturn version\r\n\t}\r\n\tstatic get AMapLoader() {\r\n\t\treturn AMapLoader\r\n\t}\r\n\tstatic get globalMapOptions() {\r\n\t\treturn globalMapOptions\r\n\t}\r\n\tstatic install(Vue) {\r\n\t\tComponents.forEach(Component => {\r\n\t\t\tVue.component(Component.name, Component)\r\n\t\t})\r\n\t}\r\n\tstatic async initAMap({ globalMapOptions: options = {}, ...args }) {\r\n\t\tglobalMapOptions = Object.assign({}, options)\r\n\r\n\t\tAMapLoader.config({ ...args })\r\n\r\n\t\treturn await AMapLoader.load()\r\n\t}\r\n\tconstructor() {}\r\n}\r\n\r\nexport { AMapLoader }\r\n\r\nexport default AMapManager\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"vue-amap.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;ACVA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,4GAA4G,YAAY;AACxH;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,4FAA4F,qBAAqB,sBAAsB,eAAe,WAAW,YAAY,UAAU,yBAAyB,kBAAkB,sBAAsB,sBAAsB,cAAc,kBAAkB,iBAAiB,2DAA2D,wBAAwB;AAClZ;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;;;;;;ACPvC;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,2DAA2D,aAAa;AACxE;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpFa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAif;AACvgB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAigB;AACvhB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,GAAqf;AAC3gB;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;;UC7NA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB;AACA;AACA;AACA;AACA;AACA,kDAAe,SAAS;;;ACLY;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,aAAS,SAAS,KAAK,aAAa;AAChD;AACA,GAAG,YAAY,kBAAkB,UAAU,uBAAuB;AAClE;AACA;AACA,uCAAuC,eAAe;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,aAAS,eAAe,GAAG,WAAW;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,UAAU,kDAAkD,IAAI;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,2CAAe,YAAY;;;AC5G3B,+BAA+B,6BAA6B,iBAAiB,yBAAyB,YAAY,gCAAgC,iDAAiD,gCAAgC;AACnO;AACA;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,wDAAe,aAAa;;;ACd5B;AACA;AACA;AACA;AACA,iDAAe,MAAM;;;ACJQ;AAC7B;AACA;AACA;AACA;AACA,OAAO,YAAM;AACb,aAAa,2BAA2B,KAAK;AAC7C,OAAO,YAAM;AACb;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA,GAAG;AACH,cAAc,0BAA0B;AACxC;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,aAAa,6CAA6C;AAC1D;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA,qDAAe,UAAU;;;;ACxBkB;AACQ;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,MAAU;;AAE/B;AACA;AACA,IAAI,KAAW;AACf;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC7E+H,CAAC,4EAAe,4BAAG,EAAC;;;;;;AEApJ;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FwG;AAChD;AACL;AACnD,CAAgG;;;AAGhG;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,uCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,0CAAe;;ACnBf,IAAI,oEAAM,qBAAqB,6BAA6B,iBAAiB,4BAA4B,YAAY,kDAAkD;AACvK;AACA,IAAI,6EAAe;;;;;ACIW;AACqB;;AAEnD,MAAM,+CAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,+CAAY;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;;AC7GqI,CAAC,kFAAe,kCAAG,EAAC;;ACA5C;AAChD;AACL;;;AAGzD;AACA,CAAmG;AACnG,IAAI,qBAAS,GAAG,kBAAU;AAC1B,EAAE,6CAAM;AACR,EAAE,oEAAM;AACR,EAAE,6EAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,gDAAe,qBAAS;;;ACjBM;AACqB;;AAEnD,MAAM,kDAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0EAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,kDAAY;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;ACpEwI,CAAC,qFAAe,qCAAG,EAAC;;ACA7J,IAAI,qBAAM,EAAE,8BAAe;AAC3B,CAAiE;AACL;;;AAG5D;AACA,CAAmG;AACnG,IAAI,wBAAS,GAAG,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,qBAAM;AACR,EAAE,8BAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAe,wBAAS;;;ACjBM;AACqB;;AAEnD,MAAM,gDAAY;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wEAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,MAAU;AAChC;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,gDAAY;AAC7C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC1HsI,CAAC,mFAAe,mCAAG,EAAC;;ACA3J,IAAI,mBAAM,EAAE,4BAAe;AAC3B,CAA+D;AACL;;;AAG1D;AACA,CAAmG;AACnG,IAAI,sBAAS,GAAG,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,mBAAM;AACR,EAAE,4BAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,iDAAe,sBAAS;;AClBxB,IAAI,8EAAM,qBAAqB,6BAA6B,iBAAiB,wCAAwC,cAAc,aAAa,8EAA8E,qBAAqB,8BAA8B,WAAW,yBAAyB,KAAK,wBAAwB,wBAAwB,0BAA0B,kCAAkC,qCAAqC;AAC3c;AACA,IAAI,uFAAe;;;;;ACSW;;AAE9B,iFAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;ACrG+I,CAAC,4FAAe,4CAAG,EAAC;;;;;;;;;;AGA5C;AAChD;AACL;AACnE,CAAgH;AACZ;;;AAGpG;AACmG;AACnG,IAAI,+BAAS,GAAG,kBAAU;AAC1B,EAAE,uDAAM;AACR,EAAE,8EAAM;AACR,EAAE,uFAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAe,+BAAS;;ACpBG;AACY;AACM;AACJ;AACkB;AAC3D;AACA,+CAAe;AACf,CAAC,KAAK;AACN,CAAC,WAAW;AACZ,CAAC,cAAc;AACf,CAAC,YAAY;AACb,CAAC,qBAAqB;AACtB,CAAC;;;;;ACZsC;AACvC;AACO,gBAAgB,0BAAmB;;;ACFT;AACI;AACH;AAClC;AACA;AACA;AACA;AACA;AACA,SAAS,OAAO;AAChB;AACA;AACA,SAAS,MAAU;AACnB;AACA;AACA;AACA;AACA;AACA,EAAE,UAAU;AACZ;AACA,GAAG;AACH;AACA,yBAAyB,8BAA8B,WAAW;AAClE,qCAAqC;AACrC;AACA,EAAE,MAAU,UAAU,SAAS;AAC/B;AACA,eAAe,MAAU;AACzB;AACA;AACA;AACA;AACqB;AACrB;AACA,0CAAe,WAAW;;;ACjCF;AACA;AACxB,8CAAe,KAAG;AACI","sources":["webpack://vue-amap/webpack/universalModuleDefinition","webpack://vue-amap/./src/Components/VAMap.vue?7c17","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?a16f","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?feea","webpack://vue-amap/./node_modules/css-loader/dist/runtime/api.js","webpack://vue-amap/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://vue-amap/./src/Components/VAMap.vue?8f34","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?6177","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?7815","webpack://vue-amap/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://vue-amap/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://vue-amap/webpack/bootstrap","webpack://vue-amap/webpack/runtime/compat get default export","webpack://vue-amap/webpack/runtime/define property getters","webpack://vue-amap/webpack/runtime/hasOwnProperty shorthand","webpack://vue-amap/webpack/runtime/make namespace object","webpack://vue-amap/webpack/runtime/publicPath","webpack://vue-amap/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-amap/./src/CONSTANTS/index.js","webpack://vue-amap/./src/loader/index.js","webpack://vue-amap/./src/Components/VAMap.vue?40d1","webpack://vue-amap/./src/utils/listenerProxy.js","webpack://vue-amap/./src/utils/typeOf.js","webpack://vue-amap/./src/utils/watchProps.js","webpack://vue-amap/src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMap.vue?3795","webpack://vue-amap/./src/Components/VAMap.vue?f500","webpack://vue-amap/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://vue-amap/./src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?b7cd","webpack://vue-amap/src/Components/VAMapMarker.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?7c70","webpack://vue-amap/./src/Components/VAMapMarker.vue","webpack://vue-amap/src/Components/VAMapMassMarks.vue","webpack://vue-amap/./src/Components/VAMapMassMarks.vue?0a8c","webpack://vue-amap/./src/Components/VAMapMassMarks.vue","webpack://vue-amap/src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPolygon.vue?6a80","webpack://vue-amap/./src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?771b","webpack://vue-amap/src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?c63c","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?d505","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?a958","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/index.js","webpack://vue-amap/./src/config/index.js","webpack://vue-amap/./src/index.js","webpack://vue-amap/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-amap\"] = factory();\n\telse\n\t\troot[\"vue-amap\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".v-amap-place-search-input input[data-v-ee372b00]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".amap-sug-result{display:none}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"1bf2dbec\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=ee372b00&prod&lang=stylus&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4e9f3830\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=ee372b00&prod&lang=stylus\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"353a7b5e\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","const CONSTANTS = {\r\n\tSDK_URL: 'https://webapi.amap.com/maps',\r\n\tCALLBACK_NAME: 'aMapInitCallback'\r\n}\r\n\r\nexport default CONSTANTS\r\n","import CONSTANTS from '../CONSTANTS'\r\n\r\nclass Loader {\r\n\tget key() {\r\n\t\treturn this._key\r\n\t}\r\n\tget version() {\r\n\t\treturn this._version\r\n\t}\r\n\tget uiVersion() {\r\n\t\treturn this._uiVersion\r\n\t}\r\n\tget plugins() {\r\n\t\treturn this._plugins\r\n\t}\r\n\tget sdkUrl() {\r\n\t\treturn `${CONSTANTS.SDK_URL}?v=${this.version}&key=${\r\n\t\t\tthis.key\r\n\t\t}&callback=${this.callbackName}&plugin=${this.plugins.join(',')}`\r\n\t}\r\n\tget uiSdkUrl() {\r\n\t\treturn `https://webapi.amap.com/ui/${this.uiVersion}/main-async.js`\r\n\t}\r\n\tget callbackName() {\r\n\t\treturn this._callbackName\r\n\t}\r\n\tget isSdkLoaded() {\r\n\t\treturn this._isSdkLoaded\r\n\t}\r\n\tget isSdkLoading() {\r\n\t\treturn this._isSdkLoading\r\n\t}\r\n\tget callbacks() {\r\n\t\treturn this._callbacks\r\n\t}\r\n\tconstructor() {\r\n\t\tthis._loadCallback = null\r\n\t\tthis._callbackName = `${CONSTANTS.CALLBACK_NAME}_${Date.now()}`\r\n\t\tthis._isSdkLoaded = false\r\n\t\tthis._isSdkLoading = false\r\n\t\tthis._callbacks = []\r\n\t}\r\n\t_loadScript(url, callback) {\r\n\t\tlet el_script = document.createElement('script')\r\n\t\tel_script.charset = 'utf-8'\r\n\t\tel_script.src = url\r\n\r\n\t\tif (el_script.addEventListener) {\r\n\t\t\tel_script.addEventListener('load', () => {\r\n\t\t\t\tcallback && callback()\r\n\t\t\t})\r\n\t\t} else if (el_script.attachEvent) {\r\n\t\t\tel_script.attachEvent('onreadystatechange', () => {\r\n\t\t\t\tlet target = window.event.srcElement\r\n\t\t\t\tif (target.readyState == 'loaded') {\r\n\t\t\t\t\tcallback && callback()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t\tdocument.head.appendChild(el_script)\r\n\t}\r\n\tconfig({ key = '', version = '', uiVersion = '', plugins } = {}) {\r\n\t\tthis._key = key\r\n\t\tthis._version = version\r\n\t\tthis._uiVersion = uiVersion\r\n\t\tthis._plugins = plugins\r\n\t}\r\n\tasync load() {\r\n\t\tif (this.isSdkLoaded) return window.AMap\r\n\r\n\t\tif (this.isSdkLoading)\r\n\t\t\treturn new Promise(resolve => {\r\n\t\t\t\tthis.callbacks.push(() => {\r\n\t\t\t\t\tresolve(window.AMap)\r\n\t\t\t\t})\r\n\t\t\t})\r\n\r\n\t\treturn new Promise(resolve => {\r\n\t\t\tthis._isSdkLoading = true\r\n\r\n\t\t\twindow[this.callbackName] = () => {\r\n\t\t\t\tthis._isSdkLoaded = true\r\n\t\t\t\tthis._isSdkLoading = false\r\n\r\n\t\t\t\tif (this.uiVersion) {\r\n\t\t\t\t\twindow.initAMapUI()\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdelete window[this.callbackName]\r\n\t\t\t\tresolve(window.AMap)\r\n\r\n\t\t\t\tthis.callbacks.forEach(callback => {\r\n\t\t\t\t\tcallback && callback()\r\n\t\t\t\t})\r\n\r\n\t\t\t\tthis._callbacks = []\r\n\t\t\t}\r\n\t\t\tif (this.uiVersion) {\r\n\t\t\t\tthis._loadScript(this.uiSdkUrl, () => {\r\n\t\t\t\t\tthis._loadScript(this.sdkUrl)\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis._loadScript(this.sdkUrl)\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n}\r\n\r\nexport default new Loader()\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-ctn\"},[_c('div',{ref:\"aMap\",staticClass:\"v-amap\"}),(_vm.AMap && _vm.aMap)?[_vm._t(\"default\",null,{\"AMap\":_vm.AMap,\"aMap\":_vm.aMap})]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","const listenerProxy = (aMapObject, vm) => {\r\n\tconst listeners = vm.$listeners\r\n\r\n\tfor (const event in listeners) {\r\n\t\tif (Object.hasOwnProperty.call(listeners, event)) {\r\n\t\t\tconst handler = listeners[event]\r\n\r\n\t\t\taMapObject.on(event, (...args) => {\r\n\t\t\t\thandler(...args)\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n}\r\n\r\nexport default listenerProxy\r\n","const typeOf = function (param) {\r\n\treturn Object.prototype.toString.call(param).match(/\\s+(\\w+)/)[1]\r\n}\r\n\r\nexport default typeOf\r\n","import typeOf from './typeOf'\r\n\r\nconst watchProps = (aMapObject, vm, props) => {\r\n\tprops\r\n\t\t.map(prop => {\r\n\t\t\tif (typeOf(prop) === 'String')\r\n\t\t\t\treturn { prop, watchProp: `$attrs.${prop}` }\r\n\t\t\tif (typeOf(prop) === 'Array')\r\n\t\t\t\treturn {\r\n\t\t\t\t\tprop: prop[0],\r\n\t\t\t\t\twatchProp: `$attrs.${prop[0]}`,\r\n\t\t\t\t\thandler: prop[1]\r\n\t\t\t\t}\r\n\t\t})\r\n\t\t.forEach(({ watchProp, prop, handler }) => {\r\n\t\t\tvm.$watch(watchProp, (newValue, oldValue) => {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (handler) {\r\n\t\t\t\t\t\thandler.call(vm, aMapObject, newValue, oldValue)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\taMapObject[\r\n\t\t\t\t\t\t\t`set${prop.replace(prop[0], prop[0].toUpperCase())}`\r\n\t\t\t\t\t\t](newValue)\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (error) {\r\n\t\t\t\t\t// eslint-disable-next-line\r\n\t\t\t\t\tconsole.error('Props watch error:', error)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t})\r\n}\r\n\r\nexport default watchProps\r\n","<template lang=\"pug\">\r\n.v-amap-ctn\r\n\t.v-amap(ref=\"aMap\")\r\n\ttemplate(v-if=\"AMap && aMap\")\r\n\t\tslot(:AMap=\"AMap\" :aMap=\"aMap\")\r\n</template>\r\n\r\n<script>\r\nimport AMapManager, { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'zoom',\r\n\t[\r\n\t\t'center',\r\n\t\tfunction (aMap, newValue, oldValue) {\r\n\t\t\tif (newValue === oldValue) return\r\n\t\t\taMap.setCenter(newValue)\r\n\t\t}\r\n\t],\r\n\t'labelzIndex',\r\n\t'lang',\r\n\t'defaultCursor',\r\n\t'features',\r\n\t'mapStyle',\r\n\t'pitch'\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMap',\r\n\tprovide() {\r\n\t\treturn {\r\n\t\t\tgetMap: this.getMap\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tAMap: null,\r\n\t\t\taMap: null\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis._createMap()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._destroyMap()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMap() {\r\n\t\t\tthis.AMap = await AMapLoader.load()\r\n\r\n\t\t\tconst options = Object.assign(\r\n\t\t\t\t{},\r\n\t\t\t\tAMapManager.globalMapOptions,\r\n\t\t\t\tthis.$attrs\r\n\t\t\t)\r\n\r\n\t\t\tthis.aMap = new this.AMap.Map(this.$refs.aMap, options)\r\n\r\n\t\t\tlistenerProxy(this.aMap, this)\r\n\t\t\twatchProps(this.aMap, this, watchedProps)\r\n\r\n\t\t\tthis.$emit('init', this.aMap, this.AMap)\r\n\t\t},\r\n\t\t_destroyMap() {\r\n\t\t\tthis.aMap && this.aMap.destroy()\r\n\t\t},\r\n\t\tgetMap() {\r\n\t\t\treturn this.aMap\r\n\t\t}\r\n\t\t// addMarker(marker) {\r\n\t\t// \tthis.aMap && this.aMap.add(marker)\r\n\t\t// },\r\n\t\t// removeMarker(marker) {\r\n\t\t// \tthis.aMap && this.aMap.remove(marker)\r\n\t\t// }\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped>\r\n.v-amap-ctn\r\n\t// overflow hidden\r\n\theight 100%\r\n\t.v-amap\r\n\t\theight 100%\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./VAMap.vue?vue&type=template&id=0a8871e0&scoped=true&lang=pug\"\nimport script from \"./VAMap.vue?vue&type=script&lang=js\"\nexport * from \"./VAMap.vue?vue&type=script&lang=js\"\nimport style0 from \"./VAMap.vue?vue&type=style&index=0&id=0a8871e0&prod&lang=stylus&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0a8871e0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-marker\"},[_c('div',{ref:\"content\",staticClass:\"v-amap-marker-content\"},[_vm._t(\"default\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template lang=\"pug\">\r\n.v-amap-marker\r\n\t.v-amap-marker-content(ref=\"content\")\r\n\t\tslot\r\n</template>\r\n<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'position',\r\n\t'anchor',\r\n\t'offset',\r\n\t'icon',\r\n\t'draggable',\r\n\t'cursor',\r\n\t[\r\n\t\t'visible',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t\tvalue && this._updateMarkerContent()\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'zIndex',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setzIndex(value)\r\n\t\t}\r\n\t],\r\n\t'angle',\r\n\t'animation',\r\n\t'shadow',\r\n\t'title',\r\n\t'clickable',\r\n\t'shape',\r\n\t'extData',\r\n\t'label'\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapMarker',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null,\r\n\t\t\tisFixedMarkerSize: false\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\thasSlot() {\r\n\t\t\treturn !!this.$scopedSlots.default\r\n\t\t}\r\n\t},\r\n\tasync mounted() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tasync updated() {\r\n\t\tif (!this.marker) return\r\n\t\tif (this.isFixedMarkerSize) return\r\n\r\n\t\tthis.isFixedMarkerSize = true\r\n\r\n\t\tawait this.$nextTick()\r\n\r\n\t\tthis._updateMarkerContent()\r\n\t},\r\n\tbeforeDestroy() {\r\n\t\tthis._resetMarkerContent()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tcontent: this._getMarkerContent()\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.Marker(options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_getMarkerContent() {\r\n\t\t\treturn this.hasSlot ? this.$refs.content : null\r\n\t\t},\r\n\t\t_updateMarkerContent() {\r\n\t\t\tif (!this.hasSlot) return\r\n\r\n\t\t\tthis.marker.setContent(this._getMarkerContent())\r\n\t\t},\r\n\t\t_resetMarkerContent() {\r\n\t\t\tif (!this.hasSlot) return\r\n\r\n\t\t\tthis.$el.appendChild(this.$refs.content)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.getMap()?.add(this.marker)\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.getMap()?.remove(this.marker)\r\n\t\t}\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped></style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./VAMapMarker.vue?vue&type=template&id=6931c341&scoped=true&lang=pug\"\nimport script from \"./VAMapMarker.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapMarker.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6931c341\",\n null\n \n)\n\nexport default component.exports","<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t// 新增属性\r\n\t[\r\n\t\t'data',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setData(value)\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'styleObject',\r\n\t\t(marker, value) => {\r\n\t\t\tmarker.setStyle(value)\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'visible',\r\n\t\t(marker, value) => {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t}\r\n\t]\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapMassMarks',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tasync created() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tstyle: this.$attrs.styleObject || {}\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.MassMarks(this.$attrs.data || [], options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.marker.setMap(this.getMap())\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.marker.clear()\r\n\t\t\tthis.marker.setMap()\r\n\t\t}\r\n\t},\r\n\trender() {\r\n\t\treturn null\r\n\t}\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMassMarks.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapMassMarks.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./VAMapMassMarks.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapMassMarks.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/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","<script>\r\nimport { AMapLoader } from '@'\r\nimport { listenerProxy, watchProps } from '@/utils'\r\n\r\nconst watchedProps = [\r\n\t'path',\r\n\t// 新增属性\r\n\t[\r\n\t\t'visible',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker[value ? 'show' : 'hide']()\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'zIndex',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ zIndex: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'bubble',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ bubble: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'cursor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ cursor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeColor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeColor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeOpacity',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeOpacity: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeWeight',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeWeight: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeStyle',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeStyle: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'strokeDasharray',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ strokeDasharray: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'fillColor',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ fillColor: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'fillOpacity',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ fillOpacity: value })\r\n\t\t}\r\n\t],\r\n\t[\r\n\t\t'draggable',\r\n\t\tfunction (marker, value) {\r\n\t\t\tmarker.setOptions({ draggable: value })\r\n\t\t}\r\n\t]\r\n]\r\n\r\nexport default {\r\n\tname: 'VAMapPolygon',\r\n\tinject: ['getMap'],\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tasync created() {\r\n\t\tawait this._createMarker()\r\n\t\tthis._addMarker()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis._removeMarker()\r\n\t},\r\n\tmethods: {\r\n\t\tasync _createMarker() {\r\n\t\t\tconst AMap = await AMapLoader.load(),\r\n\t\t\t\toptions = Object.assign({}, this.$attrs, {\r\n\t\t\t\t\tmap: undefined\r\n\t\t\t\t})\r\n\r\n\t\t\tthis.marker = new AMap.Polygon(options)\r\n\r\n\t\t\tlistenerProxy(this.marker, this)\r\n\t\t\twatchProps(this.marker, this, watchedProps)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tthis.getMap()?.add(this.marker)\r\n\r\n\t\t\tthis.$emit('init', this.marker)\r\n\t\t},\r\n\t\t_removeMarker() {\r\n\t\t\tif (!this.marker) return\r\n\r\n\t\t\tthis.getMap()?.remove(this.marker)\r\n\t\t}\r\n\t},\r\n\trender() {\r\n\t\treturn null\r\n\t}\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPolygon.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPolygon.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./VAMapPolygon.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapPolygon.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/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 render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"v-amap-place-search-input\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputValue),expression:\"inputValue\"}],ref:\"input\",attrs:{\"placeholder\":_vm.placeholder},domProps:{\"value\":(_vm.inputValue)},on:{\"blur\":function($event){return _vm.handleBlur()},\"input\":function($event){if($event.target.composing)return;_vm.inputValue=$event.target.value}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template lang=\"pug\">\r\n.v-amap-place-search-input\r\n\tinput(\r\n\t\t:placeholder=\"placeholder\"\r\n\t\t@blur=\"handleBlur()\"\r\n\t\tref=\"input\"\r\n\t\tv-model=\"inputValue\"\r\n\t)\r\n</template>\r\n\r\n<script>\r\nimport { AMapLoader } from '@'\r\n\r\nexport default {\r\n\tname: 'VAMapPlaceSearchInput',\r\n\tprops: {\r\n\t\tplaceholder: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\tcustomEnable: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tAMap: null,\r\n\t\t\tinputValue: '',\r\n\t\t\tplaceName: '',\r\n\t\t\tautocompleteListener: null,\r\n\t\t\tplaceSearchListener: null\r\n\t\t}\r\n\t},\r\n\tasync mounted() {\r\n\t\tthis.AMap = await AMapLoader.load()\r\n\t\tthis.addListener()\r\n\t},\r\n\tdestroyed() {\r\n\t\tthis.removeListener()\r\n\t},\r\n\tmethods: {\r\n\t\tasync addListener() {\r\n\t\t\tconst autocomplete = new this.AMap.Autocomplete({\r\n\t\t\t\t\tinput: this.$refs.input\r\n\t\t\t\t}),\r\n\t\t\t\tplaceSearch = new this.AMap.PlaceSearch({})\r\n\r\n\t\t\tthis.autocompleteListener = this.AMap.event.addListener(\r\n\t\t\t\tautocomplete,\r\n\t\t\t\t'select',\r\n\t\t\t\tevent => {\r\n\t\t\t\t\tthis.placeName = event.poi.name\r\n\t\t\t\t\tplaceSearch.search(event.poi.name)\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t\t\tthis.placeSearchListener = this.AMap.event.addListener(\r\n\t\t\t\tplaceSearch,\r\n\t\t\t\t'complete',\r\n\t\t\t\tevent => {\r\n\t\t\t\t\tvar position = null\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tevent &&\r\n\t\t\t\t\t\tevent.poiList &&\r\n\t\t\t\t\t\tevent.poiList.pois &&\r\n\t\t\t\t\t\tevent.poiList.pois.length\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tposition = [\r\n\t\t\t\t\t\t\tevent.poiList.pois[0].location.lng,\r\n\t\t\t\t\t\t\tevent.poiList.pois[0].location.lat\r\n\t\t\t\t\t\t]\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!position && !this.customEnable) {\r\n\t\t\t\t\t\tthis.inputValue = ''\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tthis.$emit('change', position, this.inputValue)\r\n\t\t\t\t}\r\n\t\t\t)\r\n\t\t},\r\n\t\tremoveListener() {\r\n\t\t\tthis.AMap.event.removeListener(this.autocompleteListener)\r\n\t\t\tthis.AMap.event.removeListener(this.placeSearchListener)\r\n\t\t},\r\n\t\tclear() {\r\n\t\t\tthis.inputValue = ''\r\n\t\t\tthis.placeName = ''\r\n\t\t\tthis.$emit('change', null, this.inputValue)\r\n\t\t},\r\n\t\thandleBlur() {\r\n\t\t\tif (this.customEnable) return\r\n\t\t\tif (this.inputValue !== this.placeName) {\r\n\t\t\t\tthis.clear()\r\n\t\t\t}\r\n\t\t},\r\n\t\thandleInput(event) {\r\n\t\t\tthis.inputValue = event.target.value\r\n\t\t}\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"stylus\" scoped>\r\n.v-amap-place-search-input\r\n\tinput\r\n\t\tdisplay inline-block\r\n\t\tbox-sizing border-box\r\n\t\tpadding 0 15px\r\n\t\twidth 100%\r\n\t\theight 40px\r\n\t\toutline 0\r\n\t\tborder 1px solid #DCDFE6\r\n\t\tborder-radius 4px\r\n\t\tbackground-color #FFF\r\n\t\tbackground-image none\r\n\t\tcolor #606266\r\n\t\tfont-size inherit\r\n\t\tline-height 40px\r\n\t\ttransition border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n\t\t-webkit-appearance none\r\n</style>\r\n\r\n<style lang=\"stylus\">\r\n.amap-sug-result\r\n\tdisplay none\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=ee372b00&prod&lang=stylus&scoped=true\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-76.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-76.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-76.use[3]!../../node_modules/stylus-loader/index.js??clonedRuleSet-76.use[4]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=ee372b00&prod&lang=stylus\"","import { render, staticRenderFns } from \"./VAMapPlaceSearchInput.vue?vue&type=template&id=ee372b00&scoped=true&lang=pug\"\nimport script from \"./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"\nexport * from \"./VAMapPlaceSearchInput.vue?vue&type=script&lang=js\"\nimport style0 from \"./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=ee372b00&prod&lang=stylus&scoped=true\"\nimport style1 from \"./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=ee372b00&prod&lang=stylus\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ee372b00\",\n null\n \n)\n\nexport default component.exports","import VAMap from './VAMap'\r\nimport VAMapMarker from './VAMapMarker'\r\nimport VAMapMassMarks from './VAMapMassMarks'\r\nimport VAMapPolygon from './VAMapPolygon'\r\nimport VAMapPlaceSearchInput from './VAMapPlaceSearchInput'\r\n\r\nexport default [\r\n\tVAMap,\r\n\tVAMapMarker,\r\n\tVAMapMassMarks,\r\n\tVAMapPolygon,\r\n\tVAMapPlaceSearchInput\r\n]\r\n","import packageJson from '/package.json'\r\n\r\nexport const version = packageJson.version\r\n","import AMapLoader from './loader'\r\nimport Components from './Components'\r\nimport { version } from './config'\r\n\r\nlet globalMapOptions = {}\r\n\r\nclass AMapManager {\r\n\tstatic get version() {\r\n\t\treturn version\r\n\t}\r\n\tstatic get AMapLoader() {\r\n\t\treturn AMapLoader\r\n\t}\r\n\tstatic get globalMapOptions() {\r\n\t\treturn globalMapOptions\r\n\t}\r\n\tstatic install(Vue) {\r\n\t\tComponents.forEach(Component => {\r\n\t\t\tVue.component(Component.name, Component)\r\n\t\t})\r\n\t}\r\n\tstatic async initAMap({ globalMapOptions: options = {}, ...args }) {\r\n\t\tglobalMapOptions = Object.assign({}, options)\r\n\r\n\t\tAMapLoader.config({ ...args })\r\n\r\n\t\treturn await AMapLoader.load()\r\n\t}\r\n\tconstructor() {}\r\n}\r\n\r\nexport { AMapLoader }\r\n\r\nexport default AMapManager\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-amap"]=e():t["vue-amap"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={610:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),s=a(645),i=a.n(s),o=i()(n());o.push([t.id,".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}",""]),e["default"]=o},495:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),s=a(645),i=a.n(s),o=i()(n());o.push([t.id,".v-amap-place-search-input input[data-v-57fd4556]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}",""]),e["default"]=o},203:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),s=a(645),i=a.n(s),o=i()(n());o.push([t.id,".amap-sug-result{display:none}",""]),e["default"]=o},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a="",r="undefined"!==typeof e[5];return e[4]&&(a+="@supports (".concat(e[4],") {")),e[2]&&(a+="@media ".concat(e[2]," {")),r&&(a+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),a+=t(e),r&&(a+="}"),e[2]&&(a+="}"),e[4]&&(a+="}"),a})).join("")},e.i=function(t,a,r,n,s){"string"===typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(i[c]=!0)}for(var l=0;l<t.length;l++){var d=[].concat(t[l]);r&&i[d[0]]||("undefined"!==typeof s&&("undefined"===typeof d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),a&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=a):d[2]=a),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),e.push(d))}},e}},81:function(t){"use strict";t.exports=function(t){return t[1]}},19:function(t,e,a){var r=a(610);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("5d5368c0",r,!0,{sourceMap:!1,shadowMode:!1})},834:function(t,e,a){var r=a(495);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("f53b6a68",r,!0,{sourceMap:!1,shadowMode:!1})},601:function(t,e,a){var r=a(203);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("3f849842",r,!0,{sourceMap:!1,shadowMode:!1})},402:function(t,e,a){"use strict";function r(t,e){for(var a=[],r={},n=0;n<e.length;n++){var s=e[n],i=s[0],o=s[1],c=s[2],l=s[3],d={id:t+":"+n,css:o,media:c,sourceMap:l};r[i]?r[i].parts.push(d):a.push(r[i]={id:i,parts:[d]})}return a}a.d(e,{Z:function(){return f}});var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s={},i=n&&(document.head||document.getElementsByTagName("head")[0]),o=null,c=0,l=!1,d=function(){},u=null,p="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,a,n){l=a,u=n||{};var i=r(t,e);return m(i),function(e){for(var a=[],n=0;n<i.length;n++){var o=i[n],c=s[o.id];c.refs--,a.push(c)}e?(i=r(t,e),m(i)):i=[];for(n=0;n<a.length;n++){c=a[n];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete s[c.id]}}}}function m(t){for(var e=0;e<t.length;e++){var a=t[e],r=s[a.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](a.parts[n]);for(;n<a.parts.length;n++)r.parts.push(g(a.parts[n]));r.parts.length>a.parts.length&&(r.parts.length=a.parts.length)}else{var i=[];for(n=0;n<a.parts.length;n++)i.push(g(a.parts[n]));s[a.id]={id:a.id,refs:1,parts:i}}}}function v(){var t=document.createElement("style");return t.type="text/css",i.appendChild(t),t}function g(t){var e,a,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return d;r.parentNode.removeChild(r)}if(h){var n=c++;r=o||(o=v()),e=M.bind(null,r,n,!1),a=M.bind(null,r,n,!0)}else r=v(),e=_.bind(null,r),a=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else a()}}var k=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function M(t,e,a,r){var n=a?"":r.css;if(t.styleSheet)t.styleSheet.cssText=k(e,n);else{var s=document.createTextNode(n),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(s,i[e]):t.appendChild(s)}}function _(t,e){var a=e.css,r=e.media,n=e.sourceMap;if(r&&t.setAttribute("media",r),u.ssrId&&t.setAttribute(p,e.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}}},e={};function a(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,a),s.exports}!function(){a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,{a:e}),e}}(),function(){a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){a.p=""}();var r={};return function(){"use strict";if(a.d(r,{default:function(){return tt}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(a.p=e[1])}const n={SDK_URL:"https://webapi.amap.com/maps",CALLBACK_NAME:"aMapInitCallback"};var s=n;class i{get key(){return this._key}get version(){return this._version}get uiVersion(){return this._uiVersion}get plugins(){return this._plugins}get sdkUrl(){return`${s.SDK_URL}?v=${this.version}&key=${this.key}&callback=${this.callbackName}&plugin=${this.plugins.join(",")}`}get uiSdkUrl(){return`https://webapi.amap.com/ui/${this.uiVersion}/main-async.js`}get callbackName(){return this._callbackName}get isSdkLoaded(){return this._isSdkLoaded}get isSdkLoading(){return this._isSdkLoading}get callbacks(){return this._callbacks}constructor(){this._loadCallback=null,this._callbackName=`${s.CALLBACK_NAME}_${Date.now()}`,this._isSdkLoaded=!1,this._isSdkLoading=!1,this._callbacks=[]}_loadScript(t,e){let a=document.createElement("script");a.charset="utf-8",a.src=t,a.addEventListener?a.addEventListener("load",(()=>{e&&e()})):a.attachEvent&&a.attachEvent("onreadystatechange",(()=>{let t=window.event.srcElement;"loaded"==t.readyState&&e&&e()})),document.head.appendChild(a)}config({key:t="",version:e="",uiVersion:a="",plugins:r}={}){this._key=t,this._version=e,this._uiVersion=a,this._plugins=r}async load(){return this.isSdkLoaded?window.AMap:this.isSdkLoading?new Promise((t=>{this.callbacks.push((()=>{t(window.AMap)}))})):new Promise((t=>{this._isSdkLoading=!0,window[this.callbackName]=()=>{this._isSdkLoaded=!0,this._isSdkLoading=!1,this.uiVersion&&window.initAMapUI(),delete window[this.callbackName],t(window.AMap),this.callbacks.forEach((t=>{t&&t()})),this._callbacks=[]},this.uiVersion?this._loadScript(this.uiSdkUrl,(()=>{this._loadScript(this.sdkUrl)})):this._loadScript(this.sdkUrl)}))}}var o=new i,c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-ctn"},[e("div",{ref:"aMap",staticClass:"v-amap"}),t.AMap&&t.aMap?[t._t("default",null,{AMap:t.AMap,aMap:t.aMap})]:t._e()],2)},l=[];const d=(t,e)=>{const a=e.$listeners;for(const r in a)if(Object.hasOwnProperty.call(a,r)){const e=a[r];t.on(r,((...t)=>{e(...t)}))}};var u=d;const p=function(t){return Object.prototype.toString.call(t).match(/\s+(\w+)/)[1]};var h=p;const f=(t,e,a)=>{a.map((t=>"String"===h(t)?{prop:t,watchProp:`$attrs.${t}`}:"Array"===h(t)?{prop:t[0],watchProp:`$attrs.${t[0]}`,handler:t[1]}:void 0)).forEach((({watchProp:a,prop:r,handler:n})=>{e.$watch(a,((a,s)=>{try{n?n.call(e,t,a,s):t[`set${r.replace(r[0],r[0].toUpperCase())}`](a)}catch(i){console.error("Props watch error:",i)}}))}))};var m=f;const v=["zoom",["center",function(t,e,a){e!==a&&t.setCenter(e)}],"labelzIndex","lang","defaultCursor","features","mapStyle","pitch"];var g={name:"VAMap",provide(){return{getMap:this.getMap}},data(){return{AMap:null,aMap:null}},created(){this._createMap()},destroyed(){this._destroyMap()},methods:{async _createMap(){this.AMap=await o.load();const t=Object.assign({},Y.globalMapOptions,this.$attrs);this.aMap=new this.AMap.Map(this.$refs.aMap,t),u(this.aMap,this),m(this.aMap,this,v),this.$emit("init",this.aMap,this.AMap)},_destroyMap(){this.aMap&&this.aMap.destroy()},getMap(){return this.aMap}}},k=g;a(19);function M(t,e,a,r,n,s,i,o){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),r&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):n&&(c=o?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}var _=M(k,c,l,!1,null,"0a8871e0",null),y=_.exports,b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-marker"},[e("div",{ref:"content",staticClass:"v-amap-marker-content"},[t._t("default")],2)])},w=[];const S=["position","anchor","offset","icon","draggable","cursor",["visible",function(t,e){t[e?"show":"hide"](),e&&this._updateMarkerContent()}],["zIndex",function(t,e){t.setzIndex(e)}],"angle","animation","shadow","title","clickable","shape","extData","label"];var C={name:"VAMapMarker",inject:["getMap"],data(){return{marker:null,isFixedMarkerSize:!1}},computed:{hasSlot(){return!!this.$scopedSlots.default}},async mounted(){await this._createMarker(),this._addMarker()},async updated(){this.marker&&(this.isFixedMarkerSize||(this.isFixedMarkerSize=!0,await this.$nextTick(),this._updateMarkerContent()))},beforeDestroy(){this._resetMarkerContent()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{content:this._getMarkerContent()});this.marker=new t.Marker(e),u(this.marker,this),m(this.marker,this,S)},_getMarkerContent(){return this.hasSlot?this.$refs.content:null},_updateMarkerContent(){this.hasSlot&&this.marker.setContent(this._getMarkerContent())},_resetMarkerContent(){this.hasSlot&&this.$el.appendChild(this.$refs.content)},_addMarker(){this.getMap()?.add(this.marker),this.$emit("init",this.marker)},_removeMarker(){this.marker&&this.getMap()?.remove(this.marker)}}},x=C,L=M(x,b,w,!1,null,"6931c341",null),$=L.exports;const A=[["data",function(t,e){t.setData(e)}],["styleObject",(t,e)=>{t.setStyle(e)}],["visible",(t,e)=>{t[e?"show":"hide"]()}]];var O,j,E={name:"VAMapMassMarks",inject:["getMap"],data(){return{marker:null}},async created(){await this._createMarker(),this._addMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{style:this.$attrs.styleObject||{}});this.marker=new t.MassMarks(this.$attrs.data||[],e),u(this.marker,this),m(this.marker,this,A)},_addMarker(){this.marker.setMap(this.getMap()),this.$emit("init",this.marker)},_removeMarker(){this.marker&&(this.marker.clear(),this.marker.setMap())}},render(){return null}},N=E,U=M(N,O,j,!1,null,null,null),P=U.exports;const V=["path",["visible",function(t,e){t[e?"show":"hide"]()}],["zIndex",function(t,e){t.setOptions({zIndex:e})}],["bubble",function(t,e){t.setOptions({bubble:e})}],["cursor",function(t,e){t.setOptions({cursor:e})}],["strokeColor",function(t,e){t.setOptions({strokeColor:e})}],["strokeOpacity",function(t,e){t.setOptions({strokeOpacity:e})}],["strokeWeight",function(t,e){t.setOptions({strokeWeight:e})}],["strokeStyle",function(t,e){t.setOptions({strokeStyle:e})}],["strokeDasharray",function(t,e){t.setOptions({strokeDasharray:e})}],["fillColor",function(t,e){t.setOptions({fillColor:e})}],["fillOpacity",function(t,e){t.setOptions({fillOpacity:e})}],["draggable",function(t,e){t.setOptions({draggable:e})}]];var z,T,I={name:"VAMapPolygon",inject:["getMap"],data(){return{marker:null}},async created(){await this._createMarker(),this._addMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{map:void 0});this.marker=new t.Polygon(e),u(this.marker,this),m(this.marker,this,V)},_addMarker(){this.getMap()?.add(this.marker),this.$emit("init",this.marker)},_removeMarker(){this.marker&&this.getMap()?.remove(this.marker)}},render(){return null}},D=I,R=M(D,z,T,!1,null,null,null),B=R.exports,F=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-place-search-input"},[e("input",{ref:"input",attrs:{placeholder:t.placeholder}})])},K=[],Z={name:"VAMapPlaceSearchInput",props:{placeholder:{type:String,default:""},customEnable:{type:Boolean,default:!0}},data(){return{AMap:null,autocompleteListener:null,placeSearchListener:null}},async mounted(){this.AMap=await o.load(),this.addListener()},destroyed(){this.removeListener()},methods:{async addListener(){const t=new this.AMap.Autocomplete({input:this.$refs.input}),e=new this.AMap.PlaceSearch({});this.autocompleteListener=this.AMap.event.addListener(t,"select",(t=>{e.search(t.poi.name)})),this.placeSearchListener=this.AMap.event.addListener(e,"complete",(t=>{var e=null;t&&t.poiList&&t.poiList.pois&&t.poiList.pois.length&&(e=[t.poiList.pois[0].location.lng,t.poiList.pois[0].location.lat]),this.$emit("change",e),e||this.customEnable||(this.$refs.input.value="")}))},removeListener(){this.AMap.event.removeListener(this.autocompleteListener),this.AMap.event.removeListener(this.placeSearchListener)}}},W=Z,G=(a(834),a(601),M(W,F,K,!1,null,"57fd4556",null)),X=G.exports,q=[y,$,P,B,X];const J="1.1.0";let H={};class Q{static get version(){return J}static get AMapLoader(){return o}static get globalMapOptions(){return H}static install(t){q.forEach((e=>{t.component(e.name,e)}))}static async initAMap({globalMapOptions:t={},...e}){return H=Object.assign({},t),o.config({...e}),await o.load()}constructor(){}}var Y=Q,tt=Y}(),r=r["default"],r}()}));
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-amap"]=e():t["vue-amap"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={610:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),i=a(645),s=a.n(i),o=s()(n());o.push([t.id,".v-amap-ctn[data-v-0a8871e0],.v-amap-ctn .v-amap[data-v-0a8871e0]{height:100%}",""]),e["default"]=o},874:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),i=a(645),s=a.n(i),o=s()(n());o.push([t.id,".v-amap-place-search-input input[data-v-ee372b00]{display:inline-block;box-sizing:border-box;padding:0 15px;width:100%;height:40px;outline:0;border:1px solid #dcdfe6;border-radius:4px;background-color:#fff;background-image:none;color:#606266;font-size:inherit;line-height:40px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);-webkit-appearance:none}",""]),e["default"]=o},216:function(t,e,a){"use strict";a.r(e);var r=a(81),n=a.n(r),i=a(645),s=a.n(i),o=s()(n());o.push([t.id,".amap-sug-result{display:none}",""]),e["default"]=o},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a="",r="undefined"!==typeof e[5];return e[4]&&(a+="@supports (".concat(e[4],") {")),e[2]&&(a+="@media ".concat(e[2]," {")),r&&(a+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),a+=t(e),r&&(a+="}"),e[2]&&(a+="}"),e[4]&&(a+="}"),a})).join("")},e.i=function(t,a,r,n,i){"string"===typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(s[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);r&&s[u[0]]||("undefined"!==typeof i&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),a&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=a):u[2]=a),n&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=n):u[4]="".concat(n)),e.push(u))}},e}},81:function(t){"use strict";t.exports=function(t){return t[1]}},19:function(t,e,a){var r=a(610);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("5d5368c0",r,!0,{sourceMap:!1,shadowMode:!1})},54:function(t,e,a){var r=a(874);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("5f44457e",r,!0,{sourceMap:!1,shadowMode:!1})},52:function(t,e,a){var r=a(216);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var n=a(402).Z;n("42138df4",r,!0,{sourceMap:!1,shadowMode:!1})},402:function(t,e,a){"use strict";function r(t,e){for(var a=[],r={},n=0;n<e.length;n++){var i=e[n],s=i[0],o=i[1],c=i[2],l=i[3],u={id:t+":"+n,css:o,media:c,sourceMap:l};r[s]?r[s].parts.push(u):a.push(r[s]={id:s,parts:[u]})}return a}a.d(e,{Z:function(){return f}});var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=n&&(document.head||document.getElementsByTagName("head")[0]),o=null,c=0,l=!1,u=function(){},d=null,p="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,a,n){l=a,d=n||{};var s=r(t,e);return m(s),function(e){for(var a=[],n=0;n<s.length;n++){var o=s[n],c=i[o.id];c.refs--,a.push(c)}e?(s=r(t,e),m(s)):s=[];for(n=0;n<a.length;n++){c=a[n];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete i[c.id]}}}}function m(t){for(var e=0;e<t.length;e++){var a=t[e],r=i[a.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](a.parts[n]);for(;n<a.parts.length;n++)r.parts.push(g(a.parts[n]));r.parts.length>a.parts.length&&(r.parts.length=a.parts.length)}else{var s=[];for(n=0;n<a.parts.length;n++)s.push(g(a.parts[n]));i[a.id]={id:a.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,a,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(h){var n=c++;r=o||(o=v()),e=M.bind(null,r,n,!1),a=M.bind(null,r,n,!0)}else r=v(),e=_.bind(null,r),a=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else a()}}var k=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function M(t,e,a,r){var n=a?"":r.css;if(t.styleSheet)t.styleSheet.cssText=k(e,n);else{var i=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}function _(t,e){var a=e.css,r=e.media,n=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute(p,e.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}}},e={};function a(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,a),i.exports}!function(){a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,{a:e}),e}}(),function(){a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){a.p=""}();var r={};return function(){"use strict";if(a.d(r,{default:function(){return et}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(a.p=e[1])}const n={SDK_URL:"https://webapi.amap.com/maps",CALLBACK_NAME:"aMapInitCallback"};var i=n;class s{get key(){return this._key}get version(){return this._version}get uiVersion(){return this._uiVersion}get plugins(){return this._plugins}get sdkUrl(){return`${i.SDK_URL}?v=${this.version}&key=${this.key}&callback=${this.callbackName}&plugin=${this.plugins.join(",")}`}get uiSdkUrl(){return`https://webapi.amap.com/ui/${this.uiVersion}/main-async.js`}get callbackName(){return this._callbackName}get isSdkLoaded(){return this._isSdkLoaded}get isSdkLoading(){return this._isSdkLoading}get callbacks(){return this._callbacks}constructor(){this._loadCallback=null,this._callbackName=`${i.CALLBACK_NAME}_${Date.now()}`,this._isSdkLoaded=!1,this._isSdkLoading=!1,this._callbacks=[]}_loadScript(t,e){let a=document.createElement("script");a.charset="utf-8",a.src=t,a.addEventListener?a.addEventListener("load",(()=>{e&&e()})):a.attachEvent&&a.attachEvent("onreadystatechange",(()=>{let t=window.event.srcElement;"loaded"==t.readyState&&e&&e()})),document.head.appendChild(a)}config({key:t="",version:e="",uiVersion:a="",plugins:r}={}){this._key=t,this._version=e,this._uiVersion=a,this._plugins=r}async load(){return this.isSdkLoaded?window.AMap:this.isSdkLoading?new Promise((t=>{this.callbacks.push((()=>{t(window.AMap)}))})):new Promise((t=>{this._isSdkLoading=!0,window[this.callbackName]=()=>{this._isSdkLoaded=!0,this._isSdkLoading=!1,this.uiVersion&&window.initAMapUI(),delete window[this.callbackName],t(window.AMap),this.callbacks.forEach((t=>{t&&t()})),this._callbacks=[]},this.uiVersion?this._loadScript(this.uiSdkUrl,(()=>{this._loadScript(this.sdkUrl)})):this._loadScript(this.sdkUrl)}))}}var o=new s,c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-ctn"},[e("div",{ref:"aMap",staticClass:"v-amap"}),t.AMap&&t.aMap?[t._t("default",null,{AMap:t.AMap,aMap:t.aMap})]:t._e()],2)},l=[];const u=(t,e)=>{const a=e.$listeners;for(const r in a)if(Object.hasOwnProperty.call(a,r)){const e=a[r];t.on(r,((...t)=>{e(...t)}))}};var d=u;const p=function(t){return Object.prototype.toString.call(t).match(/\s+(\w+)/)[1]};var h=p;const f=(t,e,a)=>{a.map((t=>"String"===h(t)?{prop:t,watchProp:`$attrs.${t}`}:"Array"===h(t)?{prop:t[0],watchProp:`$attrs.${t[0]}`,handler:t[1]}:void 0)).forEach((({watchProp:a,prop:r,handler:n})=>{e.$watch(a,((a,i)=>{try{n?n.call(e,t,a,i):t[`set${r.replace(r[0],r[0].toUpperCase())}`](a)}catch(s){console.error("Props watch error:",s)}}))}))};var m=f;const v=["zoom",["center",function(t,e,a){e!==a&&t.setCenter(e)}],"labelzIndex","lang","defaultCursor","features","mapStyle","pitch"];var g={name:"VAMap",provide(){return{getMap:this.getMap}},data(){return{AMap:null,aMap:null}},created(){this._createMap()},destroyed(){this._destroyMap()},methods:{async _createMap(){this.AMap=await o.load();const t=Object.assign({},tt.globalMapOptions,this.$attrs);this.aMap=new this.AMap.Map(this.$refs.aMap,t),d(this.aMap,this),m(this.aMap,this,v),this.$emit("init",this.aMap,this.AMap)},_destroyMap(){this.aMap&&this.aMap.destroy()},getMap(){return this.aMap}}},k=g;a(19);function M(t,e,a,r,n,i,s,o){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):n&&(c=o?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}var _=M(k,c,l,!1,null,"0a8871e0",null),y=_.exports,b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-marker"},[e("div",{ref:"content",staticClass:"v-amap-marker-content"},[t._t("default")],2)])},w=[];const S=["position","anchor","offset","icon","draggable","cursor",["visible",function(t,e){t[e?"show":"hide"](),e&&this._updateMarkerContent()}],["zIndex",function(t,e){t.setzIndex(e)}],"angle","animation","shadow","title","clickable","shape","extData","label"];var C={name:"VAMapMarker",inject:["getMap"],data(){return{marker:null,isFixedMarkerSize:!1}},computed:{hasSlot(){return!!this.$scopedSlots.default}},async mounted(){await this._createMarker(),this._addMarker()},async updated(){this.marker&&(this.isFixedMarkerSize||(this.isFixedMarkerSize=!0,await this.$nextTick(),this._updateMarkerContent()))},beforeDestroy(){this._resetMarkerContent()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{content:this._getMarkerContent()});this.marker=new t.Marker(e),d(this.marker,this),m(this.marker,this,S)},_getMarkerContent(){return this.hasSlot?this.$refs.content:null},_updateMarkerContent(){this.hasSlot&&this.marker.setContent(this._getMarkerContent())},_resetMarkerContent(){this.hasSlot&&this.$el.appendChild(this.$refs.content)},_addMarker(){this.getMap()?.add(this.marker),this.$emit("init",this.marker)},_removeMarker(){this.marker&&this.getMap()?.remove(this.marker)}}},x=C,L=M(x,b,w,!1,null,"6931c341",null),$=L.exports;const A=[["data",function(t,e){t.setData(e)}],["styleObject",(t,e)=>{t.setStyle(e)}],["visible",(t,e)=>{t[e?"show":"hide"]()}]];var O,j,V={name:"VAMapMassMarks",inject:["getMap"],data(){return{marker:null}},async created(){await this._createMarker(),this._addMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{style:this.$attrs.styleObject||{}});this.marker=new t.MassMarks(this.$attrs.data||[],e),d(this.marker,this),m(this.marker,this,A)},_addMarker(){this.marker.setMap(this.getMap()),this.$emit("init",this.marker)},_removeMarker(){this.marker&&(this.marker.clear(),this.marker.setMap())}},render(){return null}},E=V,N=M(E,O,j,!1,null,null,null),U=N.exports;const P=["path",["visible",function(t,e){t[e?"show":"hide"]()}],["zIndex",function(t,e){t.setOptions({zIndex:e})}],["bubble",function(t,e){t.setOptions({bubble:e})}],["cursor",function(t,e){t.setOptions({cursor:e})}],["strokeColor",function(t,e){t.setOptions({strokeColor:e})}],["strokeOpacity",function(t,e){t.setOptions({strokeOpacity:e})}],["strokeWeight",function(t,e){t.setOptions({strokeWeight:e})}],["strokeStyle",function(t,e){t.setOptions({strokeStyle:e})}],["strokeDasharray",function(t,e){t.setOptions({strokeDasharray:e})}],["fillColor",function(t,e){t.setOptions({fillColor:e})}],["fillOpacity",function(t,e){t.setOptions({fillOpacity:e})}],["draggable",function(t,e){t.setOptions({draggable:e})}]];var z,I,T={name:"VAMapPolygon",inject:["getMap"],data(){return{marker:null}},async created(){await this._createMarker(),this._addMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const t=await o.load(),e=Object.assign({},this.$attrs,{map:void 0});this.marker=new t.Polygon(e),d(this.marker,this),m(this.marker,this,P)},_addMarker(){this.getMap()?.add(this.marker),this.$emit("init",this.marker)},_removeMarker(){this.marker&&this.getMap()?.remove(this.marker)}},render(){return null}},B=T,D=M(B,z,I,!1,null,null,null),R=D.exports,F=function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-amap-place-search-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{placeholder:t.placeholder},domProps:{value:t.inputValue},on:{blur:function(e){return t.handleBlur()},input:function(e){e.target.composing||(t.inputValue=e.target.value)}}})])},K=[],Z={name:"VAMapPlaceSearchInput",props:{placeholder:{type:String,default:""},customEnable:{type:Boolean,default:!0}},data(){return{AMap:null,inputValue:"",placeName:"",autocompleteListener:null,placeSearchListener:null}},async mounted(){this.AMap=await o.load(),this.addListener()},destroyed(){this.removeListener()},methods:{async addListener(){const t=new this.AMap.Autocomplete({input:this.$refs.input}),e=new this.AMap.PlaceSearch({});this.autocompleteListener=this.AMap.event.addListener(t,"select",(t=>{this.placeName=t.poi.name,e.search(t.poi.name)})),this.placeSearchListener=this.AMap.event.addListener(e,"complete",(t=>{var e=null;t&&t.poiList&&t.poiList.pois&&t.poiList.pois.length&&(e=[t.poiList.pois[0].location.lng,t.poiList.pois[0].location.lat]),e||this.customEnable||(this.inputValue=""),this.$emit("change",e,this.inputValue)}))},removeListener(){this.AMap.event.removeListener(this.autocompleteListener),this.AMap.event.removeListener(this.placeSearchListener)},clear(){this.inputValue="",this.placeName="",this.$emit("change",null,this.inputValue)},handleBlur(){this.customEnable||this.inputValue!==this.placeName&&this.clear()},handleInput(t){this.inputValue=t.target.value}}},W=Z,G=(a(54),a(52),M(W,F,K,!1,null,"ee372b00",null)),X=G.exports,q=[y,$,U,R,X],J={i8:"1.1.2"};const H=J.i8;let Q={};class Y{static get version(){return H}static get AMapLoader(){return o}static get globalMapOptions(){return Q}static install(t){q.forEach((e=>{t.component(e.name,e)}))}static async initAMap({globalMapOptions:t={},...e}){return Q=Object.assign({},t),o.config({...e}),await o.load()}constructor(){}}var tt=Y,et=tt}(),r=r["default"],r}()}));
2
2
  //# sourceMappingURL=vue-amap.umd.min.js.map