@styzy/vue-amap 1.0.1 → 1.1.0

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://vue-amap/webpack/universalModuleDefinition","webpack://vue-amap/webpack/bootstrap","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?5095","webpack://vue-amap/./node_modules/css-loader/dist/runtime/api.js","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?05ee","webpack://vue-amap/./src/Components/VAMap.vue?34a1","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/./src/Components/VAMap.vue?8b29","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?31b0","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?1285","webpack://vue-amap/./src/Components/VAMap.vue?d63e","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?8c95","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?645a","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/utils/index.js","webpack://vue-amap/src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMap.vue?f26e","webpack://vue-amap/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://vue-amap/./src/Components/VAMap.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?e40c","webpack://vue-amap/src/Components/VAMapMarker.vue","webpack://vue-amap/./src/Components/VAMapMarker.vue?01bc","webpack://vue-amap/./src/Components/VAMapMarker.vue","webpack://vue-amap/src/Components/VAMapMassMarks.vue","webpack://vue-amap/./src/Components/VAMapMassMarks.vue?89cb","webpack://vue-amap/./src/Components/VAMapMassMarks.vue","webpack://vue-amap/src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPolygon.vue?75e2","webpack://vue-amap/./src/Components/VAMapPolygon.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?76b5","webpack://vue-amap/src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?06ed","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue","webpack://vue-amap/./src/Components/index.js","webpack://vue-amap/./src/index.js","webpack://vue-amap/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js","webpack://vue-amap/./src/Components/VAMapPlaceSearchInput.vue?125d"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA;AACA,kCAAkC,mBAAO,CAAC,MAAmD;AAC7F;AACA;AACA,cAAc,QAAS,oBAAoB,aAAa;AACxD;AACA;;;;;;;;;ACNa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;;AAEhB;AACA;AACA;;AAEA;AACA,4CAA4C,qBAAqB;AACjE;;AAEA;AACA,KAAK;AACL,IAAI;AACJ;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,qBAAqB;AACzC;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,8BAA8B;;AAE9B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,CAAC;;;AAGD;AACA;AACA;AACA,qDAAqD,cAAc;AACnE;AACA,C;;;;;;;AC7FA;;AAEA;AACA,cAAc,mBAAO,CAAC,MAAogB;AAC1hB;AACA,4CAA4C,QAAS;AACrD;AACA;AACA,UAAU,mBAAO,CAAC,MAA6D;AAC/E,6CAA6C,qCAAqC,E;;;;;;;ACTlF;;AAEA;AACA,cAAc,mBAAO,CAAC,MAAggB;AACthB;AACA,4CAA4C,QAAS;AACrD;AACA;AACA,UAAU,mBAAO,CAAC,MAA6D;AAC/E,6CAA6C,qCAAqC,E;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,wBAAwB;AAC3D,KAAK;AACL;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;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,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,KAAK;AACL;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA,uBAAuB,2BAA2B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA,YAAY,uBAAuB;AACnC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,qBAAqB,uBAAuB;AAC5C;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7NA;AACA,kCAAkC,mBAAO,CAAC,MAAmD;AAC7F;AACA;AACA,cAAc,QAAS,qEAAqE,YAAY;AACxG;AACA;;;;;;;;;ACNA;AAAA;AAAA;;;;;;;;ACAA;AACA,kCAAkC,mBAAO,CAAC,MAAmD;AAC7F;AACA;AACA,cAAc,QAAS,qDAAqD,qBAAqB,sBAAsB,eAAe,WAAW,YAAY,UAAU,yBAAyB,kBAAkB,sBAAsB,sBAAsB,cAAc,kBAAkB,iBAAiB,2DAA2D,wBAAwB;AAClY;AACA;;;;;;;;;ACNA;AAAA;AAAA;;;;;;;;ACAA;;AAEA;AACA,cAAc,mBAAO,CAAC,MAAghB;AACtiB;AACA,4CAA4C,QAAS;AACrD;AACA;AACA,UAAU,mBAAO,CAAC,MAA6D;AAC/E,6CAA6C,qCAAqC,E;;;;;;;;;;;;;;;ACTlF;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACe,sDAAI;;;ACrBnB;AACA;AACA;AACA;;AAEe,2DAAS;;;ACLY;;AAEpC,MAAM,aAAM;AACZ;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;;AAEA;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,SAAS,kDAAkD,KAAK;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;;AAEJ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA,GAAG;AACH;AACA;;AAEe,+CAAI,aAAM,EAAE;;;AC5G3B,+BAA+B,6BAA6B,iBAAiB,yBAAyB,YAAY,gCAAgC,iDAAiD,gCAAgC;AACnO;AACA;;;;;;ACFA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEe,qEAAa;;;ACd5B;AACA;AACA;;AAEe,uDAAM;;;ACJQ;;AAE7B;AACA;AACA;AACA,OAAO,YAAM;AACb,YAAY,4BAA4B,KAAK;AAC7C,OAAO,YAAM;AACb;AACA;AACA,0BAA0B,QAAQ;AAClC;AACA;AACA,GAAG;AACH,aAAa,2BAA2B;AACxC;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,aAAa,6CAA6C;AAC1D;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;;AAEe,+DAAU;;;AChCkB;AACN;;AAED;;;;ACKO;AACQ;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;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,CAAC;;;ACrE6K,CAAgB,0GAAG,EAAC,C;;;;;ACAlM;;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,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FyG;AAChD;AACL;AAC6C;;;AAGjG;AAC0F;AAC1F,gBAAgB,kBAAU;AAC1B,EAAE,wCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,2D;;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;;AAEe;AACf;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;AACA;AACA;;AAEA;;AAEA,GAAG,mBAAa;AAChB,GAAG,gBAAU,oBAAoB,+CAAY;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;;ACtGmL,CAAgB,sHAAG,EAAC,C;;ACAzF;AAChD;AACL;;;AAG1D;AAC0F;AAC1F,IAAI,qBAAS,GAAG,kBAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,oEAAM;AACR,EAAE,6EAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,qEAAS,Q;;;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;;AAEe;AACf;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;;AAE7C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;ACtEsL,CAAgB,4HAAG,EAAC,C;;ACA3M,IAAI,qBAAM,EAAE,8BAAe;AACuC;AACL;;;AAG7D;AAC0F;AAC1F,IAAI,wBAAS,GAAG,kBAAU;AAC1B,EAAE,iDAAM;AACR,EAAE,qBAAM;AACR,EAAE,8BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,2EAAS,Q;;;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;;AAEe;AACf;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;;AAE7C;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;AC7HoL,CAAgB,wHAAG,EAAC,C;;ACAzM,IAAI,mBAAM,EAAE,4BAAe;AACqC;AACL;;;AAG3D;AAC0F;AAC1F,IAAI,sBAAS,GAAG,kBAAU;AAC1B,EAAE,+CAAM;AACR,EAAE,mBAAM;AACR,EAAE,4BAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,uEAAS,Q;;AClBxB,IAAI,8EAAM,qBAAqB,6BAA6B,iBAAiB,wCAAwC,cAAc,mBAAmB,+BAA+B;AACrL;AACA,IAAI,uFAAe;;;;;;;ACIW;;AAEf;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;;;AC9E6L,CAAgB,0IAAG,EAAC,C;;;;;;;;ACAzF;AAChD;AACL;AAC6C;AACZ;;;AAGrG;AAC0F;AAC1F,IAAI,+BAAS,GAAG,kBAAU;AAC1B,EAAE,wDAAM;AACR,EAAE,8EAAM;AACR,EAAE,uFAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,yFAAS,Q;;ACpBG;AACY;AACM;AACJ;AACkB;;AAE5C;AACf,CAAC,KAAK;AACN,CAAC,WAAW;AACZ,CAAC,cAAc;AACf,CAAC,YAAY;AACb,CAAC,qBAAqB;AACtB,CAAC;;;ACZgC;AACI;;AAErC;;AAEA,MAAM,eAAW;AACjB;AACA,SAAS,MAAU;AACnB;AACA;AACA;AACA;AACA;AACA,EAAE,UAAU;AACZ;AACA,GAAG;AACH;AACA,wBAAwB,+BAA+B,WAAW;AAClE,qCAAqC;;AAErC,EAAE,MAAU,SAAS,UAAU;;AAE/B,eAAe,MAAU;AACzB;AACA;AACA;;AAEqB;;AAEN,yDAAW;;;AC7BF;AACA;AACT,oFAAG;AACI;;;;;;;;;ACHtB;AAAA;AAAA","file":"vue-amap.umd.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 "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".amap-sug-result{display:none}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\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??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/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(\"37432b0a\", 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??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=37c06024&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(\"329bbec2\", 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","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".v-amap-ctn[data-v-37c06024],.v-amap-ctn .v-amap[data-v-37c06024]{height:100%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=0&id=57fd4556&prod&lang=stylus&scoped=true&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.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\nmodule.exports = exports;\n","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=style&index=0&id=37c06024&prod&lang=stylus&scoped=true&\"","// 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??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/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(\"1e99f6c0\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// 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","import listenerProxy from './listenerProxy'\r\nimport watchProps from './watchProps'\r\n\r\nexport { listenerProxy, 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\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\taddMarker(marker) {\r\n\t\t\tthis.aMap && this.aMap.add(marker)\r\n\t\t},\r\n\t\tremoveMarker(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/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMap.vue?vue&type=script&lang=js&\"","/* 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=37c06024&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=37c06024&prod&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"37c06024\",\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\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\tmounted() {\r\n\t\tthis._createMarker()\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.$scopedSlots.default\r\n\t\t\t\t\t\t? this.$refs.content\r\n\t\t\t\t\t\t: null\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\r\n\t\t\tthis._addMarker()\r\n\t\t},\r\n\t\t_updateMarkerContent() {\r\n\t\t\tthis.marker.setContent(this.$refs.content)\r\n\t\t},\r\n\t\t_resetMarkerContent() {\r\n\t\t\tthis.$el.appendChild(this.$refs.content)\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tif (!this.$parent.addMarker) return\r\n\r\n\t\t\tthis.$parent.addMarker(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\t\t\tif (!this.$parent.removeMarker) return\r\n\r\n\t\t\tthis.$parent.removeMarker(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/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapMarker.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VAMapMarker.vue?vue&type=template&id=79bc5cde&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-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"79bc5cde\",\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\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis._createMarker()\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\r\n\t\t\tthis._addMarker()\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tif (!this.$parent.aMap) return\r\n\r\n\t\t\tthis.marker.setMap(this.$parent.aMap)\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/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapMassMarks.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/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-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","<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\tdata() {\r\n\t\treturn {\r\n\t\t\tmarker: null\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis._createMarker()\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\r\n\t\t\tthis._addMarker()\r\n\t\t},\r\n\t\t_addMarker() {\r\n\t\t\tif (!this.$parent.addMarker) return\r\n\r\n\t\t\tthis.$parent.addMarker(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\t\t\tif (!this.$parent.removeMarker) return\r\n\r\n\t\t\tthis.$parent.removeMarker(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/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapPolygon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/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-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var 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/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=script&lang=js&\"","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-loader/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","import AMapLoader from './loader'\r\nimport Components from './Components'\r\n\r\nlet globalMapOptions = {}\r\n\r\nclass AMapManager {\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","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-3!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-4!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VAMapPlaceSearchInput.vue?vue&type=style&index=1&id=57fd4556&prod&lang=stylus&\""],"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,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,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-amap"]=t():e["vue-amap"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"18f4":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".amap-sug-result{display:none}",""]),e.exports=t},"24fb":function(e,t,r){"use strict";function a(e,t){var r=e[1]||"",a=e[3];if(!a)return r;if(t&&"function"===typeof btoa){var s=n(a),i=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[r].concat(i).concat([s]).join("\n")}return[r].join("\n")}function n(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=a(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,a){"string"===typeof e&&(e=[[null,e,""]]);var n={};if(a)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(n[i]=!0)}for(var o=0;o<e.length;o++){var c=[].concat(e[o]);a&&n[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},"2cc0":function(e,t,r){var a=r("18f4");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("499e").default;n("37432b0a",a,!0,{sourceMap:!1,shadowMode:!1})},"3a4c":function(e,t,r){var a=r("50bd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("499e").default;n("329bbec2",a,!0,{sourceMap:!1,shadowMode:!1})},"499e":function(e,t,r){"use strict";function a(e,t){for(var r=[],a={},n=0;n<t.length;n++){var s=t[n],i=s[0],o=s[1],c=s[2],l=s[3],d={id:e+":"+n,css:o,media:c,sourceMap:l};a[i]?a[i].parts.push(d):r.push(a[i]={id:i,parts:[d]})}return r}r.r(t),r.d(t,"default",(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(e,t,r,n){l=r,u=n||{};var i=a(e,t);return m(i),function(t){for(var r=[],n=0;n<i.length;n++){var o=i[n],c=s[o.id];c.refs--,r.push(c)}t?(i=a(e,t),m(i)):i=[];for(n=0;n<r.length;n++){c=r[n];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete s[c.id]}}}}function m(e){for(var t=0;t<e.length;t++){var r=e[t],a=s[r.id];if(a){a.refs++;for(var n=0;n<a.parts.length;n++)a.parts[n](r.parts[n]);for(;n<r.parts.length;n++)a.parts.push(k(r.parts[n]));a.parts.length>r.parts.length&&(a.parts.length=r.parts.length)}else{var i=[];for(n=0;n<r.parts.length;n++)i.push(k(r.parts[n]));s[r.id]={id:r.id,refs:1,parts:i}}}}function v(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function k(e){var t,r,a=document.querySelector("style["+p+'~="'+e.id+'"]');if(a){if(l)return d;a.parentNode.removeChild(a)}if(h){var n=c++;a=o||(o=v()),t=b.bind(null,a,n,!1),r=b.bind(null,a,n,!0)}else a=v(),t=g.bind(null,a),r=function(){a.parentNode.removeChild(a)};return t(e),function(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else r()}}var M=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,a){var n=r?"":a.css;if(e.styleSheet)e.styleSheet.cssText=M(t,n);else{var s=document.createTextNode(n),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function g(e,t){var r=t.css,a=t.media,n=t.sourceMap;if(a&&e.setAttribute("media",a),u.ssrId&&e.setAttribute(p,t.id),n&&(r+="\n/*# sourceURL="+n.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},"50bd":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".v-amap-ctn[data-v-37c06024],.v-amap-ctn .v-amap[data-v-37c06024]{height:100%}",""]),e.exports=t},"61d4":function(e,t,r){"use strict";r("c5a6")},b661:function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".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.exports=t},c5a3:function(e,t,r){"use strict";r("3a4c")},c5a6:function(e,t,r){var a=r("b661");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("499e").default;n("1e99f6c0",a,!0,{sourceMap:!1,shadowMode:!1})},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"AMapLoader",(function(){return c})),"undefined"!==typeof window){var a=window.document.currentScript,n=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}const s={SDK_URL:"https://webapi.amap.com/maps",CALLBACK_NAME:"aMapInitCallback"};var i=s;class o{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(e,t){let r=document.createElement("script");r.charset="utf-8",r.src=e,r.addEventListener?r.addEventListener("load",()=>{t&&t()}):r.attachEvent&&r.attachEvent("onreadystatechange",()=>{let e=window.event.srcElement;"loaded"==e.readyState&&t&&t()}),document.head.appendChild(r)}config({key:e="",version:t="",uiVersion:r="",plugins:a}={}){this._key=e,this._version=t,this._uiVersion=r,this._plugins=a}async load(){return this.isSdkLoaded?window.AMap:this.isSdkLoading?new Promise(e=>{this.callbacks.push(()=>{e(window.AMap)})}):new Promise(e=>{this._isSdkLoading=!0,window[this.callbackName]=()=>{this._isSdkLoaded=!0,this._isSdkLoading=!1,this.uiVersion&&window.initAMapUI(),delete window[this.callbackName],e(window.AMap),this.callbacks.forEach(e=>{e&&e()}),this._callbacks=[]},this.uiVersion?this._loadScript(this.uiSdkUrl,()=>{this._loadScript(this.sdkUrl)}):this._loadScript(this.sdkUrl)})}}var c=new o,l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"v-amap-ctn"},[t("div",{ref:"aMap",staticClass:"v-amap"}),e.AMap&&e.aMap?[e._t("default",null,{AMap:e.AMap,aMap:e.aMap})]:e._e()],2)},d=[];const u=(e,t)=>{const r=t.$listeners;for(const a in r)if(Object.hasOwnProperty.call(r,a)){const t=r[a];e.on(a,(...e)=>{t(...e)})}};var p=u;const h=function(e){return Object.prototype.toString.call(e).match(/\s+(\w+)/)[1]};var f=h;const m=(e,t,r)=>{r.map(e=>"String"===f(e)?{prop:e,watchProp:"$attrs."+e}:"Array"===f(e)?{prop:e[0],watchProp:"$attrs."+e[0],handler:e[1]}:void 0).forEach(({watchProp:r,prop:a,handler:n})=>{t.$watch(r,(r,s)=>{try{n?n.call(t,e,r,s):e["set"+a.replace(a[0],a[0].toUpperCase())](r)}catch(i){console.error("Props watch error:",i)}})})};var v=m;const k=["zoom",["center",function(e,t,r){t!==r&&e.setCenter(t)}],"labelzIndex","lang","defaultCursor","features","mapStyle","pitch"];var M={name:"VAMap",data(){return{AMap:null,aMap:null}},created(){this._createMap()},destroyed(){this._destroyMap()},methods:{async _createMap(){this.AMap=await c.load();const e=Object.assign({},Z.globalMapOptions,this.$attrs);this.aMap=new this.AMap.Map(this.$refs.aMap,e),p(this.aMap,this),v(this.aMap,this,k),this.$emit("init",this.aMap,this.AMap)},_destroyMap(){this.aMap&&this.aMap.destroy()},addMarker(e){this.aMap&&this.aMap.add(e)},removeMarker(e){this.aMap&&this.aMap.remove(e)}}},b=M;r("c5a3");function g(e,t,r,a,n,s,i,o){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),a&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._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(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}var _=g(b,l,d,!1,null,"37c06024",null),y=_.exports,w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"v-amap-marker"},[t("div",{ref:"content",staticClass:"v-amap-marker-content"},[e._t("default")],2)])},S=[];const $=["position","anchor","offset","icon","draggable","cursor",["visible",function(e,t){e[t?"show":"hide"](),t&&this._updateMarkerContent()}],["zIndex",function(e,t){e.setzIndex(t)}],"angle","animation","shadow","title","clickable","shape","extData","label"];var x={name:"VAMapMarker",data(){return{marker:null,isFixedMarkerSize:!1}},mounted(){this._createMarker()},async updated(){this.marker&&(this.isFixedMarkerSize||(this.isFixedMarkerSize=!0,await this.$nextTick(),this._updateMarkerContent()))},beforeDestroy(){this._resetMarkerContent()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const e=await c.load(),t=Object.assign({},this.$attrs,{content:this.$scopedSlots.default?this.$refs.content:null});this.marker=new e.Marker(t),p(this.marker,this),v(this.marker,this,$),this._addMarker()},_updateMarkerContent(){this.marker.setContent(this.$refs.content)},_resetMarkerContent(){this.$el.appendChild(this.$refs.content)},_addMarker(){this.$parent.addMarker&&(this.$parent.addMarker(this.marker),this.$emit("init",this.marker))},_removeMarker(){this.marker&&this.$parent.removeMarker&&this.$parent.removeMarker(this.marker)}}},C=x,L=g(C,w,S,!1,null,"79bc5cde",null),O=L.exports;const A=[["data",function(e,t){e.setData(t)}],["styleObject",(e,t)=>{e.setStyle(t)}],["visible",(e,t)=>{e[t?"show":"hide"]()}]];var j,E,U={name:"VAMapMassMarks",data(){return{marker:null}},created(){this._createMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const e=await c.load(),t=Object.assign({},this.$attrs,{style:this.$attrs.styleObject||{}});this.marker=new e.MassMarks(this.$attrs.data||[],t),p(this.marker,this),v(this.marker,this,A),this._addMarker()},_addMarker(){this.$parent.aMap&&(this.marker.setMap(this.$parent.aMap),this.$emit("init",this.marker))},_removeMarker(){this.marker&&(this.marker.clear(),this.marker.setMap())}},render(){return null}},N=U,P=g(N,j,E,!1,null,null,null),R=P.exports;const V=["path",["visible",function(e,t){e[t?"show":"hide"]()}],["zIndex",function(e,t){e.setOptions({zIndex:t})}],["bubble",function(e,t){e.setOptions({bubble:t})}],["cursor",function(e,t){e.setOptions({cursor:t})}],["strokeColor",function(e,t){e.setOptions({strokeColor:t})}],["strokeOpacity",function(e,t){e.setOptions({strokeOpacity:t})}],["strokeWeight",function(e,t){e.setOptions({strokeWeight:t})}],["strokeStyle",function(e,t){e.setOptions({strokeStyle:t})}],["strokeDasharray",function(e,t){e.setOptions({strokeDasharray:t})}],["fillColor",function(e,t){e.setOptions({fillColor:t})}],["fillOpacity",function(e,t){e.setOptions({fillOpacity:t})}],["draggable",function(e,t){e.setOptions({draggable:t})}]];var z,I,T={name:"VAMapPolygon",data(){return{marker:null}},created(){this._createMarker()},destroyed(){this._removeMarker()},methods:{async _createMarker(){const e=await c.load(),t=Object.assign({},this.$attrs,{map:void 0});this.marker=new e.Polygon(t),p(this.marker,this),v(this.marker,this,V),this._addMarker()},_addMarker(){this.$parent.addMarker&&(this.$parent.addMarker(this.marker),this.$emit("init",this.marker))},_removeMarker(){this.marker&&this.$parent.removeMarker&&this.$parent.removeMarker(this.marker)}},render(){return null}},D=T,B=g(D,z,I,!1,null,null,null),F=B.exports,K=function(){var e=this,t=e._self._c;return t("div",{staticClass:"v-amap-place-search-input"},[t("input",{ref:"input",attrs:{placeholder:e.placeholder}})])},W=[],G={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 c.load(),this.addListener()},destroyed(){this.removeListener()},methods:{async addListener(){const e=new this.AMap.Autocomplete({input:this.$refs.input}),t=new this.AMap.PlaceSearch({});this.autocompleteListener=this.AMap.event.addListener(e,"select",e=>{t.search(e.poi.name)}),this.placeSearchListener=this.AMap.event.addListener(t,"complete",e=>{var t=null;e&&e.poiList&&e.poiList.pois&&e.poiList.pois.length&&(t=[e.poiList.pois[0].location.lng,e.poiList.pois[0].location.lat]),this.$emit("change",t),t||this.customEnable||(this.$refs.input.value="")})},removeListener(){this.AMap.event.removeListener(this.autocompleteListener),this.AMap.event.removeListener(this.placeSearchListener)}}},J=G,X=(r("61d4"),r("fcc8"),g(J,K,W,!1,null,"57fd4556",null)),q=X.exports,H=[y,O,R,F,q];let Q={};class Y{static get AMapLoader(){return c}static get globalMapOptions(){return Q}static install(e){H.forEach(t=>{e.component(t.name,t)})}static async initAMap({globalMapOptions:e={},...t}){return Q=Object.assign({},e),c.config({...t}),await c.load()}constructor(){}}var Z=Y;t["default"]=Z},fcc8:function(e,t,r){"use strict";r("2cc0")}})["default"]}));
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}()}));
2
2
  //# sourceMappingURL=vue-amap.umd.min.js.map