Home > Web Front-end > Vue.js > How to use the new version of Amap in vue3 project

How to use the new version of Amap in vue3 project

王林
Release: 2023-05-29 20:40:17
forward
2736 people have browsed it

1. First you need to register an account and log in

How to use the new version of Amap in vue3 project

2. Get the key and secret key

How to use the new version of Amap in vue3 project

How to use the new version of Amap in vue3 project

Upgraded since December 2, 2021, the key applied for after the upgrade must be equipped with a security key jscode Use together

How to use the new version of Amap in vue3 project

NPM way to install and use (basic version):                                                                                                                                                                                   Code:

npm i @amap/amap-jsapi-loader --save
Copy after login

Map plug-in rendering:

Instanced point marker:

First method effect:

How to use the new version of Amap in vue3 project

The second method effect:

How to use the new version of Amap in vue3 project

Vector diagram--> Polyline:

How to use the new version of Amap in vue3 project

The above is the detailed content of How to use the new version of Amap in vue3 project. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template