npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

xverse-components-realtime-map

v1.0.3

Published

xverse components realtime-map

Downloads

40

Readme

API

| 参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 | | ------------------------- | --------------------------- | -------------------------- | ------ | -------- | ----------------------------------------------------------------- | | mapUrl | string | 大地图背景图 | - | true | - | | pointerUrl | string | 指针图片 | - | false | - | | pointerStyle | CSSProperties | 指针样式 | - | false | - | | vertex | IPosition[] | 地图四个顶点坐标 | - | false | 依次是左上、右上、右下、左下,长度必须为 4 | | virtualMapWidth | number | 虚拟大地图的 UI 宽度 | - | true | 单位 px | | virtualMapHeight | number | 虚拟大地图的 UI 高度 | - | true | 单位 px | | virtualMiniMapDiameter | number | 小地图模式时的圆形 UI 直径 | 100 | false | 单位 px | | miniMapExtraStyle | CSSProperties | 小地图的装饰样式 | - | false | - | | isMiniMapMode | boolean | 是否小地图模式 | - | false | - | | onExit | () => void | 退出回调 | - | false | - | | locations | IRealtimeMapLocationProps[] | 景点列表 | - | false | - | | children | ReactNode | | - | false | - | | showArrowhead | boolean | 是否显示箭头 | - | false | - | | arrowhead | IArrowhead[] | 移动地图的箭头 | - | false | 依次是上、下,左、右 | | backBtnStyle | CSSProperties | 返回按钮样式 | - | false | - | | currentLocationStyle | CSSProperties | 当前位置样式 | - | false | - | | currentLocationIconUrl | string | 当前位置 icon 图片 | - | false | - | | commonLocationsStyle | CSSProperties | 景点未选中时的通用样式 | - | false | 优先级:子组件自定义配置 > 父组件通用配置,为简化配置,进行浅合并 | | commonActiveLocationStyle | CSSProperties | 景点选中时的通用样式 | - | false | 优先级:子组件自定义配置 > 父组件通用配置,为简化配置,进行浅合并 | | forwardBtn | IButtonProps | 点击立即前往按钮 | - | false | 如果需要自定义逻辑,无需配置 | | className | string | css 类名 | - | false | - | | onClick | () => void | 点击地图时的回调 | - | false | - | | onMovingClick | () => void | 移动中点击地图 | - | false | - |