vue-amap

website·Indexed 31 days ago

https://vue-amap.guyixi.cn/

A Vue-driven wrapper for AMap 2.0 and Loca components, providing a data-driven development experience with comprehensive TypeScript support based on official type files.

Tokens
261
Snippets
2
Records
3
Agent score
0%

What's inside vue-amap

  1. Overview of vue-amap features

    vue-amap is a Vue-driven wrapper for AMap 2.0 and Loca components. Key features include:

    • Vue Integration: Focus on data changes for map updates.
    • Comprehensive Coverage: Supports all common AMap 2.0 and Loca components.
    • Customizability: Provides interfaces to develop native objects for custom functionality.
    • TypeScript Support: Includes comprehensive TS types based on official definitions, including Loca types.
  2. Include vue-amap via CDN

    Add the vue-amap library and its corresponding styles directly to your HTML using the unpkg CDN.
    <script src="https://unpkg.com/@vuemap/vue-amap/dist/index.js"></script>
    <script src="https://unpkg.com/@vuemap/vue-amap/dist/style.css"></script>
  3. Install vue-amap via npm

    Install the core AMap library, the Loca library for data visualization, or the extra library for Three.js integration using npm.
    # Install core AMap library
    npm install @vuemap/vue-amap --save
    
    # Install Loca library
    npm install @vuemap/vue-amap-loca --save
    
    # Install extension library (Three.js)
    npm install @vuemap/vue-amap-extra --save