
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
@uiw/react-amap-scale-control
Advanced tools
比例尺插件。位于地图右下角,用户可控制其显示与隐藏。继承自 AMap.Control
import { ScaleControl } from '@uiw/react-amap';
// 或者单独安装使用
import { ScaleControl } from '@uiw/react-amap-scale-control';
import ReactDOM from 'react-dom';
import React, { useState } from 'react';
import { Map, APILoader, ScaleControl } from '@uiw/react-amap';
const Demo = () => {
const [show, setShow] = useState(true);
return (
<>
<button onClick={() => setShow(!show)}>
{show ? '关闭' : '开启'}
</button>
<div style={{ width: '100%', height: '300px' }}>
<Map zoom={6}>
<ScaleControl
visible={show}
offset={[60, 10]}
position="RT"
/>
{show && (
<ScaleControl
visible={show}
offset={[20, 10]}
position="RB"
/>
)}
</Map>
</div>
</>
);
}
const Mount = () => (
<APILoader akey="a7a90e05a37d3f6bf76d4a9032fc9129">
<Demo />
</APILoader>
);
export default Mount;
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| visible | 覆盖物是否可见。 | boolean | - |
| position | 控件停靠位置 { top: 5; left: 5; right: 5; bottom: 5 } 或者 'LT': 左上角, 'RT': 右上角, 'LB': 左下角, 'RB': 右下角。 | string/object | - |
| offset | 相对于地图容器左上角的偏移量,正数代表向右下偏移。默认为 AMap.Pixel(10,10) | [number, number] | - |
FAQs
比例尺插件。位于地图右下角,用户可控制其显示与隐藏。继承自 `AMap.Control`。
The npm package @uiw/react-amap-scale-control receives a total of 304 weekly downloads. As such, @uiw/react-amap-scale-control popularity was classified as not popular.
We found that @uiw/react-amap-scale-control demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.