All Projects → pansyjs → react-amap

pansyjs / react-amap

Licence: MIT license
基于 React 封装的高德地图组件,助你轻松的接入高德地图到 React 项目中。

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to react-amap

Boundless
✨ accessible, battle-tested React components with infinite composability
Stars: ✭ 242 (+231.51%)
Mutual labels:  react-component
react-input-trigger
React component for handling character triggers inside textareas and input fields. 🐼
Stars: ✭ 88 (+20.55%)
Mutual labels:  react-component
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (+116.44%)
Mutual labels:  react-component
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+4189.04%)
Mutual labels:  react-component
react-antd-formutil
Happy to use react-formutil in the project based on ant-design ^_^
Stars: ✭ 16 (-78.08%)
Mutual labels:  react-component
react-bolivianite-grid
React grid component for virtualized rendering large tabular data.
Stars: ✭ 95 (+30.14%)
Mutual labels:  react-component
React Sweet Progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 239 (+227.4%)
Mutual labels:  react-component
react-tv-navigation
React Navigation for TVs
Stars: ✭ 64 (-12.33%)
Mutual labels:  react-component
rn-markdown
basic markdown renderer for react-native using the great https://github.com/chjj/marked parser
Stars: ✭ 21 (-71.23%)
Mutual labels:  react-component
redux-autoloader
A higher order component for declarative data loading in React and Redux.
Stars: ✭ 56 (-23.29%)
Mutual labels:  react-component
React Powerplug
🔌 Renderless Containers
Stars: ✭ 2,704 (+3604.11%)
Mutual labels:  react-component
mifitxiaomipiholelist
MiFit/Xiaomi PiHole Bock List
Stars: ✭ 28 (-61.64%)
Mutual labels:  amap
react-win32dialog
💠 Modeless, resizeable and moveable dialog boxes with a classic Windows look-and-feel. Comes with a lightweight window manager that supports window stacking.
Stars: ✭ 30 (-58.9%)
Mutual labels:  react-component
Sweetalert React
Declarative SweetAlert in React
Stars: ✭ 244 (+234.25%)
Mutual labels:  react-component
react-svg-icon-generator
Generate React Icon Component from SVG icons to show, resize and recolor them.
Stars: ✭ 65 (-10.96%)
Mutual labels:  react-component
React Css Grid
React layout component based on CSS Grid Layout and built with styled-components
Stars: ✭ 239 (+227.4%)
Mutual labels:  react-component
react-power-select
A highly composable & reusable select/autocomplete components
Stars: ✭ 63 (-13.7%)
Mutual labels:  react-component
react-treeview-component
A react tree-component where user can customize the the tree according to their need
Stars: ✭ 18 (-75.34%)
Mutual labels:  react-component
awesome-web-react
🚀 Awesome Web Based React 🚀 Develop online with React!
Stars: ✭ 31 (-57.53%)
Mutual labels:  react-component
react-ogp
🌐 The ultimate React OpenGraph component
Stars: ✭ 27 (-63.01%)
Mutual labels:  react-component

React AMap

基于 React 封装的高德地图组件,助你轻松的接入高德地图到 React 项目中。

Forks Stars npm version

本仓库提供了常用的地图组件,如不满足您的需求:

  1. 请在 issues 提出需求。
  2. 提 PR 扩展组件。
  3. 使用提供的自定义组件的能力,自己封装。

注意

由于高德APIv1v2兼容性问题,本仓库提供对应的版本

  • v1.x.x 对应 amap v1
  • v2.x.x 对应 amap v2

特性

  • 📦 开箱即用,封装了大部分常用的地图组件
  • 🎉 可扩展,支持自定义地图组件
  • 💻 使用 TypeScript 编写,提供完善的类型定义,包含高德地图 JS SDK 类型声明

🏗 安装

# npm install
$ npm install @pansy/react-amap --save

# yarn install
$ yarn add @pansy/react-amap

# pnpm install
$ pnpm i @pansy/react-amap

🔨 使用

<div id="app"></div>
#app {
  width: 600px;
  height: 400px;
}
import React from 'react';
import ReactDOM from 'react-dom';
import { Map } from '@pansy/react-amap';

ReactDOM.render(
  <Map mapKey={YOUR_AMAP_KEY} />,
  document.querySelector('#app')
)

🎉 组件列表

地图

名称 说明
APILoader JS API加载
Map 地图组件

图层

名称 说明
Heatmap 热力图
Satellite 卫星图
Traffic 实时交通图层

点标记

名称 说明
ElasticMarker 灵活点标记
Marker 点标记
MarkerCluster 点聚合
MassMarks 海量点类

信息窗体

名称 说明
InfoWindow 信息窗体

右键菜单

名称 说明
ContextMenu 右键菜单

矢量图形

名称 说明
BezierCurve 贝塞尔曲线
Circle 圆形
CircleMarker 圆点标记
Ellipse 椭圆
Polygon 多边形
Polyline 折线
Rectangle 矩形

工具

名称 说明
MouseTool 鼠标工具
RangingTool 距离量测
BezierCurveEditor 贝瑟尔曲线编辑
CircleEditor 圆形编辑
EllipseEditor 椭圆编辑
PolyEditor 折线/多边形编辑
PolygonEditor 多边形编辑
PolylineEditor 折线编辑
RectangleEditor 矩形编辑

地图控件

名称 说明
ControlBar 3D控制组件
HawkEye 地图鹰眼
MapType 地图类型切换
Scale 比例尺
ToolBar 工具条

搜索

名称 说明
AutoComplete 关键字搜索
DistrictSearch 行政区查询

地理编码

名称 说明
Geocoder 地理编码与逆地理编码服务

AMapUI

名称 说明
PathNavigator 轨迹巡航控制
PointSimplifier 海量点展示

👥 社区互助

Github Issue 钉钉群 微信群
issues
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].