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

王林
王林forward
2023-05-29 20:40:172792browse

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

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete