
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@bmapgl-plugin/cluster
Advanced tools
基于百度地图GL API实现地理点聚合能力,用于展示海量点标记。支持将地理点数据按照距离、属性、地理围栏进行聚合,以提高地图绘制性能。
npm install @bmapgl-plugin/cluster
// 引入
import Cluster from '@bmapgl-plugin/cluster';
// 创建地图
const map = new BMapGL.Map('container');
map.centerAndZoom(new BMapGL.Point(116.418, 39.918), 16);
map.enableScrollWheelZoom(true);
// 创建聚合对象
const cluster = new Cluster.View(map);
// 设置数据
const points: Cluster.TGeoPoints = [];
cluster.setData(points);
// 监听事件
cluster.on(Cluster.ClusterEvent.CLICK, (e: Cluster.ClusterElement) => {
console.log('ClusterEvent.CLICK', e);
});
cluster.on(Cluster.ClusterEvent.MOUSE_OVER, (e: Cluster.ClusterElement) => {
console.log('ClusterEvent.MOUSEOVER', e);
});
cluster.on(Cluster.ClusterEvent.MOUSE_OUT, (e: Cluster.ClusterElement) => {
console.log('ClusterEvent.MOUSEOUT', e);
});
FAQs
基于百度地图GL API实现地理点聚合能力,用于展示海量点标记。支持将地理点数据按照距离、属性、地理围栏进行聚合,以提高地图绘制性能。
The npm package @bmapgl-plugin/cluster receives a total of 0 weekly downloads. As such, @bmapgl-plugin/cluster popularity was classified as not popular.
We found that @bmapgl-plugin/cluster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.