Commit 018410ed by chenwq

高德地图切换成百度地图

1 parent e322c4d6
...@@ -1177,46 +1177,6 @@ ...@@ -1177,46 +1177,6 @@
"to-fast-properties": "^2.0.0" "to-fast-properties": "^2.0.0"
} }
}, },
"@eslint/eslintrc": {
"version": "0.4.3",
"resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz",
"integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==",
"dev": true,
"requires": {
"ajv": "^6.12.4",
"debug": "^4.1.1",
"espree": "^7.3.0",
"globals": "^13.9.0",
"ignore": "^4.0.6",
"import-fresh": "^3.2.1",
"js-yaml": "^3.13.1",
"minimatch": "^3.0.4",
"strip-json-comments": "^3.1.1"
},
"dependencies": {
"globals": {
"version": "13.15.0",
"resolved": "https://registry.npmmirror.com/globals/-/globals-13.15.0.tgz",
"integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==",
"dev": true,
"requires": {
"type-fest": "^0.20.2"
}
},
"ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true
},
"type-fest": {
"version": "0.20.2",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz",
"integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
"dev": true
}
}
},
"@hapi/hoek": { "@hapi/hoek": {
"version": "9.3.0", "version": "9.3.0",
"resolved": "https://registry.npmmirror.com/@hapi/hoek/-/hoek-9.3.0.tgz", "resolved": "https://registry.npmmirror.com/@hapi/hoek/-/hoek-9.3.0.tgz",
...@@ -1232,23 +1192,6 @@ ...@@ -1232,23 +1192,6 @@
"@hapi/hoek": "^9.0.0" "@hapi/hoek": "^9.0.0"
} }
}, },
"@humanwhocodes/config-array": {
"version": "0.5.0",
"resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz",
"integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==",
"dev": true,
"requires": {
"@humanwhocodes/object-schema": "^1.2.0",
"debug": "^4.1.1",
"minimatch": "^3.0.4"
}
},
"@humanwhocodes/object-schema": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
"integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
"dev": true
},
"@jridgewell/gen-mapping": { "@jridgewell/gen-mapping": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",
...@@ -1874,19 +1817,6 @@ ...@@ -1874,19 +1817,6 @@
"webpack": "^5.54.0" "webpack": "^5.54.0"
} }
}, },
"@vue/cli-plugin-eslint": {
"version": "5.0.6",
"resolved": "https://registry.npmmirror.com/@vue/cli-plugin-eslint/-/cli-plugin-eslint-5.0.6.tgz",
"integrity": "sha512-fuc8w2IujzoenA/cdr/QYYMq2yaI1fYr0Fqom/M55B+DmW19GIuIRxYQvh0CEeCbFB2hAl3Flrazfx96/nAaQA==",
"dev": true,
"requires": {
"@vue/cli-shared-utils": "^5.0.6",
"eslint-webpack-plugin": "^3.1.0",
"globby": "^11.0.2",
"webpack": "^5.54.0",
"yorkie": "^2.0.0"
}
},
"@vue/cli-plugin-router": { "@vue/cli-plugin-router": {
"version": "5.0.6", "version": "5.0.6",
"resolved": "https://registry.npmmirror.com/@vue/cli-plugin-router/-/cli-plugin-router-5.0.6.tgz", "resolved": "https://registry.npmmirror.com/@vue/cli-plugin-router/-/cli-plugin-router-5.0.6.tgz",
...@@ -1963,29 +1893,6 @@ ...@@ -1963,29 +1893,6 @@
"webpack-merge": "^5.7.3", "webpack-merge": "^5.7.3",
"webpack-virtual-modules": "^0.4.2", "webpack-virtual-modules": "^0.4.2",
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
},
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
}
} }
}, },
"@vue/cli-shared-utils": { "@vue/cli-shared-utils": {
...@@ -2229,6 +2136,27 @@ ...@@ -2229,6 +2136,27 @@
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.2.37.tgz", "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.2.37.tgz",
"integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==" "integrity": "sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw=="
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/web-component-wrapper": { "@vue/web-component-wrapper": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmmirror.com/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz", "resolved": "https://registry.npmmirror.com/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz",
...@@ -2415,12 +2343,6 @@ ...@@ -2415,12 +2343,6 @@
"integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==",
"dev": true "dev": true
}, },
"acorn-jsx": {
"version": "5.3.2",
"resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
"dev": true
},
"acorn-walk": { "acorn-walk": {
"version": "8.2.0", "version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz", "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
...@@ -2485,12 +2407,6 @@ ...@@ -2485,12 +2407,6 @@
"resolved": "https://registry.npmjs.org/animate.css/-/animate.css-3.7.2.tgz", "resolved": "https://registry.npmjs.org/animate.css/-/animate.css-3.7.2.tgz",
"integrity": "sha512-0bE8zYo7C0KvgOYrSVfrzkbYk6IOTVPNqkiHg2cbyF4Pq/PXzilz4BRWA3hwEUBoMp5VBgrC29lQIZyhRWdBTw==" "integrity": "sha512-0bE8zYo7C0KvgOYrSVfrzkbYk6IOTVPNqkiHg2cbyF4Pq/PXzilz4BRWA3hwEUBoMp5VBgrC29lQIZyhRWdBTw=="
}, },
"ansi-colors": {
"version": "4.1.3",
"resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-4.1.3.tgz",
"integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
"dev": true
},
"ansi-escapes": { "ansi-escapes": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz", "resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
...@@ -2540,15 +2456,6 @@ ...@@ -2540,15 +2456,6 @@
"integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==",
"dev": true "dev": true
}, },
"argparse": {
"version": "1.0.10",
"resolved": "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz",
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"dev": true,
"requires": {
"sprintf-js": "~1.0.2"
}
},
"arr-diff": { "arr-diff": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
...@@ -2601,12 +2508,6 @@ ...@@ -2601,12 +2508,6 @@
"resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
"integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==" "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw=="
}, },
"astral-regex": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/astral-regex/-/astral-regex-2.0.0.tgz",
"integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
"dev": true
},
"async": { "async": {
"version": "2.6.4", "version": "2.6.4",
"resolved": "https://registry.npmmirror.com/async/-/async-2.6.4.tgz", "resolved": "https://registry.npmmirror.com/async/-/async-2.6.4.tgz",
...@@ -3049,12 +2950,6 @@ ...@@ -3049,12 +2950,6 @@
"integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==",
"dev": true "dev": true
}, },
"ci-info": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/ci-info/-/ci-info-1.6.0.tgz",
"integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==",
"dev": true
},
"class-utils": { "class-utils": {
"version": "0.3.6", "version": "0.3.6",
"resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
...@@ -3836,12 +3731,6 @@ ...@@ -3836,12 +3731,6 @@
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
"integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og==" "integrity": "sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og=="
}, },
"deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz",
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
"dev": true
},
"deepmerge": { "deepmerge": {
"version": "1.5.2", "version": "1.5.2",
"resolved": "https://registry.npmmirror.com/deepmerge/-/deepmerge-1.5.2.tgz", "resolved": "https://registry.npmmirror.com/deepmerge/-/deepmerge-1.5.2.tgz",
...@@ -4023,15 +3912,6 @@ ...@@ -4023,15 +3912,6 @@
"@leichtgewicht/ip-codec": "^2.0.1" "@leichtgewicht/ip-codec": "^2.0.1"
} }
}, },
"doctrine": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz",
"integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
"dev": true,
"requires": {
"esutils": "^2.0.2"
}
},
"dom-converter": { "dom-converter": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmmirror.com/dom-converter/-/dom-converter-0.2.0.tgz", "resolved": "https://registry.npmmirror.com/dom-converter/-/dom-converter-0.2.0.tgz",
...@@ -4175,15 +4055,6 @@ ...@@ -4175,15 +4055,6 @@
"tapable": "^2.2.0" "tapable": "^2.2.0"
} }
}, },
"enquirer": {
"version": "2.3.6",
"resolved": "https://registry.npmmirror.com/enquirer/-/enquirer-2.3.6.tgz",
"integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==",
"dev": true,
"requires": {
"ansi-colors": "^4.1.1"
}
},
"entities": { "entities": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmmirror.com/entities/-/entities-2.2.0.tgz", "resolved": "https://registry.npmmirror.com/entities/-/entities-2.2.0.tgz",
...@@ -4218,423 +4089,35 @@ ...@@ -4218,423 +4089,35 @@
"version": "3.1.1", "version": "3.1.1",
"resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.1.1.tgz", "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.1.1.tgz",
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"dev": true "dev": true
},
"escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
"dev": true
},
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="
},
"eslint": {
"version": "7.32.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz",
"integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==",
"dev": true,
"requires": {
"@babel/code-frame": "7.12.11",
"@eslint/eslintrc": "^0.4.3",
"@humanwhocodes/config-array": "^0.5.0",
"ajv": "^6.10.0",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
"debug": "^4.0.1",
"doctrine": "^3.0.0",
"enquirer": "^2.3.5",
"escape-string-regexp": "^4.0.0",
"eslint-scope": "^5.1.1",
"eslint-utils": "^2.1.0",
"eslint-visitor-keys": "^2.0.0",
"espree": "^7.3.1",
"esquery": "^1.4.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
"file-entry-cache": "^6.0.1",
"functional-red-black-tree": "^1.0.1",
"glob-parent": "^5.1.2",
"globals": "^13.6.0",
"ignore": "^4.0.6",
"import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4",
"is-glob": "^4.0.0",
"js-yaml": "^3.13.1",
"json-stable-stringify-without-jsonify": "^1.0.1",
"levn": "^0.4.1",
"lodash.merge": "^4.6.2",
"minimatch": "^3.0.4",
"natural-compare": "^1.4.0",
"optionator": "^0.9.1",
"progress": "^2.0.0",
"regexpp": "^3.1.0",
"semver": "^7.2.1",
"strip-ansi": "^6.0.0",
"strip-json-comments": "^3.1.0",
"table": "^6.0.9",
"text-table": "^0.2.0",
"v8-compile-cache": "^2.0.3"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.12.11",
"resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.12.11.tgz",
"integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==",
"dev": true,
"requires": {
"@babel/highlight": "^7.10.4"
}
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
"dev": true,
"requires": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
"which": "^2.0.1"
}
},
"escape-string-regexp": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
"dev": true
},
"glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"globals": {
"version": "13.15.0",
"resolved": "https://registry.npmmirror.com/globals/-/globals-13.15.0.tgz",
"integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==",
"dev": true,
"requires": {
"type-fest": "^0.20.2"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"ignore": {
"version": "4.0.6",
"resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true
},
"path-key": {
"version": "3.1.1",
"resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"dev": true
},
"semver": {
"version": "7.3.7",
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.7.tgz",
"integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
"dev": true,
"requires": {
"lru-cache": "^6.0.0"
}
},
"shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"dev": true,
"requires": {
"shebang-regex": "^3.0.0"
}
},
"shebang-regex": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"type-fest": {
"version": "0.20.2",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz",
"integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
"dev": true
},
"which": {
"version": "2.0.2",
"resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"requires": {
"isexe": "^2.0.0"
}
}
}
},
"eslint-config-prettier": {
"version": "8.5.0",
"resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz",
"integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==",
"dev": true
},
"eslint-plugin-prettier": {
"version": "4.1.0",
"resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.1.0.tgz",
"integrity": "sha512-A3AXIEfTnq3D5qDFjWJdQ9c4BLhw/TqhSR+6+SVaoPJBAWciFEuJiNQh275OnjRrAi7yssZzuWBRw66VG2g6UA==",
"dev": true,
"requires": {
"prettier-linter-helpers": "^1.0.0"
}
},
"eslint-plugin-vue": {
"version": "8.7.1",
"resolved": "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-8.7.1.tgz",
"integrity": "sha512-28sbtm4l4cOzoO1LtzQPxfxhQABararUb1JtqusQqObJpWX2e/gmVyeYVfepizPFne0Q5cILkYGiBoV36L12Wg==",
"dev": true,
"requires": {
"eslint-utils": "^3.0.0",
"natural-compare": "^1.4.0",
"nth-check": "^2.0.1",
"postcss-selector-parser": "^6.0.9",
"semver": "^7.3.5",
"vue-eslint-parser": "^8.0.1"
},
"dependencies": {
"eslint-utils": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-3.0.0.tgz",
"integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
"dev": true,
"requires": {
"eslint-visitor-keys": "^2.0.0"
}
},
"semver": {
"version": "7.3.7",
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.7.tgz",
"integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
"dev": true,
"requires": {
"lru-cache": "^6.0.0"
}
}
}
},
"eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-5.1.1.tgz",
"integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
"dev": true,
"requires": {
"esrecurse": "^4.3.0",
"estraverse": "^4.1.1"
}
},
"eslint-utils": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-2.1.0.tgz",
"integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
"dev": true,
"requires": {
"eslint-visitor-keys": "^1.1.0"
},
"dependencies": {
"eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true
}
}
},
"eslint-visitor-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
"dev": true
},
"eslint-webpack-plugin": {
"version": "3.2.0",
"resolved": "https://registry.npmmirror.com/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz",
"integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==",
"dev": true,
"requires": {
"@types/eslint": "^7.29.0 || ^8.4.1",
"jest-worker": "^28.0.2",
"micromatch": "^4.0.5",
"normalize-path": "^3.0.0",
"schema-utils": "^4.0.0"
},
"dependencies": {
"ajv": {
"version": "8.11.0",
"resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.11.0.tgz",
"integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2",
"uri-js": "^4.2.2"
}
},
"ajv-keywords": {
"version": "5.1.0",
"resolved": "https://registry.npmmirror.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
"integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.3"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"jest-worker": {
"version": "28.1.1",
"resolved": "https://registry.npmmirror.com/jest-worker/-/jest-worker-28.1.1.tgz",
"integrity": "sha512-Au7slXB08C6h+xbJPp7VIb6U0XX5Kc9uel/WFc6/rcTzGiaVCBRngBExSYuXSLFPULPSYU3cJ3ybS988lNFQhQ==",
"dev": true,
"requires": {
"@types/node": "*",
"merge-stream": "^2.0.0",
"supports-color": "^8.0.0"
}
},
"json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"dev": true
},
"schema-utils": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/schema-utils/-/schema-utils-4.0.0.tgz",
"integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.9",
"ajv": "^8.8.0",
"ajv-formats": "^2.1.1",
"ajv-keywords": "^5.0.0"
}
},
"supports-color": {
"version": "8.1.1",
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz",
"integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"espree": {
"version": "7.3.1",
"resolved": "https://registry.npmmirror.com/espree/-/espree-7.3.1.tgz",
"integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==",
"dev": true,
"requires": {
"acorn": "^7.4.0",
"acorn-jsx": "^5.3.1",
"eslint-visitor-keys": "^1.3.0"
},
"dependencies": {
"acorn": {
"version": "7.4.1",
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-7.4.1.tgz",
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true
}
}
}, },
"esprima": { "escape-html": {
"version": "4.0.1", "version": "1.0.3",
"resolved": "https://registry.npmmirror.com/esprima/-/esprima-4.0.1.tgz", "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
"dev": true "dev": true
}, },
"esquery": { "escape-string-regexp": {
"version": "1.4.0", "version": "1.0.5",
"resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.4.0.tgz", "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
"integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="
},
"eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-5.1.1.tgz",
"integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
"dev": true, "dev": true,
"requires": { "requires": {
"estraverse": "^5.1.0" "esrecurse": "^4.3.0",
}, "estraverse": "^4.1.1"
"dependencies": {
"estraverse": {
"version": "5.3.0",
"resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz",
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
"dev": true
}
} }
}, },
"eslint-visitor-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
"integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
"dev": true
},
"esrecurse": { "esrecurse": {
"version": "4.3.0", "version": "4.3.0",
"resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz",
...@@ -4905,12 +4388,6 @@ ...@@ -4905,12 +4388,6 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true "dev": true
}, },
"fast-diff": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.2.0.tgz",
"integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",
"dev": true
},
"fast-glob": { "fast-glob": {
"version": "3.2.11", "version": "3.2.11",
"resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.2.11.tgz", "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.2.11.tgz",
...@@ -4941,12 +4418,6 @@ ...@@ -4941,12 +4418,6 @@
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
"dev": true "dev": true
}, },
"fast-levenshtein": {
"version": "2.0.6",
"resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
"dev": true
},
"fastq": { "fastq": {
"version": "1.13.0", "version": "1.13.0",
"resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.13.0.tgz", "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.13.0.tgz",
...@@ -4974,15 +4445,6 @@ ...@@ -4974,15 +4445,6 @@
"escape-string-regexp": "^1.0.5" "escape-string-regexp": "^1.0.5"
} }
}, },
"file-entry-cache": {
"version": "6.0.1",
"resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
"integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
"dev": true,
"requires": {
"flat-cache": "^3.0.4"
}
},
"fill-range": { "fill-range": {
"version": "7.0.1", "version": "7.0.1",
"resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz", "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz",
...@@ -5051,22 +4513,6 @@ ...@@ -5051,22 +4513,6 @@
"integrity": "sha512-ArRi5axuv66gEsyl3UuK80CzW7t56hem73YGNYxNWTGNKFJUadSb9Gu9SHijYEUi8ulQMf1bJomYNwSCPHhtTQ==", "integrity": "sha512-ArRi5axuv66gEsyl3UuK80CzW7t56hem73YGNYxNWTGNKFJUadSb9Gu9SHijYEUi8ulQMf1bJomYNwSCPHhtTQ==",
"dev": true "dev": true
}, },
"flat-cache": {
"version": "3.0.4",
"resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.0.4.tgz",
"integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
"dev": true,
"requires": {
"flatted": "^3.1.0",
"rimraf": "^3.0.2"
}
},
"flatted": {
"version": "3.2.6",
"resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.2.6.tgz",
"integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==",
"dev": true
},
"follow-redirects": { "follow-redirects": {
"version": "1.15.1", "version": "1.15.1",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz", "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz",
...@@ -5156,12 +4602,6 @@ ...@@ -5156,12 +4602,6 @@
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
"dev": true "dev": true
}, },
"functional-red-black-tree": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
"integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==",
"dev": true
},
"gaze": { "gaze": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
...@@ -5733,12 +5173,6 @@ ...@@ -5733,12 +5173,6 @@
"resolve-from": "^4.0.0" "resolve-from": "^4.0.0"
} }
}, },
"imurmurhash": {
"version": "0.1.4",
"resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz",
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
"dev": true
},
"inflight": { "inflight": {
"version": "1.0.6", "version": "1.0.6",
"resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz",
...@@ -5794,15 +5228,6 @@ ...@@ -5794,15 +5228,6 @@
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
"integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
}, },
"is-ci": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/is-ci/-/is-ci-1.2.1.tgz",
"integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==",
"dev": true,
"requires": {
"ci-info": "^1.5.0"
}
},
"is-core-module": { "is-core-module": {
"version": "2.9.0", "version": "2.9.0",
"resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.9.0.tgz", "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.9.0.tgz",
...@@ -6027,16 +5452,6 @@ ...@@ -6027,16 +5452,6 @@
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
"dev": true "dev": true
}, },
"js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"dev": true,
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
}
},
"jsbn": { "jsbn": {
"version": "0.1.1", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
...@@ -6079,12 +5494,6 @@ ...@@ -6079,12 +5494,6 @@
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true "dev": true
}, },
"json-stable-stringify-without-jsonify": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
"dev": true
},
"json-stringify-safe": { "json-stringify-safe": {
"version": "5.0.1", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
...@@ -6158,16 +5567,6 @@ ...@@ -6158,16 +5567,6 @@
"bin-pack": "~1.0.1" "bin-pack": "~1.0.1"
} }
}, },
"levn": {
"version": "0.4.1",
"resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz",
"integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
"dev": true,
"requires": {
"prelude-ls": "^1.2.1",
"type-check": "~0.4.0"
}
},
"lilconfig": { "lilconfig": {
"version": "2.0.5", "version": "2.0.5",
"resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-2.0.5.tgz", "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-2.0.5.tgz",
...@@ -6251,18 +5650,6 @@ ...@@ -6251,18 +5650,6 @@
"integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==",
"dev": true "dev": true
}, },
"lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
"lodash.truncate": {
"version": "4.4.2",
"resolved": "https://registry.npmmirror.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
"integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==",
"dev": true
},
"lodash.uniq": { "lodash.uniq": {
"version": "4.5.0", "version": "4.5.0",
"resolved": "https://registry.npmmirror.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "resolved": "https://registry.npmmirror.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
...@@ -6777,12 +6164,6 @@ ...@@ -6777,12 +6164,6 @@
} }
} }
}, },
"natural-compare": {
"version": "1.4.0",
"resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz",
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
"dev": true
},
"ndarray": { "ndarray": {
"version": "1.0.19", "version": "1.0.19",
"resolved": "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz", "resolved": "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz",
...@@ -7103,20 +6484,6 @@ ...@@ -7103,20 +6484,6 @@
"integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==",
"dev": true "dev": true
}, },
"optionator": {
"version": "0.9.1",
"resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.1.tgz",
"integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
"dev": true,
"requires": {
"deep-is": "^0.1.3",
"fast-levenshtein": "^2.0.6",
"levn": "^0.4.1",
"prelude-ls": "^1.2.1",
"type-check": "^0.4.0",
"word-wrap": "^1.2.3"
}
},
"ora": { "ora": {
"version": "5.4.1", "version": "5.4.1",
"resolved": "https://registry.npmmirror.com/ora/-/ora-5.4.1.tgz", "resolved": "https://registry.npmmirror.com/ora/-/ora-5.4.1.tgz",
...@@ -7881,26 +7248,12 @@ ...@@ -7881,26 +7248,12 @@
"posthtml-render": "^1.0.6" "posthtml-render": "^1.0.6"
} }
}, },
"prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz",
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true
},
"prettier": { "prettier": {
"version": "2.7.1", "version": "2.7.1",
"resolved": "https://registry.npmmirror.com/prettier/-/prettier-2.7.1.tgz", "resolved": "https://registry.npmmirror.com/prettier/-/prettier-2.7.1.tgz",
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
"dev": true
},
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
"integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",
"dev": true, "dev": true,
"requires": { "optional": true
"fast-diff": "^1.1.2"
}
}, },
"pretty-error": { "pretty-error": {
"version": "4.0.0", "version": "4.0.0",
...@@ -7918,12 +7271,6 @@ ...@@ -7918,12 +7271,6 @@
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
"dev": true "dev": true
}, },
"progress": {
"version": "2.0.3",
"resolved": "https://registry.npmmirror.com/progress/-/progress-2.0.3.tgz",
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
"dev": true
},
"progress-webpack-plugin": { "progress-webpack-plugin": {
"version": "1.0.16", "version": "1.0.16",
"resolved": "https://registry.npmmirror.com/progress-webpack-plugin/-/progress-webpack-plugin-1.0.16.tgz", "resolved": "https://registry.npmmirror.com/progress-webpack-plugin/-/progress-webpack-plugin-1.0.16.tgz",
...@@ -8148,12 +7495,6 @@ ...@@ -8148,12 +7495,6 @@
} }
} }
}, },
"regexpp": {
"version": "3.2.0",
"resolved": "https://registry.npmmirror.com/regexpp/-/regexpp-3.2.0.tgz",
"integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
"dev": true
},
"regexpu-core": { "regexpu-core": {
"version": "5.1.0", "version": "5.1.0",
"resolved": "https://registry.npmmirror.com/regexpu-core/-/regexpu-core-5.1.0.tgz", "resolved": "https://registry.npmmirror.com/regexpu-core/-/regexpu-core-5.1.0.tgz",
...@@ -8707,43 +8048,6 @@ ...@@ -8707,43 +8048,6 @@
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
"dev": true "dev": true
}, },
"slice-ansi": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-4.0.0.tgz",
"integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"astral-regex": "^2.0.0",
"is-fullwidth-code-point": "^3.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
}
}
},
"snapdragon": { "snapdragon": {
"version": "0.8.2", "version": "0.8.2",
"resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
...@@ -9005,12 +8309,6 @@ ...@@ -9005,12 +8309,6 @@
} }
} }
}, },
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
"dev": true
},
"spritesheet-templates": { "spritesheet-templates": {
"version": "10.5.2", "version": "10.5.2",
"resolved": "https://registry.npmjs.org/spritesheet-templates/-/spritesheet-templates-10.5.2.tgz", "resolved": "https://registry.npmjs.org/spritesheet-templates/-/spritesheet-templates-10.5.2.tgz",
...@@ -9230,18 +8528,6 @@ ...@@ -9230,18 +8528,6 @@
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
"dev": true "dev": true
}, },
"strip-indent": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/strip-indent/-/strip-indent-2.0.0.tgz",
"integrity": "sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA==",
"dev": true
},
"strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
"dev": true
},
"stylehacks": { "stylehacks": {
"version": "5.1.0", "version": "5.1.0",
"resolved": "https://registry.npmmirror.com/stylehacks/-/stylehacks-5.1.0.tgz", "resolved": "https://registry.npmmirror.com/stylehacks/-/stylehacks-5.1.0.tgz",
...@@ -9508,39 +8794,6 @@ ...@@ -9508,39 +8794,6 @@
} }
} }
}, },
"table": {
"version": "6.8.0",
"resolved": "https://registry.npmmirror.com/table/-/table-6.8.0.tgz",
"integrity": "sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==",
"dev": true,
"requires": {
"ajv": "^8.0.1",
"lodash.truncate": "^4.4.2",
"slice-ansi": "^4.0.0",
"string-width": "^4.2.3",
"strip-ansi": "^6.0.1"
},
"dependencies": {
"ajv": {
"version": "8.11.0",
"resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.11.0.tgz",
"integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
"dev": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2",
"uri-js": "^4.2.2"
}
},
"json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"dev": true
}
}
},
"tapable": { "tapable": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmmirror.com/tapable/-/tapable-2.2.1.tgz", "resolved": "https://registry.npmmirror.com/tapable/-/tapable-2.2.1.tgz",
...@@ -9593,12 +8846,6 @@ ...@@ -9593,12 +8846,6 @@
} }
} }
}, },
"text-table": {
"version": "0.2.0",
"resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz",
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
"thenify": { "thenify": {
"version": "3.3.1", "version": "3.3.1",
"resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz",
...@@ -9832,15 +9079,6 @@ ...@@ -9832,15 +9079,6 @@
"integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==",
"dev": true "dev": true
}, },
"type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz",
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
"dev": true,
"requires": {
"prelude-ls": "^1.2.1"
}
},
"type-fest": { "type-fest": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz", "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz",
...@@ -10052,12 +9290,6 @@ ...@@ -10052,12 +9290,6 @@
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"dev": true "dev": true
}, },
"v8-compile-cache": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz",
"integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==",
"dev": true
},
"validate-npm-package-license": { "validate-npm-package-license": {
"version": "3.0.4", "version": "3.0.4",
"resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", "resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
...@@ -10138,68 +9370,9 @@ ...@@ -10138,68 +9370,9 @@
"@vue/shared": "3.2.37" "@vue/shared": "3.2.37"
} }
}, },
"vue-eslint-parser": {
"version": "8.3.0",
"resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz",
"integrity": "sha512-dzHGG3+sYwSf6zFBa0Gi9ZDshD7+ad14DGOdTLjruRVgZXe2J+DcZ9iUhyR48z5g1PqRa20yt3Njna/veLJL/g==",
"dev": true,
"requires": {
"debug": "^4.3.2",
"eslint-scope": "^7.0.0",
"eslint-visitor-keys": "^3.1.0",
"espree": "^9.0.0",
"esquery": "^1.4.0",
"lodash": "^4.17.21",
"semver": "^7.3.5"
},
"dependencies": {
"eslint-scope": {
"version": "7.1.1",
"resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.1.1.tgz",
"integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",
"dev": true,
"requires": {
"esrecurse": "^4.3.0",
"estraverse": "^5.2.0"
}
},
"eslint-visitor-keys": {
"version": "3.3.0",
"resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
"integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",
"dev": true
},
"espree": {
"version": "9.3.2",
"resolved": "https://registry.npmmirror.com/espree/-/espree-9.3.2.tgz",
"integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==",
"dev": true,
"requires": {
"acorn": "^8.7.1",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^3.3.0"
}
},
"estraverse": {
"version": "5.3.0",
"resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz",
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
"dev": true
},
"semver": {
"version": "7.3.7",
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.3.7.tgz",
"integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==",
"dev": true,
"requires": {
"lru-cache": "^6.0.0"
}
}
}
},
"vue-hot-reload-api": { "vue-hot-reload-api": {
"version": "2.3.4", "version": "2.3.4",
"resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true "dev": true
}, },
...@@ -10714,12 +9887,6 @@ ...@@ -10714,12 +9887,6 @@
"integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==",
"dev": true "dev": true
}, },
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.3.tgz",
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
"dev": true
},
"wordwrap": { "wordwrap": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
...@@ -10819,74 +9986,6 @@ ...@@ -10819,74 +9986,6 @@
"resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.9.tgz", "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"dev": true "dev": true
},
"yorkie": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/yorkie/-/yorkie-2.0.0.tgz",
"integrity": "sha512-jcKpkthap6x63MB4TxwCyuIGkV0oYP/YRyuQU5UO0Yz/E/ZAu+653/uov+phdmO54n6BcvFRyyt0RRrWdN2mpw==",
"dev": true,
"requires": {
"execa": "^0.8.0",
"is-ci": "^1.0.10",
"normalize-path": "^1.0.0",
"strip-indent": "^2.0.0"
},
"dependencies": {
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
"dev": true,
"requires": {
"lru-cache": "^4.0.1",
"shebang-command": "^1.2.0",
"which": "^1.2.9"
}
},
"execa": {
"version": "0.8.0",
"resolved": "https://registry.npmmirror.com/execa/-/execa-0.8.0.tgz",
"integrity": "sha512-zDWS+Rb1E8BlqqhALSt9kUhss8Qq4nN3iof3gsOdyINksElaPyNBtKUMTR62qhvgVWR0CqCX7sdnKe4MnUbFEA==",
"dev": true,
"requires": {
"cross-spawn": "^5.0.1",
"get-stream": "^3.0.0",
"is-stream": "^1.1.0",
"npm-run-path": "^2.0.0",
"p-finally": "^1.0.0",
"signal-exit": "^3.0.0",
"strip-eof": "^1.0.0"
}
},
"get-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
"dev": true
},
"lru-cache": {
"version": "4.1.5",
"resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-4.1.5.tgz",
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"dev": true,
"requires": {
"pseudomap": "^1.0.2",
"yallist": "^2.1.2"
}
},
"normalize-path": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-1.0.0.tgz",
"integrity": "sha512-7WyT0w8jhpDStXRq5836AMmihQwq2nrUVQrgjvUo/p/NZf9uy/MeJ246lBJVmWuYXMlJuG9BNZHF0hWjfTbQUA==",
"dev": true
},
"yallist": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
"dev": true
}
}
} }
} }
} }
...@@ -27,34 +27,11 @@ ...@@ -27,34 +27,11 @@
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16", "@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0", "@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"prettier": "^2.4.1",
"sass": "1.26.8", "sass": "1.26.8",
"sass-loader": "^10.0.3", "sass-loader": "^10.0.3",
"webpack-spritesmith": "^0.5.2" "webpack-spritesmith": "^0.5.2"
}, },
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {
"indent": "off"
}
},
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
"last 2 versions", "last 2 versions",
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import { Toast } from "vant"; import { Toast } from "vant";
import "vant/es/toast/style"; import "vant/es/toast/style";
import GLMap from "@/utils/glsk-mapapi-sdk.js";
export default { export default {
name: "mapContent", name: "mapContent",
props: {}, props: {},
...@@ -36,58 +37,116 @@ export default { ...@@ -36,58 +37,116 @@ export default {
const roadActive = ref(null); const roadActive = ref(null);
const isGetLocation = ref(false); const isGetLocation = ref(false);
onMounted(() => {}); onMounted(() => {});
const initMap = (id) => { const initMap = (id, version = 3) => {
let check = () => { return new Promise((resolve) => {
checkLoadedTimeoutId && window.clearTimeout(checkLoadedTimeoutId); let check = () => {
let AMap = window.AMap; checkLoadedTimeoutId && window.clearTimeout(checkLoadedTimeoutId);
if (AMap && typeof AMap.Map == "function") { if(GLMap) {
window.AMap = AMap; new GLMap({ version }, mapapi => {
init(id); // new GLMap(mapapi => {
} else { window.mapapi = mapapi;
checkLoadedTimeoutId = check(); init(id);
} resolve()
}; })
checkLoadedTimeoutId = check(); } else {
checkLoadedTimeoutId = check();
}
};
checkLoadedTimeoutId = check();
});
}; };
const init = (id) => { const init = (id) => {
map = new window.AMap.Map(id); map = window.mapapi.invoke('Map', id);
isUploaded.value = true; var point = mapapi.invoke('Point', 116.2317, 39.5427)
context.emit("isUploaded", true); window.mapapi.invoke('LocalCity', (data) => {
context.emit("getData", map); if(data) {
return map; point = data.center
}
mapapi.invoke('centerAndZoom', point, 10);
isUploaded.value = true;
context.emit("isUploaded", true);
context.emit("getData", map);
return map;
})
}; };
let currMarker = null; let currMarker = null;
// 获取定位 // 获取定位
const getLocation = () => { const getLocation = () => {
isGetLocation.value = true; isGetLocation.value = true;
map.plugin("AMap.Geolocation", function () { window.mapapi.invoke('Geolocation', (data) => {
var geolocation = new window.AMap.Geolocation({ if(data) {
enableHighAccuracy: true, if (currMarker) {
timeout: 10000, // currMarker.setMap(null);
buttonOffset: new window.AMap.Pixel(10, 20), window.mapapi.invoke('removeOverlay', currMarker)
zoomToAccuracy: true,
buttonPosition: "RB",
});
geolocation.getCurrentPosition();
window.AMap.event.addListener(geolocation, "complete", (data) => {
if (currMarker) {
currMarker.setMap(null);
} }
isGetLocation.value = false; isGetLocation.value = false;
currMarker = new window.AMap.Marker({ currMarker = window.mapapi.invoke('Marker', data.point, {
position: data.position, icon: window.mapapi.invoke('Icon', require("@/assets/images/curr-marker.gif"), window.mapapi.invoke('Size', 24, 24)),
content: '<span class="curr-marker"></span>', // offset: window.mapapi.invoke('Pixel', -12, -12),
map: map, })
offset: new window.AMap.Pixel(-12, -12), window.mapapi.invoke('addOverlay', currMarker)
}); window.mapapi.invoke('panTo', data.point)
map.setFitView(); // currMarker = new window.AMap.Marker({
}); // position: data.position,
window.AMap.event.addListener(geolocation, "error", () => { // content: '<span class="curr-marker"></span>',
// map: map,
// offset: new window.AMap.Pixel(-12, -12),
// });
// map.setFitView();
} else {
Toast("获取定位失败"); Toast("获取定位失败");
isGetLocation.value = false; isGetLocation.value = false;
}); }
}); }, {
enableHighAccuracy: true,
timeout: 10000,
})
// map.plugin("AMap.Geolocation", function () {
// var geolocation = new window.AMap.Geolocation({
// enableHighAccuracy: true,
// timeout: 10000,
// buttonOffset: new window.AMap.Pixel(10, 20),
// zoomToAccuracy: true,
// buttonPosition: "RB",
// });
// geolocation.getCurrentPosition();
// window.AMap.event.addListener(geolocation, "complete", (data) => {
// if (currMarker) {
// currMarker.setMap(null);
// }
// isGetLocation.value = false;
// currMarker = new window.AMap.Marker({
// position: data.position,
// content: '<span class="curr-marker"></span>',
// map: map,
// offset: new window.AMap.Pixel(-12, -12),
// });
// map.setFitView();
// });
// window.AMap.event.addListener(geolocation, "error", () => {
// Toast("获取定位失败");
// isGetLocation.value = false;
// });
// });
};
const getLngLat = (lng, lat) => {
return window.mapapi.invoke('Point', lng, lat)
};
const mapMarker = ({point, Animation = null, isAdd = true, icon = require("@/assets/images/curr-marker.gif"), sizeW = 52, sizeH = 52, imgW = 52, imgH = 52 }) => {
var currMarker = window.mapapi.invoke('Marker', point, {
icon: window.mapapi.invoke('Icon', icon, window.mapapi.invoke('Size', sizeW, sizeH), {
imageSize: window.mapapi.invoke('Size', imgW, imgH)
}),
})
// console.log(Animation, 'Animation---')
// Animation && window.mapapi.invoke('markerSetAnimation', Animation)
if(isAdd) {
window.mapapi.invoke('addOverlay', currMarker)
window.mapapi.invoke('panTo', point)
}
return currMarker
}; };
// 刷新 // 刷新
const refresh = () => { const refresh = () => {
...@@ -100,6 +159,8 @@ export default { ...@@ -100,6 +159,8 @@ export default {
getLocation, getLocation,
satelActive, satelActive,
roadActive, roadActive,
getLngLat,
mapMarker,
refresh, refresh,
isUploaded, isUploaded,
isGetLocation, isGetLocation,
......
/* eslint-disable */
!(function (t, r) {
"object" == typeof exports && "undefined" != typeof module
? (module.exports = r())
: "function" == typeof define && define.amd
? define(r)
: ((t = "undefined" != typeof globalThis ? globalThis : t || self).GlMap =
r());
})(this, function () {
"use strict";
function t(t, r) {
(null == r || r > t.length) && (r = t.length);
for (var e = 0, n = Array(r); e < r; e++) n[e] = t[e];
return n;
}
function r(t, r, e, n, o, i, a) {
try {
var c = t[i](a),
u = c.value;
} catch (t) {
return void e(t);
}
c.done ? r(u) : Promise.resolve(u).then(n, o);
}
function e(t, r, e) {
return (
r &&
(function (t, r) {
for (var e = 0; e < r.length; e++) {
var n = r[e];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
"value" in n && (n.writable = !0),
Object.defineProperty(t, i(n.key), n);
}
})(t.prototype, r),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
}
function n() {
n = function () {
return r;
};
var t,
r = {},
e = Object.prototype,
o = e.hasOwnProperty,
i =
Object.defineProperty ||
function (t, r, e) {
t[r] = e.value;
},
a = "function" == typeof Symbol ? Symbol : {},
c = a.iterator || "@@iterator",
u = a.asyncIterator || "@@asyncIterator",
f = a.toStringTag || "@@toStringTag";
function l(t, r, e) {
return (
Object.defineProperty(t, r, {
value: e,
enumerable: !0,
configurable: !0,
writable: !0,
}),
t[r]
);
}
try {
l({}, "");
} catch (t) {
l = function (t, r, e) {
return (t[r] = e);
};
}
function s(t, r, e, n) {
var o = r && r.prototype instanceof g ? r : g,
a = Object.create(o.prototype),
c = new P(n || []);
return i(a, "_invoke", { value: O(t, e, c) }), a;
}
function h(t, r, e) {
try {
return { type: "normal", arg: t.call(r, e) };
} catch (t) {
return { type: "throw", arg: t };
}
}
r.wrap = s;
var p = "suspendedStart",
y = "suspendedYield",
v = "executing",
d = "completed",
m = {};
function g() {}
function w() {}
function b() {}
var L = {};
l(L, c, function () {
return this;
});
var x = Object.getPrototypeOf,
E = x && x(x(T([])));
E && E !== e && o.call(E, c) && (L = E);
var j = (b.prototype = g.prototype = Object.create(L));
function G(t) {
["next", "throw", "return"].forEach(function (r) {
l(t, r, function (t) {
return this._invoke(r, t);
});
});
}
function S(t, r) {
function e(n, i, a, c) {
var u = h(t[n], t, i);
if ("throw" !== u.type) {
var f = u.arg,
l = f.value;
return l && "object" == typeof l && o.call(l, "__await")
? r.resolve(l.__await).then(
function (t) {
e("next", t, a, c);
},
function (t) {
e("throw", t, a, c);
}
)
: r.resolve(l).then(
function (t) {
(f.value = t), a(f);
},
function (t) {
return e("throw", t, a, c);
}
);
}
c(u.arg);
}
var n;
i(this, "_invoke", {
value: function (t, o) {
function i() {
return new r(function (r, n) {
e(t, o, r, n);
});
}
return (n = n ? n.then(i, i) : i());
},
});
}
function O(r, e, n) {
var o = p;
return function (i, a) {
if (o === v) throw Error("Generator is already running");
if (o === d) {
if ("throw" === i) throw a;
return { value: t, done: !0 };
}
for (n.method = i, n.arg = a; ; ) {
var c = n.delegate;
if (c) {
var u = _(c, n);
if (u) {
if (u === m) continue;
return u;
}
}
if ("next" === n.method) n.sent = n._sent = n.arg;
else if ("throw" === n.method) {
if (o === p) throw ((o = d), n.arg);
n.dispatchException(n.arg);
} else "return" === n.method && n.abrupt("return", n.arg);
o = v;
var f = h(r, e, n);
if ("normal" === f.type) {
if (((o = n.done ? d : y), f.arg === m)) continue;
return { value: f.arg, done: n.done };
}
"throw" === f.type &&
((o = d), (n.method = "throw"), (n.arg = f.arg));
}
};
}
function _(r, e) {
var n = e.method,
o = r.iterator[n];
if (o === t)
return (
(e.delegate = null),
("throw" === n &&
r.iterator.return &&
((e.method = "return"),
(e.arg = t),
_(r, e),
"throw" === e.method)) ||
("return" !== n &&
((e.method = "throw"),
(e.arg = new TypeError(
"The iterator does not provide a '" + n + "' method"
)))),
m
);
var i = h(o, r.iterator, e.arg);
if ("throw" === i.type)
return (e.method = "throw"), (e.arg = i.arg), (e.delegate = null), m;
var a = i.arg;
return a
? a.done
? ((e[r.resultName] = a.value),
(e.next = r.nextLoc),
"return" !== e.method && ((e.method = "next"), (e.arg = t)),
(e.delegate = null),
m)
: a
: ((e.method = "throw"),
(e.arg = new TypeError("iterator result is not an object")),
(e.delegate = null),
m);
}
function k(t) {
var r = { tryLoc: t[0] };
1 in t && (r.catchLoc = t[1]),
2 in t && ((r.finallyLoc = t[2]), (r.afterLoc = t[3])),
this.tryEntries.push(r);
}
function A(t) {
var r = t.completion || {};
(r.type = "normal"), delete r.arg, (t.completion = r);
}
function P(t) {
(this.tryEntries = [{ tryLoc: "root" }]),
t.forEach(k, this),
this.reset(!0);
}
function T(r) {
if (r || "" === r) {
var e = r[c];
if (e) return e.call(r);
if ("function" == typeof r.next) return r;
if (!isNaN(r.length)) {
var n = -1,
i = function e() {
for (; ++n < r.length; )
if (o.call(r, n)) return (e.value = r[n]), (e.done = !1), e;
return (e.value = t), (e.done = !0), e;
};
return (i.next = i);
}
}
throw new TypeError(typeof r + " is not iterable");
}
return (
(w.prototype = b),
i(j, "constructor", { value: b, configurable: !0 }),
i(b, "constructor", { value: w, configurable: !0 }),
(w.displayName = l(b, f, "GeneratorFunction")),
(r.isGeneratorFunction = function (t) {
var r = "function" == typeof t && t.constructor;
return (
!!r && (r === w || "GeneratorFunction" === (r.displayName || r.name))
);
}),
(r.mark = function (t) {
return (
Object.setPrototypeOf
? Object.setPrototypeOf(t, b)
: ((t.__proto__ = b), l(t, f, "GeneratorFunction")),
(t.prototype = Object.create(j)),
t
);
}),
(r.awrap = function (t) {
return { __await: t };
}),
G(S.prototype),
l(S.prototype, u, function () {
return this;
}),
(r.AsyncIterator = S),
(r.async = function (t, e, n, o, i) {
void 0 === i && (i = Promise);
var a = new S(s(t, e, n, o), i);
return r.isGeneratorFunction(e)
? a
: a.next().then(function (t) {
return t.done ? t.value : a.next();
});
}),
G(j),
l(j, f, "Generator"),
l(j, c, function () {
return this;
}),
l(j, "toString", function () {
return "[object Generator]";
}),
(r.keys = function (t) {
var r = Object(t),
e = [];
for (var n in r) e.push(n);
return (
e.reverse(),
function t() {
for (; e.length; ) {
var n = e.pop();
if (n in r) return (t.value = n), (t.done = !1), t;
}
return (t.done = !0), t;
}
);
}),
(r.values = T),
(P.prototype = {
constructor: P,
reset: function (r) {
if (
((this.prev = 0),
(this.next = 0),
(this.sent = this._sent = t),
(this.done = !1),
(this.delegate = null),
(this.method = "next"),
(this.arg = t),
this.tryEntries.forEach(A),
!r)
)
for (var e in this)
"t" === e.charAt(0) &&
o.call(this, e) &&
!isNaN(+e.slice(1)) &&
(this[e] = t);
},
stop: function () {
this.done = !0;
var t = this.tryEntries[0].completion;
if ("throw" === t.type) throw t.arg;
return this.rval;
},
dispatchException: function (r) {
if (this.done) throw r;
var e = this;
function n(n, o) {
return (
(c.type = "throw"),
(c.arg = r),
(e.next = n),
o && ((e.method = "next"), (e.arg = t)),
!!o
);
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var a = this.tryEntries[i],
c = a.completion;
if ("root" === a.tryLoc) return n("end");
if (a.tryLoc <= this.prev) {
var u = o.call(a, "catchLoc"),
f = o.call(a, "finallyLoc");
if (u && f) {
if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
if (this.prev < a.finallyLoc) return n(a.finallyLoc);
} else if (u) {
if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
} else {
if (!f) throw Error("try statement without catch or finally");
if (this.prev < a.finallyLoc) return n(a.finallyLoc);
}
}
}
},
abrupt: function (t, r) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var n = this.tryEntries[e];
if (
n.tryLoc <= this.prev &&
o.call(n, "finallyLoc") &&
this.prev < n.finallyLoc
) {
var i = n;
break;
}
}
i &&
("break" === t || "continue" === t) &&
i.tryLoc <= r &&
r <= i.finallyLoc &&
(i = null);
var a = i ? i.completion : {};
return (
(a.type = t),
(a.arg = r),
i
? ((this.method = "next"), (this.next = i.finallyLoc), m)
: this.complete(a)
);
},
complete: function (t, r) {
if ("throw" === t.type) throw t.arg;
return (
"break" === t.type || "continue" === t.type
? (this.next = t.arg)
: "return" === t.type
? ((this.rval = this.arg = t.arg),
(this.method = "return"),
(this.next = "end"))
: "normal" === t.type && r && (this.next = r),
m
);
},
finish: function (t) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var e = this.tryEntries[r];
if (e.finallyLoc === t)
return this.complete(e.completion, e.afterLoc), A(e), m;
}
},
catch: function (t) {
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
var e = this.tryEntries[r];
if (e.tryLoc === t) {
var n = e.completion;
if ("throw" === n.type) {
var o = n.arg;
A(e);
}
return o;
}
}
throw Error("illegal catch attempt");
},
delegateYield: function (r, e, n) {
return (
(this.delegate = { iterator: T(r), resultName: e, nextLoc: n }),
"next" === this.method && (this.arg = t),
m
);
},
}),
r
);
}
function o(r) {
return (
(function (r) {
if (Array.isArray(r)) return t(r);
})(r) ||
(function (t) {
if (
("undefined" != typeof Symbol && null != t[Symbol.iterator]) ||
null != t["@@iterator"]
)
return Array.from(t);
})(r) ||
(function (r, e) {
if (r) {
if ("string" == typeof r) return t(r, e);
var n = {}.toString.call(r).slice(8, -1);
return (
"Object" === n && r.constructor && (n = r.constructor.name),
"Map" === n || "Set" === n
? Array.from(r)
: "Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
? t(r, e)
: void 0
);
}
})(r) ||
(function () {
throw new TypeError(
"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
})()
);
}
function i(t) {
var r = (function (t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var n = e.call(t, r);
if ("object" != typeof n) return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(t);
})(t, "string");
return "symbol" == typeof r ? r : r + "";
}
function a(t) {
return (
(a =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
}),
a(t)
);
}
var c = { 1: "develop", 2: "test", 3: "production", 4: "beta" },
u = (function () {
return e(
function t() {
var e = this;
!(function (t, r) {
if (!(t instanceof r))
throw new TypeError("Cannot call a class as a function");
})(this, t);
var o,
i,
u = { env: 3, version: 3 },
f = arguments[0];
if (
(arguments.length > 1 &&
((u = "object" == a(arguments[0]) ? arguments[0] : u),
(f = arguments[1]),
(null !== (o = u) && void 0 !== o && o.env) || (u.env = 3),
(null !== (i = u) && void 0 !== i && i.version) ||
(u.version = 3)),
"undefined" != typeof window)
) {
var l = (function () {
var t,
o =
((t = n().mark(function t() {
var r, o, i, a;
return n().wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
fetch(
"https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=map-api-js&env=".concat(
c[u.env]
)
)
);
case 3:
return (r = t.sent), (t.next = 6), r.json();
case 6:
(o = t.sent),
(i = Array.from(
document.head.getElementsByTagName("script")
).some(function (t) {
return t.src === o.apiUrl;
})),
i
? f &&
"function" == typeof f &&
(e.GLMap = new window.$GlMapApi(
u,
function () {
f && "function" == typeof f && f(e);
}
))
: (((a =
document.createElement("script")).src =
o.apiUrl),
document.head.appendChild(a),
(a.onload = function () {
e.GLMap = new window.$GlMapApi(
u,
function () {
f && "function" == typeof f && f(e);
}
);
})),
(t.next = 14);
break;
case 11:
(t.prev = 11),
(t.t0 = t.catch(0)),
console.error(
"Failed to fetch configuration:",
t.t0
);
case 14:
case "end":
return t.stop();
}
},
t,
null,
[[0, 11]]
);
})),
function () {
var e = this,
n = arguments;
return new Promise(function (o, i) {
var a = t.apply(e, n);
function c(t) {
r(a, o, i, c, u, "next", t);
}
function u(t) {
r(a, o, i, c, u, "throw", t);
}
c(void 0);
});
});
return function () {
return o.apply(this, arguments);
};
})();
l();
}
},
[
{
key: "invoke",
value: function (t) {
var r,
e = Array.prototype.slice.call(arguments, 1);
return (r = this.GLMap)[t].apply(r, o(e));
},
},
{
key: "map",
get: function () {
return this.GLMap._BMAP;
},
},
{
key: "mapGL",
get: function () {
return this.GLMap._BMapGL;
},
},
]
);
})();
return u;
});
const MAPGEO = { const MAPGEO = {
geocoder: null, geocoder: null,
getGeocoder: function () { getGeocoder: function () {
let AMap = window.AMap; // let AMap = window.AMap;
return new Promise((resolve) => { return new Promise((resolve) => {
AMap.service("AMap.Geocoder", function () { MAPGEO.geocoder = window.mapapi.invoke('Geocoder')
//回调函数 resolve(MAPGEO.geocoder)
var geocoder = new AMap.Geocoder({ // AMap.service("AMap.Geocoder", function () {
batch: true, // //回调函数
}); // var geocoder = new AMap.Geocoder({
MAPGEO.geocoder = geocoder; // batch: true,
resolve(geocoder); // });
}); // MAPGEO.geocoder = geocoder;
// resolve(geocoder);
// });
}); });
}, },
transferAddressByGroup(obj, cb) { transferAddressByGroup(obj, cb) {
...@@ -52,22 +54,34 @@ const MAPGEO = { ...@@ -52,22 +54,34 @@ const MAPGEO = {
function geocoderGetAdr(arr, initIdx) { function geocoderGetAdr(arr, initIdx) {
const timeoutId = window.setTimeout(() => { const timeoutId = window.setTimeout(() => {
MAPGEO.geocoder.getAddress(arr, function (status, result) { arr.forEach((item, idx) => {
if (status === "complete" && result.info === "OK") { window.mapapi.invoke('getLocation', window.mapapi.invoke('Point', item[0], item[1]), res => {
//获取地址成功 data[initIdx + idx].transferAddress = res.address;
result.regeocodes.forEach((item, idx) => { obj.totalNum++;
data[initIdx + idx].transferAddress = item.formattedAddress;
obj.totalNum++;
});
if (obj.totalNum === obj.realNum) { if (obj.totalNum === obj.realNum) {
cb && cb(data); cb && cb(data);
//ifPlay && obj.init(data) //ifPlay && obj.init(data)
//EventBus.$emit('uiMap.replay.transferAdrDone'); //EventBus.$emit('uiMap.replay.transferAdrDone');
} }
} else { })
geocoderGetAdr(arr, initIdx);
}
}); });
// window.mapapi.invoke('getLocation', mapapi.invoke('Point', 116.404, 39.915))
// MAPGEO.geocoder.getAddress(arr, function (status, result) {
// if (status === "complete" && result.info === "OK") {
// //获取地址成功
// result.regeocodes.forEach((item, idx) => {
// data[initIdx + idx].transferAddress = item.formattedAddress;
// obj.totalNum++;
// });
// if (obj.totalNum === obj.realNum) {
// cb && cb(data);
// //ifPlay && obj.init(data)
// //EventBus.$emit('uiMap.replay.transferAdrDone');
// }
// } else {
// geocoderGetAdr(arr, initIdx);
// }
// });
}); });
obj.timeoutIds.push(timeoutId); obj.timeoutIds.push(timeoutId);
......
...@@ -110,7 +110,7 @@ export default defineComponent({ ...@@ -110,7 +110,7 @@ export default defineComponent({
plugins: CONSTANT.MAP_PLUGINS, plugins: CONSTANT.MAP_PLUGINS,
}).then((AMap) => { }).then((AMap) => {
window.AMap = AMap; window.AMap = AMap;
mapContentRefs.value.initMap("fenceContainer"); mapContentRefs.value.initMap("fenceContainer", 1);
geocoderValue.value = new AMap.Geocoder({ geocoderValue.value = new AMap.Geocoder({
radius: 1000, radius: 1000,
extensions: "all", extensions: "all",
...@@ -128,7 +128,8 @@ export default defineComponent({ ...@@ -128,7 +128,8 @@ export default defineComponent({
if (hasProviceCityFence.value && adcodeItemName.value) { if (hasProviceCityFence.value && adcodeItemName.value) {
coverArea(adcodeItemName.value, map); coverArea(adcodeItemName.value, map);
} }
map.setFitView(); // map.setFitView();
window.mapapi.invoke("setViewport", { center: currLnglat.value });
}; };
// 切换围栏类型 // 切换围栏类型
const changeFenceType = (index) => { const changeFenceType = (index) => {
...@@ -145,10 +146,14 @@ export default defineComponent({ ...@@ -145,10 +146,14 @@ export default defineComponent({
if (res.code === 200) { if (res.code === 200) {
if (res.data.length > 0) { if (res.data.length > 0) {
res.data.forEach((val) => { res.data.forEach((val) => {
currLnglat.value = new window.AMap.LngLat( currLnglat.value = mapContentRefs.value.getLngLat(
val["gpsLocation"].elng, val["gpsLocation"].elng,
val["gpsLocation"].elat val["gpsLocation"].elat
); );
// currLnglat.value = new window.AMap.LngLat(
// val["gpsLocation"].elng,
// val["gpsLocation"].elat
// );
drawMarker(currLnglat.value); drawMarker(currLnglat.value);
}); });
} else { } else {
...@@ -180,7 +185,8 @@ export default defineComponent({ ...@@ -180,7 +185,8 @@ export default defineComponent({
currentMap = currentMap currentMap = currentMap
? currentMap ? currentMap
: mapContentRefs.value.init("fenceContainer"); : mapContentRefs.value.init("fenceContainer");
currentMap.setFitView(); // currentMap.setFitView();
window.mapapi.invoke("setViewport", { center: currLnglat.value, zoom: 12 });
showSettingDialog.value = false; showSettingDialog.value = false;
hasRadiusFence.value = true; hasRadiusFence.value = true;
} }
...@@ -203,7 +209,8 @@ export default defineComponent({ ...@@ -203,7 +209,8 @@ export default defineComponent({
); );
adcodeItemName.value = obj.adName; adcodeItemName.value = obj.adName;
coverArea(obj.adName, currentMap); coverArea(obj.adName, currentMap);
currentMap.setFitView(); // currentMap.setFitView();
window.mapapi.invoke("setViewport", { center: currLnglat.value });
hasProviceCityFence.value = true; hasProviceCityFence.value = true;
} }
}); });
...@@ -211,39 +218,56 @@ export default defineComponent({ ...@@ -211,39 +218,56 @@ export default defineComponent({
} }
}; };
const coverArea = (areaName, currentMap) => { const coverArea = (areaName, currentMap) => {
areaPolygons && currentMap.remove(areaPolygons); // areaPolygons && currentMap.remove(areaPolygons);
console.log(areaPolygons, "areaPolygons---");
// areaPolygons.length && window.mapapi.invoke("removeDistrictLayer", areaPolygons);
console.log(areaName, "areaName---");
areaPolygons = [];
//加载行政区划插件 //加载行政区划插件
window.AMap.service("AMap.DistrictSearch", function () { var dist = window.mapapi.invoke("DistrictLayer", {
var opts = { name: `(${areaName})`,
subdistrict: 1, //返回下一级行政区 fillOpacity: 0.7,
extensions: "all", //返回行政区边界坐标组等具体信息 fillColor: "#CCF3FF",
level: "city", //查询行政级别为 市 strokeColor: "#CC66CC",
}; viewport: true,
//实例化DistrictSearch
district = new window.AMap.DistrictSearch(opts);
district.setLevel("district");
//行政区查询
district.search(areaName, function (status, result) {
var bounds = result.districtList[0].boundaries;
areaPolygons = [];
if (bounds) {
for (var i = 0, l = bounds.length; i < l; i++) {
//生成行政区划polygon
var polygon = new window.AMap.Polygon({
map: currentMap,
strokeWeight: 1,
path: bounds[i],
fillOpacity: 0.7,
fillColor: "#CCF3FF",
strokeColor: "#CC66CC",
});
areaPolygons.push(polygon);
}
currentMap.setFitView(); //地图自适应
showSettingDialog.value = false;
}
});
}); });
areaPolygons.push(dist);
window.mapapi.invoke("addDistrictLayer", dist);
showSettingDialog.value = false;
// window.AMap.service("AMap.DistrictSearch", function () {
// var opts = {
// subdistrict: 1, //返回下一级行政区
// extensions: "all", //返回行政区边界坐标组等具体信息
// level: "city", //查询行政级别为 市
// };
// //实例化DistrictSearch
// district = new window.AMap.DistrictSearch(opts);
// district.setLevel("district");
// //行政区查询
// district.search(areaName, function (status, result) {
// var bounds = result.districtList[0].boundaries;
// areaPolygons = [];
// if (bounds) {
// for (var i = 0, l = bounds.length; i < l; i++) {
// //生成行政区划polygon
// var polygon = new window.AMap.Polygon({
// map: currentMap,
// strokeWeight: 1,
// path: bounds[i],
// fillOpacity: 0.7,
// fillColor: "#CCF3FF",
// strokeColor: "#CC66CC",
// });
// areaPolygons.push(polygon);
// }
// currentMap.setFitView(); //地图自适应
// // window.mapapi.invoke("setViewport", { center: currLnglat.value });
// showSettingDialog.value = false;
// }
// });
// });
}; };
// 获取省市code // 获取省市code
const getAdcodeByLatlng = (currLnglat, cb) => { const getAdcodeByLatlng = (currLnglat, cb) => {
...@@ -277,48 +301,77 @@ export default defineComponent({ ...@@ -277,48 +301,77 @@ export default defineComponent({
}; };
// 添加标记 // 添加标记
const drawMarker = (currLnglat) => { const drawMarker = (currLnglat) => {
new window.AMap.Marker({ mapContentRefs.value.mapMarker({
position: currLnglat, point: currLnglat,
content: icon: require("@/assets/images/car.png"),
'<img src=" ' + sizeW: 17,
require("@/assets/images/car.png") + sizeH: 26,
'" style="transform: scale(0.5);" />', imgW: 17,
map: currentMap, imgH: 26,
offset: new window.AMap.Pixel(-17, -26),
}); });
currentMap.setFitView(); // new window.AMap.Marker({
// position: currLnglat,
// content:
// '<img src=" ' +
// require("@/assets/images/car.png") +
// '" style="transform: scale(0.5);" />',
// map: currentMap,
// offset: new window.AMap.Pixel(-17, -26),
// });
// currentMap.setFitView();
window.mapapi.invoke("setViewport", { center: currLnglat, zoom: 14 });
}; };
// 地图添加圆 // 地图添加圆
const createCircle = (lnglat, radius) => { const createCircle = (lnglat, radius) => {
currentMap = currentMap currentMap = currentMap
? currentMap ? currentMap
: mapContentRefs.value.init("fenceContainer"); : mapContentRefs.value.init("fenceContainer");
return new window.AMap.Circle({ var circle = window.mapapi.invoke("Circle", lnglat, radius, {
map: currentMap,
center: lnglat,
radius: radius,
strokeColor: "#0077FF", strokeColor: "#0077FF",
fillColor: "#0077FF", fillColor: "#0077FF",
strokeWeight: 1, strokeWeight: 1,
strokeOpacity: 0.5, strokeOpacity: 0.5,
fillOpacity: 0.16, fillOpacity: 0.16,
}); });
// console.log(areaPolygons, "areaPolygons---");
// areaPolygons.length && window.mapapi.invoke("removeDistrictLayer", areaPolygons[0]);
window.mapapi.invoke("addOverlay", circle);
// return new window.AMap.Circle({
// map: currentMap,
// center: lnglat,
// radius: radius,
// strokeColor: "#0077FF",
// fillColor: "#0077FF",
// strokeWeight: 1,
// strokeOpacity: 0.5,
// fillOpacity: 0.16,
// });
return circle;
}; };
// 围栏中心点 // 围栏中心点
const createPoint = (lnglat) => { const createPoint = (lnglat) => {
currentMap = currentMap currentMap = currentMap
? currentMap ? currentMap
: mapContentRefs.value.init("fenceContainer"); : mapContentRefs.value.init("fenceContainer");
return new window.AMap.Circle({ var circle = window.mapapi.invoke("Circle", lnglat, 3, {
map: currentMap,
center: lnglat,
radius: 3,
strokeColor: "#094", strokeColor: "#094",
fillColor: "#094", fillColor: "#094",
strokeWeight: 3, strokeWeight: 3,
strokeOpacity: 1, strokeOpacity: 1,
fillOpacity: 1, fillOpacity: 1,
}); });
window.mapapi.invoke("addOverlay", circle);
// return new window.AMap.Circle({
// map: currentMap,
// center: lnglat,
// radius: 3,
// strokeColor: "#094",
// fillColor: "#094",
// strokeWeight: 3,
// strokeOpacity: 1,
// fillOpacity: 1,
// });
return circle;
}; };
return { return {
getData, getData,
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
import { ref, defineComponent, onMounted, watch, computed } from "vue"; import { ref, defineComponent, onMounted, watch, computed } from "vue";
import { useStore } from "vuex"; import { useStore } from "vuex";
import mapContent from "@/components/mapContent.vue"; import mapContent from "@/components/mapContent.vue";
import AMapLoader from "@amap/amap-jsapi-loader"; // import AMapLoader from "@amap/amap-jsapi-loader";
import { CONSTANT } from "../constant"; import { CONSTANT } from "../constant";
import MAPGEO from "@/utils/mapgeo"; import MAPGEO from "@/utils/mapgeo";
import wx from "wx"; import wx from "wx";
...@@ -199,7 +199,8 @@ export default defineComponent({ ...@@ -199,7 +199,8 @@ export default defineComponent({
let map = undefined; let map = undefined;
const refreshCb = () => { const refreshCb = () => {
if (map && carItem.value) { if (map && carItem.value) {
map && map.clearMap(); // map && map.clearMap();
window.mapapi.invoke("clearOverlays");
if (Object.keys(carItem.value).length > 0) { if (Object.keys(carItem.value).length > 0) {
getCarInfo(carItem.value); getCarInfo(carItem.value);
} }
...@@ -324,14 +325,18 @@ export default defineComponent({ ...@@ -324,14 +325,18 @@ export default defineComponent({
// } // }
// }); // });
onMounted(() => { onMounted(() => {
AMapLoader.load({ mapContentRefs.value.initMap("container");
key: CONSTANT.MAP_KEY, // mapContentRefs.value.initMap("container").then(res => {
version: "1.4.8", // mapContentRefs.value.getLocation();
plugins: CONSTANT.MAP_PLUGINS, // })
}).then((AMap) => { // AMapLoader.load({
window.AMap = AMap; // key: CONSTANT.MAP_KEY,
mapContentRefs.value.initMap("container"); // version: "1.4.8",
}); // plugins: CONSTANT.MAP_PLUGINS,
// }).then((AMap) => {
// window.AMap = AMap;
// mapContentRefs.value.initMap("container");
// });
initViewport(window.innerHeight); initViewport(window.innerHeight);
}); });
const initViewport = (height) => { const initViewport = (height) => {
...@@ -359,11 +364,12 @@ export default defineComponent({ ...@@ -359,11 +364,12 @@ export default defineComponent({
}); });
localStorage.setItem("carInfo", JSON.stringify(it)); localStorage.setItem("carInfo", JSON.stringify(it));
map = map ? map : mapContentRefs.value.init("container"); map = map ? map : mapContentRefs.value.init("container");
map.clearMap(); // map.clearMap();
window.mapapi.invoke("clearOverlays");
GET_CAR_LOCATION_INFO({ sns: it.sns }).then((res) => { GET_CAR_LOCATION_INFO({ sns: it.sns }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
if (res.data.length > 0) { if (res.data.length > 0) {
const markers = []; const points = [];
let locates = []; let locates = [];
res.data.forEach((item) => { res.data.forEach((item) => {
item.locationType = "gpsLocation"; item.locationType = "gpsLocation";
...@@ -401,7 +407,7 @@ export default defineComponent({ ...@@ -401,7 +407,7 @@ export default defineComponent({
locates.push(item.wifiLocation); locates.push(item.wifiLocation);
item.wifiLocation.transferAddress = ""; item.wifiLocation.transferAddress = "";
} }
markers.push(drawMarker(item, map, locates)); points.push(drawMarker(item, map, locates));
}); });
if (locates.length <= 0) { if (locates.length <= 0) {
return Toast("暂无有效定位点信息"); return Toast("暂无有效定位点信息");
...@@ -409,8 +415,9 @@ export default defineComponent({ ...@@ -409,8 +415,9 @@ export default defineComponent({
MAPGEO.transferAddressByGroup( MAPGEO.transferAddressByGroup(
{ data: locates, timeoutIds: [] }, { data: locates, timeoutIds: [] },
() => { () => {
console.log(markers); if (points.every((item) => item !== undefined)) {
map.setFitView(markers); window.mapapi.invoke("setViewport", points);
}
} }
); );
} else { } else {
...@@ -420,6 +427,7 @@ export default defineComponent({ ...@@ -420,6 +427,7 @@ export default defineComponent({
}); });
}; };
const drawMarker = (item, map, locates) => { const drawMarker = (item, map, locates) => {
console.log(window.mapapi);
//item.locationType = "gpsLocation"; //item.locationType = "gpsLocation";
if (!item[item.locationType]) return; if (!item[item.locationType]) return;
//修改数据格式方便获取 //修改数据格式方便获取
...@@ -431,19 +439,43 @@ export default defineComponent({ ...@@ -431,19 +439,43 @@ export default defineComponent({
item[item.locationType].transferAddress = val.transferAddress; item[item.locationType].transferAddress = val.transferAddress;
} }
}); });
var lnglat = new window.AMap.LngLat( var lnglat = mapContentRefs.value.getLngLat(
item[item.locationType].elng, item[item.locationType].elng,
item[item.locationType].elat item[item.locationType].elat
); );
var marker = new window.AMap.Marker({ var marker = mapContentRefs.value.mapMarker({
position: lnglat, point: lnglat,
content: icon:
item.source == "0" item.source == "0"
? '<span class="marker-class"><span class="icon icon-off-car sn-marker"></span><span class="marker-bottom off-line"><span class="outside off-line"></span><span class="inside off-line"></span></span></span>' ? require("@/assets/icon/off-car.png")
: '<span class="marker-class"><span class="icon icon-on-car sn-marker"></span><span class="marker-bottom on-line"><span class="outside on-line"></span><span class="inside on-line"></span></span></span>', : require("@/assets/icon/on-car.png"),
map: map, Animation: "BMAP_ANIMATION_BOUNCE",
offset: new window.AMap.Pixel(-26, -18),
}); });
// mapContentRefs.value.mapMarker({point: lnglat, icon: item.source == "0" ? require("@/assets/images/curr-marker.gif") : require("@/assets/images/curr-marker.gif"), sizeW: 24, sizeH: 24, imgW: 24, imgH: 24})
// var lnglat = new window.AMap.LngLat(
// item[item.locationType].elng,
// item[item.locationType].elat
// );
// console.log(lnglat)
// var marker = window.mapapi.invoke('Marker', lnglat, {
// icon: window.mapapi.invoke('Icon', require("@/assets/images/curr-marker.gif"), window.mapapi.invoke('Size', 24, 24)),
// // icon: window.mapapi.invoke('Icon', require("@/assets/spritesmith-generated/sprite.png"), window.mapapi.invoke('Size', 24, 24))
// // position: lnglat,
// // content: item.source == "0"
// // ? '<span class="marker-class"><span class="icon icon-off-car sn-marker"></span><span class="marker-bottom off-line"><span class="outside off-line"></span><span class="inside off-line"></span></span></span>'
// // : '<span class="marker-class"><span class="icon icon-on-car sn-marker"></span><span class="/>'
// })
// console.log(marker)
// window.mapapi.invoke('addOverLay', marker)
// var marker = new window.AMap.Marker({
// position: lnglat,
// content:
// item.source == "0"
// ? '<span class="marker-class"><span class="icon icon-off-car sn-marker"></span><span class="marker-bottom off-line"><span class="outside off-line"></span><span class="inside off-line"></span></span></span>'
// : '<span class="marker-class"><span class="icon icon-on-car sn-marker"></span><span class="marker-bottom on-line"><span class="outside on-line"></span><span class="inside on-line"></span></span></span>',
// map: map,
// offset: new window.AMap.Pixel(-26, -18),
// });
var carInfoWindowTpl = `<div class="car-info-window"><div class="car-info-content">`; var carInfoWindowTpl = `<div class="car-info-window"><div class="car-info-content">`;
carInfoWindowTpl += `<div class="main-info">`; carInfoWindowTpl += `<div class="main-info">`;
carInfoWindowTpl += `<h4 class="info-title"><div>${ carInfoWindowTpl += `<h4 class="info-title"><div>${
...@@ -503,18 +535,35 @@ export default defineComponent({ ...@@ -503,18 +535,35 @@ export default defineComponent({
</div>`; </div>`;
let infoDiv = document.createElement("div"); let infoDiv = document.createElement("div");
infoDiv.innerHTML = carInfoWindowTpl; infoDiv.innerHTML = carInfoWindowTpl;
let infoWindow = new window.AMap.InfoWindow({
isCustom: true, var infoWindow = "";
autoMove: false, window.mapapi.invoke("markerAddEventListener", marker, "click", (e) => {
position: lnglat, infoWindow = window.mapapi.invoke("InfoWindow", infoDiv);
content: infoDiv, window.mapapi.invoke(
offset: new window.AMap.Pixel(24, -20), "mapOpenInfoWindow",
infoWindow,
window.mapapi.invoke("markerGetPosition", marker),
{
// offset: window.mapapi.invoke('Size', 22, 100)
}
);
}); });
// mapapi.invoke('mapOpenInfoWindow', infoWindow, mapapi.invoke('markerGetPosition', marker))
// let infoWindow = new window.AMap.InfoWindow({
// isCustom: true,
// autoMove: false,
// position: lnglat,
// content: infoDiv,
// offset: new window.AMap.Pixel(24, -20),
// });
const move = (newLnglat) => { const move = (newLnglat) => {
marker.setPosition(newLnglat); window.mapapi.invoke("markerSetPosition", marker, newLnglat);
infoWindow.setPosition(newLnglat); window.mapapi.invoke("openInfoWindow", infoWindow, newLnglat);
map.setCenter(newLnglat); // marker.setPosition(newLnglat);
map.panBy(0, 70); // infoWindow.setPosition(newLnglat);
// map.setCenter(newLnglat);
// map.panBy(0, 70);
window.mapapi.invoke("panTo", newLnglat);
}; };
//信息窗体内容更新 //信息窗体内容更新
let GPSBtn = infoDiv.querySelector("[data-GPS]"); let GPSBtn = infoDiv.querySelector("[data-GPS]");
...@@ -567,7 +616,10 @@ export default defineComponent({ ...@@ -567,7 +616,10 @@ export default defineComponent({
check(() => { check(() => {
let gpsObj = item["gpsLocation"]; let gpsObj = item["gpsLocation"];
if (gpsObj) { if (gpsObj) {
var newLnglat = new window.AMap.LngLat(gpsObj.elng, gpsObj.elat); var newLnglat = mapContentRefs.value.getLngLat(
gpsObj.elng,
gpsObj.elat
);
GPSIcon && GPSIcon.classList.add("active"); GPSIcon && GPSIcon.classList.add("active");
GPRSIcon && GPRSIcon.classList.remove("active"); GPRSIcon && GPRSIcon.classList.remove("active");
WIFIIcon && WIFIIcon.classList.remove("active"); WIFIIcon && WIFIIcon.classList.remove("active");
...@@ -590,7 +642,7 @@ export default defineComponent({ ...@@ -590,7 +642,7 @@ export default defineComponent({
GPSIcon && GPSIcon.classList.remove("active"); GPSIcon && GPSIcon.classList.remove("active");
WIFIIcon && WIFIIcon.classList.remove("active"); WIFIIcon && WIFIIcon.classList.remove("active");
item.locationType = "bsLocation"; item.locationType = "bsLocation";
var newLnglat = new window.AMap.LngLat( var newLnglat = mapContentRefs.value.getLngLat(
gprsObj.elng, gprsObj.elng,
gprsObj.elat gprsObj.elat
); );
...@@ -608,7 +660,11 @@ export default defineComponent({ ...@@ -608,7 +660,11 @@ export default defineComponent({
check(() => { check(() => {
let wifiObj = item["wifiLocation"]; let wifiObj = item["wifiLocation"];
if (wifiObj) { if (wifiObj) {
var newLnglat = new window.AMap.LngLat( // var newLnglat = new window.AMap.LngLat(
// wifiObj.elng,
// wifiObj.elat
// );
var newLnglat = mapContentRefs.value.getLngLat(
wifiObj.elng, wifiObj.elng,
wifiObj.elat wifiObj.elat
); );
...@@ -692,18 +748,18 @@ export default defineComponent({ ...@@ -692,18 +748,18 @@ export default defineComponent({
showOverlay.value = true; showOverlay.value = true;
}; };
//点击车辆打开信息窗体 //点击车辆打开信息窗体
marker.on("click", () => { // marker.on("click", () => {
map.setCenter(infoWindow.getPosition()); // map.setCenter(infoWindow.getPosition());
map.panBy(0, 70); // map.panBy(0, 70);
if (infoWindow.getIsOpen()) { // if (infoWindow.getIsOpen()) {
infoWindow.close(); // infoWindow.close();
} else { // } else {
infoWindow.open(map); // infoWindow.open(map);
} // }
setAddress(); // setAddress();
setOnlineTime(); // setOnlineTime();
}); // });
return marker; return lnglat;
}; };
const check = (cb) => { const check = (cb) => {
if (isShareDead.value) { if (isShareDead.value) {
...@@ -990,8 +1046,9 @@ export default defineComponent({ ...@@ -990,8 +1046,9 @@ export default defineComponent({
.car-info-window { .car-info-window {
width: 100%; width: 100%;
.car-info-content { .car-info-content {
margin-right: 48px; // margin-right: 48px;
background-color: #fff; background-color: #fff;
// background-color: #961010;
border-radius: 10px; border-radius: 10px;
border: 1px solid #ececec; border: 1px solid #ececec;
color: #111111; color: #111111;
......
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
const timeoutId = ref(null); const timeoutId = ref(null);
const listScroll = ref(0); const listScroll = ref(0);
const changey = ref(null); const changey = ref(null);
// var iii = ref(1)
const refreshCb = (map) => { const refreshCb = (map) => {
map.clearMap(); map.clearMap();
getData(); getData();
...@@ -157,46 +158,78 @@ export default { ...@@ -157,46 +158,78 @@ export default {
}, },
() => { () => {
data.forEach((val) => { data.forEach((val) => {
var lnglat = new window.AMap.LngLat(val.elng, val.elat); // val.elng = +val.elng + Math.random(0,9) * 0.0001 * iii.value
// val.elat = +val.elat + Math.random(0,9) * 0.0001 * iii.value
// iii.value = iii.value + 1
// var lnglat = new window.AMap.LngLat(val.elng, val.elat);
var lnglat = mapContentRefs.value.getLngLat(val.elng, val.elat);
polyLineArr.value.push(lnglat); polyLineArr.value.push(lnglat);
locationList.value.push(val); locationList.value.push(val);
if (!carMarker) { if (!carMarker) {
firstPosLng = val.elng; firstPosLng = val.elng;
firstPosLat = val.elat; firstPosLat = val.elat;
carMarker = new window.AMap.Marker({ carMarker = mapContentRefs.value.mapMarker({
position: lnglat, point: lnglat,
content: icon: require("@/assets/images/car.png"),
'<img src=" ' + sizeW: 17,
require("@/assets/images/car.png") + sizeH: 26,
'" style="transform: scale(0.5);" />', imgW: 17,
map: currentMap, imgH: 26,
offset: new window.AMap.Pixel(-17, -26),
}); });
beginMarker = new window.AMap.Marker({ beginMarker = mapContentRefs.value.mapMarker({
position: lnglat, point: lnglat,
content: '<span class="icon icon-begin" ></span>', isAdd: false,
map: currentMap, icon: require("@/assets/icon/begin.png"),
offset: new window.AMap.Pixel(-17, -26), sizeW: 26,
visible: false, sizeH: 36,
imgW: 26,
imgH: 36,
}); });
// carMarker = new window.AMap.Marker({
// position: lnglat,
// content:
// '<img src=" ' +
// require("@/assets/images/car.png") +
// '" style="transform: scale(0.5);" />',
// map: currentMap,
// offset: new window.AMap.Pixel(-17, -26),
// });
// beginMarker = new window.AMap.Marker({
// position: lnglat,
// content: '<span class="icon icon-begin" ></span>',
// map: currentMap,
// offset: new window.AMap.Pixel(-17, -26),
// visible: false,
// });
} else { } else {
carMarker.setPosition(lnglat); // carMarker.setPosition(lnglat);
window.mapapi.invoke("markerSetPosition", carMarker, lnglat);
if (firstPosLng !== val.elng || firstPosLat !== val.elat) { if (firstPosLng !== val.elng || firstPosLat !== val.elat) {
beginMarker.show(); // beginMarker.show();
window.mapapi.invoke("addOverlay", beginMarker);
} }
if (!polyLine) { if (!polyLine) {
polyLine = new window.AMap.Polyline({ polyLine = mapapi.invoke("Polyline", polyLineArr, {
map: currentMap,
strokeWeight: 2, strokeWeight: 2,
strokeColor: "#0b94db", strokeColor: "#009944",
strokeStyle: "solid",
strokeDasharray: [10, 10],
}); });
window.mapapi.invoke("addOverlay", polyLine);
// polyLine = new window.AMap.Polyline({
// map: currentMap,
// strokeWeight: 2,
// strokeColor: "#0b94db",
// strokeStyle: "solid",
// strokeDasharray: [10, 10],
// });
} }
polyLine.setPath(polyLineArr); // polyLine.setPath(polyLineArr);
window.mapapi.invoke("polylineSetPath", polyLineArr.value);
} }
}); });
currentMap.setFitView(); // currentMap.setFitView();
window.mapapi.invoke("setViewport", polyLineArr.value, {
// zoomFactor: -3
});
timeoutId.value = setTimeout(function () { timeoutId.value = setTimeout(function () {
getData(); getData();
}, 10 * 1000); }, 10 * 1000);
......
...@@ -129,6 +129,7 @@ export default defineComponent({ ...@@ -129,6 +129,7 @@ export default defineComponent({
const currentDate = ref(new Date()); const currentDate = ref(new Date());
const timeBtnList = ["24小时", "3天", "7天"]; const timeBtnList = ["24小时", "3天", "7天"];
const customTime = ref(""); const customTime = ref("");
var idx = ref(0)
const searchTime = ref([ const searchTime = ref([
moment().subtract(1, "day").format("YYYY-MM-DD HH:mm:ss"), moment().subtract(1, "day").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"), moment().format("YYYY-MM-DD HH:mm:ss"),
...@@ -145,51 +146,52 @@ export default defineComponent({ ...@@ -145,51 +146,52 @@ export default defineComponent({
pathSimplifierIns: null, //轨迹实例 pathSimplifierIns: null, //轨迹实例
navg: null, //轨迹巡航器 navg: null, //轨迹巡航器
dis: null, // 轨迹距离 dis: null, // 轨迹距离
speed: null, speed: 0,
}); });
const isPlay = ref(false); const isPlay = ref(false);
const speedItemText = ["慢", "正常", "快", "很快"]; const speedItemText = ["慢", "正常", "快", "很快"];
onMounted(() => { onMounted(() => {
AMapLoader.load({ mapContentRefs.value.initMap("replayContainer", 1);
key: CONSTANT.MAP_KEY, // AMapLoader.load({
version: "1.4.8", // key: CONSTANT.MAP_KEY,
plugins: CONSTANT.MAP_PLUGINS, // version: "1.4.8",
AMapUI: { // plugins: CONSTANT.MAP_PLUGINS,
version: "1.1", // AMapUI: {
plugins: ["overlay/SimpleMarker"], // version: "1.1",
}, // plugins: ["overlay/SimpleMarker"],
}).then((AMap) => { // },
window.AMap = AMap; // }).then((AMap) => {
mapContentRefs.value.initMap("replayContainer"); // window.AMap = AMap;
}); // mapContentRefs.value.initMap("replayContainer");
// });
}); });
const refreshCb = () => { const refreshCb = () => {
if (replay.navg) { // if (replay.navg) {
replay.navg.destroy(); // replay.navg.destroy();
} // }
if (replay.pathSimplifierIns) { if (replay.pathSimplifierIns) {
replay.pathSimplifierIns.setData({ replay.pathSimplifierIns.setData({
path: [], path: [],
}); });
} }
isPlay.value = false; isPlay.value = false;
currentMap.clearMap(); window.mapapi.invoke("clearOverlays");
getCarReplayData(); getCarReplayData();
}; };
// 获取车辆轨迹 // 获取车辆轨迹
const getCarReplayData = (map) => { const getCarReplayData = (map) => {
currentMap = map ? map : currentMap; currentMap = map ? map : currentMap;
getParams(); getParams();
if (replay.navg) { // if (replay.navg) {
replay.navg.destroy(); // replay.navg.destroy();
} // }
if (replay.pathSimplifierIns) { if (replay.pathSimplifierIns) {
replay.pathSimplifierIns.setData({ replay.pathSimplifierIns.setData({
path: [], path: [],
}); });
} }
isPlay.value = false; isPlay.value = false;
currentMap && currentMap.clearMap(); currentMap && window.mapapi.invoke("clearOverlays");
GET_REPLAY_DATA({ ...eParams.value }).then((res) => { GET_REPLAY_DATA({ ...eParams.value }).then((res) => {
showTimeDialog.value = false; showTimeDialog.value = false;
if (res.code === 200) { if (res.code === 200) {
...@@ -305,11 +307,12 @@ export default defineComponent({ ...@@ -305,11 +307,12 @@ export default defineComponent({
} }
customTime.value = null; customTime.value = null;
}; };
const getSpeed = (idx, dis) => {
// 根据路径距离和回放时间 算出回放的speed
return speedEvent(idx, dis);
};
// 根据距离 实时计算速度 // 根据距离 实时计算速度
const speedEvent = (idx, dis) => { const speedEvent = (idx, dis) => {
let index = speedItemText.findIndex((val) => {
return val == idx;
});
let timeArr = [ let timeArr = [
[40, 30, 16], [40, 30, 16],
[30, 20, 12], [30, 20, 12],
...@@ -319,98 +322,165 @@ export default defineComponent({ ...@@ -319,98 +322,165 @@ export default defineComponent({
let speed; let speed;
if (dis >= 100) { if (dis >= 100) {
// 100公里以上 // 100公里以上
speed = Math.floor((dis / timeArr[index][0]) * 3600); speed = Math.floor((dis / timeArr[idx][0]) * 3600);
} else if (dis > 10 && dis < 100) { } else if (dis > 10 && dis < 100) {
// 10-100公里 // 10-100公里
speed = Math.floor((dis / timeArr[index][1]) * 3600); speed = Math.floor((dis / timeArr[idx][1]) * 3600);
} else { } else {
// 10公里以内 // 10公里以内
speed = Math.floor((dis / timeArr[index][2]) * 3600); speed = Math.floor((dis / timeArr[idx][2]) * 3600);
} }
return speed; return speed;
}; };
const initPath = (replayData, currentMap) => { const initPath = (data, currentMap) => {
replay.dis = window.AMap.GeometryUtil.distanceOfLine(replayData) / 1000; // 算出轨迹的距离(km) var replayData = [];
if (replay.PathS) { data.forEach(function (item) {
replay.pathSimplifierIns = new replay.PathS({ let lnglat = mapContentRefs.value.getLngLat(item[0], item[1]);
zIndex: 100, replayData.push(lnglat);
map: currentMap, //所属的地图实例 });
getPath: function (pathData) { let p1 = replayData[0];
return pathData.path; let p2 = replayData[replayData.length - 1];
}, let line = window.mapapi.invoke("Polyline", replayData, {
renderOptions: { strokeColor: "#EC8788",
//轨迹线的样式 strokeWeight: 6,
pathLineStyle: { });
strokeStyle: "#EC8788", // replay.startMarker = mapService.createStartMarker(p1, window.mapapi);
lineWidth: 6, // replay.endMarker = mapService.createEndMarker(p2, window.mapapi);
dirArrowStyle: true, replay.dis = window.mapapi.invoke("getDistance", p1, p2) / 1000; // 算出轨迹的距离(km)
}, window.mapapi.invoke("setViewport", replayData);
pathLineSelectedStyle: { window.mapapi.invoke("addOverlay", line);
strokeStyle: "#EC8788", // window.mapapi.invoke("addOverlay", replay.startMarker);
lineWidth: 6, // window.mapapi.invoke("addOverlay", replay.endMarker);
}, const firstItem = data[0];
}, replay.navg = window.mapapi.invoke("LuShu", replayData, {
}); // defaultContent: getNavgInfoContent(firstItem),
replay.pathSimplifierIns.setData([ autoView: true, // 是否开启自动视野调整,如果开启那么路书在运动过程中会根据视野自动调整
{ speed: getSpeed(replay.speed, replay.dis),
path: replayData, // speed: 300,
}, icon: window.mapapi.invoke(
]); "Icon",
replay.pathSimplifierIns.show(); require("@/assets/images/car0.png"),
replay.speed = speedEvent(speedId.value, replay.dis); window.mapapi.invoke("Size", 26, 17),
//创建一个巡航器 // { anchor: window.mapapi.invoke("Size", 24, 24) }
replay.navg = replay.pathSimplifierIns.createPathNavigator( ),
0, //关联第1条轨迹 enableRotation: true, // 是否设置marker随着道路的走向进行旋转
{ });
loop: false, //循环播放 // window.mapapi.invoke("lushuStart"); //开始
speed: speedEvent(speedId.value, replay.dis), // AMap.invoke('lushuStop') //停止
pathNavigatorStyle: { // AMap.invoke('lushuPause') //暂停
width: 17, // AMap.invoke('lushuShowInfoWindow') //打开信息窗口
height: 26, // EventBus.$emit("uiMap.replay.initDone");
//使用图片 window.mapapi.invoke("lushuAddEventListener", "move", (e) => {
content: replay.PathS.Render.Canvas.getImageContent(carPng), if(e.target.i){
initRotateDegree: 180, idx.value = e.target.i
}, }
}
); // let lnglat = replayData[idx.value];
// let item = data[idx.value];
// window.mapapi.invoke("lushuSetContent", replay.getNavgInfoContent(item)); //设置信息窗口文案
// EventBus.$emit("uiMap.replay.currAddress", "");
// console.log(idx.value, data.length - 1);
// if (idx.value >= data.length - 2) {
// EventBus.$emit("uiMap.replay.done");
// }
});
replay.navg.on("pause", function () { window.mapapi.invoke("lushuAddEventListener", "end", (e) => {
isPlay.value = false; isPlay.value = false;
}); })
} else {
window.AMapUI.load( // replay.dis = window.AMap.GeometryUtil.distanceOfLine(replayData) / 1000; // 算出轨迹的距离(km)
["ui/misc/PathSimplifier"], // if (replay.PathS) {
function (PathSimplifier) { // replay.pathSimplifierIns = new replay.PathS({
if (!PathSimplifier.supportCanvas) { // zIndex: 100,
alert("当前环境不支持 Canvas!"); // map: currentMap, //所属的地图实例
return; // getPath: function (pathData) {
} // return pathData.path;
replay.PathS = PathSimplifier; // },
initPath(replayData, currentMap); // renderOptions: {
} // //轨迹线的样式
); // pathLineStyle: {
} // strokeStyle: "#EC8788",
// lineWidth: 6,
// dirArrowStyle: true,
// },
// pathLineSelectedStyle: {
// strokeStyle: "#EC8788",
// lineWidth: 6,
// },
// },
// });
// replay.pathSimplifierIns.setData([
// {
// path: replayData,
// },
// ]);
// replay.pathSimplifierIns.show();
// replay.speed = speedEvent(speedId.value, replay.dis);
// //创建一个巡航器
// replay.navg = replay.pathSimplifierIns.createPathNavigator(
// 0, //关联第1条轨迹
// {
// loop: false, //循环播放
// speed: speedEvent(speedId.value, replay.dis),
// pathNavigatorStyle: {
// width: 17,
// height: 26,
// //使用图片
// content: replay.PathS.Render.Canvas.getImageContent(carPng),
// initRotateDegree: 180,
// },
// }
// );
// replay.navg.on("pause", function () {
// isPlay.value = false;
// });
// } else {
// window.AMapUI.load(
// ["ui/misc/PathSimplifier"],
// function (PathSimplifier) {
// if (!PathSimplifier.supportCanvas) {
// alert("当前环境不支持 Canvas!");
// return;
// }
// replay.PathS = PathSimplifier;
// initPath(replayData, currentMap);
// }
// );
// }
}; };
// const getNavgInfoContent = (item) => {
// return `<div class="navg-info-window">
// <div class="tit">${item.dateTime}</div>
// <div class="main">
// <p><span class="lb">经度</span>${item.elng}</p>
// <p><span class="lb">纬度</span>${item.elat}</p>
// <p><span class="lb">速度</span>${item.speed} km/h</p>
// </div>
// </div>`;
// };
// 播放轨迹 // 播放轨迹
const play = () => { const play = () => {
if (!replayList.value.length) { if (!replayList.value.length) {
return Toast("暂无轨迹数据"); return Toast("暂无轨迹数据");
} }
if (replay.navg) { if (replay.navg) {
if (replay.navg.getCursor().idx === replay.navg.getPathEndIdx()) { if (idx.value === replayList.value.length - 1) {
replay.navg.start(); window.mapapi.invoke("lushuStop");
} else if (replay.navg.getNaviStatus() === "pause") { window.mapapi.invoke("lushuStart"); //开始
replay.navg.resume();
} else { } else {
replay.navg.start(); window.mapapi.invoke("lushuStart");
isPlay.value = true;
} }
isPlay.value = true;
} }
}; };
// 暂停 // 暂停
const pause = () => { const pause = () => {
if (replay.navg) { if (replay.navg) {
replay.navg.pause(); // replay.navg.pause();
window.mapapi.invoke('lushuPause') //暂停
isPlay.value = false; isPlay.value = false;
} }
}; };
...@@ -420,7 +490,8 @@ export default defineComponent({ ...@@ -420,7 +490,8 @@ export default defineComponent({
return Toast("暂无轨迹数据"); return Toast("暂无轨迹数据");
} }
if (replay.navg) { if (replay.navg) {
replay.navg.start(); // replay.navg.start();
window.mapapi.invoke("lushuStart")
isPlay.value = true; isPlay.value = true;
} }
}; };
......
...@@ -169,7 +169,8 @@ export default defineComponent({ ...@@ -169,7 +169,8 @@ export default defineComponent({
}); });
const refreshCb = (map) => { const refreshCb = (map) => {
map.clearMap(); // map.clearMap();
window.mapapi.invoke("clearOverlays");
getData(); getData();
}; };
const formatter = (type, val) => { const formatter = (type, val) => {
...@@ -248,7 +249,8 @@ export default defineComponent({ ...@@ -248,7 +249,8 @@ export default defineComponent({
if (res.data.length > 0) { if (res.data.length > 0) {
init(currentMap, res.data); init(currentMap, res.data);
} else { } else {
currentMap.clearMap(); // currentMap.clearMap();
window.mapapi.invoke("clearOverlays");
residentList.value = []; residentList.value = [];
Dialog({ message: "暂无数据" }); Dialog({ message: "暂无数据" });
} }
...@@ -263,36 +265,66 @@ export default defineComponent({ ...@@ -263,36 +265,66 @@ export default defineComponent({
timeoutIds: [], timeoutIds: [],
}, },
() => { () => {
var points = [];
for (var i = 0, len = data.length; i < len; i++) { for (var i = 0, len = data.length; i < len; i++) {
var item = data[i]; var item = data[i];
(function (item) { (function (item) {
var lnglat = new window.AMap.LngLat(item.elng, item.elat); var lnglat = mapContentRefs.value.getLngLat(item.elng, item.elat);
var marker = new window.AMap.Marker({ points.push(lnglat);
position: lnglat, // var lnglat = new window.AMap.LngLat(item.elng, item.elat);
content: '<span class="icon icon-resident"></span>', var marker = mapContentRefs.value.mapMarker({
map: currentMap, point: lnglat,
offset: new window.AMap.Pixel(-8.5, -13), icon: require("@/assets/icon/resident.png"),
sizeW: 26,
sizeH: 36,
imgW: 26,
imgH: 36,
}); });
var infoWindow = new window.AMap.InfoWindow({ // var marker = new window.AMap.Marker({
isCustom: true, // position: lnglat,
autoMove: false, // content: '<span class="icon icon-resident"></span>',
position: lnglat, // map: currentMap,
content: `<div class="marker-info-window"><p>${item.transferAddress}</p></div>`, // offset: new window.AMap.Pixel(-8.5, -13),
offset: new window.AMap.Pixel(0, -20), // });
}); // var infoWindow = new window.AMap.InfoWindow({
marker.on("click", function () { // isCustom: true,
currentMap.setCenter(infoWindow.getPosition()); // autoMove: false,
if (infoWindow.getIsOpen()) { // position: lnglat,
infoWindow.close(); // content: `<div class="marker-info-window"><p>${item.transferAddress}</p></div>`,
} else { // offset: new window.AMap.Pixel(0, -20),
infoWindow.open(currentMap); // });
var infoWindow = "";
var infoDiv = `<div class="marker-info-window"><p>${item.transferAddress}</p></div>`;
window.mapapi.invoke(
"markerAddEventListener",
marker,
"click",
(e) => {
infoWindow = window.mapapi.invoke("InfoWindow", infoDiv);
window.mapapi.invoke(
"mapOpenInfoWindow",
infoWindow,
window.mapapi.invoke("markerGetPosition", marker),
{
// offset: window.mapapi.invoke('Size', 22, 100)
}
);
} }
}); );
// marker.on("click", function () {
// currentMap.setCenter(infoWindow.getPosition());
// if (infoWindow.getIsOpen()) {
// infoWindow.close();
// } else {
// infoWindow.open(currentMap);
// }
// });
markerArr.push(marker); markerArr.push(marker);
})(item); })(item);
} }
residentList.value = data; residentList.value = data;
currentMap.setFitView(); // currentMap.setFitView();
window.mapapi.invoke("setViewport", points);
} }
); );
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!