All Projects → ElemeFE → Vue Amap

ElemeFE / Vue Amap

Licence: mit
🌍 基于 Vue 2.x 和高德地图的地图组件

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to Vue Amap

bootstrap-vue-3
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
Stars: ✭ 314 (-89.79%)
Mutual labels:  component-library
affinity
affinity is a case study: an attempt to create a simple component based library
Stars: ✭ 19 (-99.38%)
Mutual labels:  component-library
comento-ui
Vue UI components used in Comento
Stars: ✭ 25 (-99.19%)
Mutual labels:  component-library
ungeui
A Vue 3 Component Library
Stars: ✭ 23 (-99.25%)
Mutual labels:  component-library
carbon-components-vue
⛰️Carvue.js -- Carbon design for VueJS
Stars: ✭ 104 (-96.62%)
Mutual labels:  component-library
tailwind-ui-components
Free Tailwind CSS UI Components - Crafted for modern websites, landing pages and web apps. TailGrids Core is free and open-source so, feel free to use with your personal or commercial projects. If you would like to show your support and love, don't forget to give us a star 🌟
Stars: ✭ 49 (-98.41%)
Mutual labels:  component-library
taiga-ui
Angular UI Kit and components library for awesome people
Stars: ✭ 2,251 (-26.77%)
Mutual labels:  component-library
Frontend
Front-end component library for 24 ways. (2013-2019)
Stars: ✭ 266 (-91.35%)
Mutual labels:  component-library
NIM iOS UIKit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币/京东卡,现在推荐使用网易云信,最低得0.02BTC或3000元京东卡/单,点击参与:https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,371 (-55.4%)
Mutual labels:  component-library
nuxt-styleguide
Increase the quality and efficiency of product design and development workflows
Stars: ✭ 15 (-99.51%)
Mutual labels:  component-library
core
The framework for huge projects, with a focus on maintainability
Stars: ✭ 18 (-99.41%)
Mutual labels:  component-library
mayflower
Mayflower Mono Repo (react and pattern lab and documentation)
Stars: ✭ 17 (-99.45%)
Mutual labels:  component-library
sodium-ui
Sodium is a simple, modular and customizable web component library to build elegant and accessible UI pieces for your React Application.
Stars: ✭ 23 (-99.25%)
Mutual labels:  component-library
backoffice
React GUI-Framework based on Material UI; provides a couple of components for back-office apps (CRUD-based APIs)
Stars: ✭ 17 (-99.45%)
Mutual labels:  component-library
Operational Ui
Building blocks for effective operational interfaces
Stars: ✭ 258 (-91.61%)
Mutual labels:  component-library
AMapMarker-master
提供一种高德地图自定义marker的解决方案以及改善高德官方点聚合功能
Stars: ✭ 63 (-97.95%)
Mutual labels:  amap
component-library
An easy way to create HTML styleguide for existing web project
Stars: ✭ 39 (-98.73%)
Mutual labels:  component-library
First Born
Component library for React Native
Stars: ✭ 267 (-91.31%)
Mutual labels:  component-library
React Weui
weui for react
Stars: ✭ 2,793 (-9.14%)
Mutual labels:  component-library
marble
Marble is the design system used by The Metropolitan Museum of Art 🏛
Stars: ✭ 14 (-99.54%)
Mutual labels:  component-library

vue-amap

Build Status npm package NPM downloads JS gzip size license GitHub stars

vue-amap是一套基于Vue 2.0和高德地图的地图组件。

安装

npm install -S vue-amap

文档

https://elemefe.github.io/vue-amap

快速上手

引入vue-amap

// 引入vue-amap
import VueAMap from 'vue-amap';
Vue.use(VueAMap);

// 初始化vue-amap
VueAMap.initAMapApiLoader({
  // 高德的key
  key: 'YOUR_KEY',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 高德 sdk 版本,默认为 1.4.4
  v: '1.4.4'
});

组件

地图

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
</el-amap>

点坐标

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-marker v-for="marker in markers" :position="marker.position"></el-amap-marker>
</el-amap>

折线

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-polyline :path="polyline.path"></el-amap-polyline>
</el-amap>

多边形

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-polygon v-for="polygon in polygons" :path="polygon.path" :events="polygon.events"></el-amap-polygon>
</el-amap>

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-circle v-for="circle in circles" :center="circle.center" :radius="circle.radius"></el-amap-circle>
</el-amap>

图片覆盖物

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-ground-image v-for="groundimage in groundimages" :url="groundimage.url"></el-amap-ground-image>
</el-amap>

文本

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-text v-for="text in texts"></el-amap-text>
</el-amap>

贝塞尔曲线

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-bezier-curve v-for="line in lines"></el-amap-bezier-curve>
</el-amap>

圆点标记

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-circle-marker v-for="marker in markers"></el-amap-circle-marker>
</el-amap>

椭圆

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-ellipse v-for="ellipse in ellipses"></el-amap-ellipse>
</el-amap>

矩形

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-rectangle v-for="rectangle in rectangles"></el-amap-rectangle>
</el-amap>

信息窗体

<el-amap vid="amapDemo" :zoom="zoom" :center="center">
  <el-amap-info-window v-for="window in windows" :position="window.position" :content="window.content" :open="window.open"></el-amap-info-window>
</el-amap>

Search-Box

<el-amap-search-box class="search-box" :search-option="searchOption" :on-search-result="onSearchResult"></el-amap-search-box>
<el-amap vid="amapDemo">
</el-amap>

其他特性

  • 支持自定义组件
  • 支持官方 UI 组件库

反馈

文档被大家吐槽了挺久,这段时间,针对大家的问题,对文档进行了一次升级。后续将重点持续完善「示例中心」,如果大家在使用过程中,遇到了些问题,欢迎提 issue,我们将根据大家的反馈,逐渐充实「示例中心」,更好地为大家服务。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].