Gathering detailed insights and metrics for @uiw/react-amap-circle
Gathering detailed insights and metrics for @uiw/react-amap-circle
Gathering detailed insights and metrics for @uiw/react-amap-circle
Gathering detailed insights and metrics for @uiw/react-amap-circle
基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。
npm install @uiw/react-amap-circle
Typescript
Module System
Node Version
NPM Version
62.9
Supply Chain
78.6
Quality
87.9
Maintenance
100
Vulnerability
100
License
TypeScript (97.28%)
HTML (2.27%)
Less (0.24%)
CSS (0.14%)
Shell (0.06%)
Total Downloads
50,058
Last Day
40
Last Week
716
Last Month
2,415
Last Year
13,536
MIT License
469 Stars
696 Commits
71 Forks
5 Watchers
11 Branches
21 Contributors
Updated on Jul 04, 2025
Minified
Minified + Gzipped
Latest Version
7.1.8
Package Id
@uiw/react-amap-circle@7.1.8
Unpacked Size
11.93 kB
Size
3.68 kB
File Count
12
NPM Version
10.8.2
Node Version
20.19.1
Published on
May 28, 2025
Cumulative downloads
Total Downloads
构造圆形对象,通过 CircleOptions 指定多边形样式
1import { Circle } from '@uiw/react-amap'; 2// 或者单独安装使用 3import { Circle } from '@uiw/react-amap-circle';
1import ReactDOM from 'react-dom'; 2import React, { useState } from 'react'; 3import { Map, APILoader, Circle } from '@uiw/react-amap'; 4 5const Example = () => { 6 const [show, setShow] = useState(true); 7 return ( 8 <> 9 <button onClick={() => setShow(!show)}> 10 {show ? '隐藏' : '显示'} 11 </button> 12 <div style={{ width: '100%', height: '300px' }}> 13 <Map zoom={14} center={[116.400274, 39.905812]}> 14 <Circle 15 visible={show} 16 radius={1000} 17 strokeColor="#fff" 18 strokeWeight={2} 19 center={new AMap.LngLat(116.39,39.9)} 20 /> 21 </Map> 22 </div> 23 </> 24 ); 25} 26 27const Mount = () => ( 28 <APILoader akey="a7a90e05a37d3f6bf76d4a9032fc9129"> 29 <Example /> 30 </APILoader> 31); 32 33export default Mount;
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
visible | 覆盖物是否可见。 | boolean | - |
radius | 圆半径,单位:米 | number | - |
参数 | 说明 | 类型 |
---|---|---|
onHide | 隐藏 | (): void; |
onShow | 显示 | (): void; |
onRightClick | 鼠标右键单击事件 | (event: MapsEvent): void; |
onClick | 鼠标左键单击事件 | (event: MapsEvent): void; |
onTouchEnd | 鼠标左键单击事件 | (event: MapsEvent): void; |
onDblClick | 鼠标左键双击事件 | (event: MapsEvent): void; |
onTouchMove | 触摸移动进行中时触发事件,仅适用移动设备 | (event: MapsEvent): void; |
onTouchStart | 触摸开始时触发事件,仅适用移动设备 | (event: MapsEvent): void; |
onMouseOut | 鼠标移出 | (event: MapsEvent): void; |
onMouseOver | 鼠标经过 | (event: MapsEvent): void; |
onMouseUp | 鼠标抬起 | (event: MapsEvent): void; |
onMouseDown | 鼠标按下 | (event: MapsEvent): void; |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
11 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
packaging workflow detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 10/30 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-25.9%
40
Compared to previous day
Last Week
9.3%
716
Compared to previous week
Last Month
52.1%
2,415
Compared to previous month
Last Year
-15.3%
13,536
Compared to previous year