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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ljtcomp/map

v1.0.6-beta.2

Published

A map component library based on mapboxgljs for business level encapsulation

Readme

地图组件

基于 mapboxgl.js 封装的常用项目级别的离线地图组件,方便基础地图交互和数据加载

文档

参考 example.js 文件进行基础功能的使用

地图基础组件项目封装日志

地图初始化 --100% 地图基础图层加载,自定义样式表达式预置调研,悬浮图层事件交互布置优化 --100%

标点添加,自定义 vue 方案布置 --100% 地图控件封装,path 面包屑控件布置 --100% 图片,视频数据源图层布置 --100%

json 数据,图片视频资源配置项添加 --100% 计算质心方案,展示地图名称文本图层,以及动态展示处理 --100% 地图 level 层级下钻限制 处理逻辑 --100% 区块颜色设置功能布置,地图事件配置项入口布置 --100%

配置项优化,开发模式生产模式分离 0418 地图默认携带数据以及资源处理 --

  • V1.0.2 开放用例和静态数据文件 --已打包
  • V1.0.3 地图面包屑逻辑优化,事件逻辑优化处理 --已打包
  • V1.0.6 地图边界选取功能布置添加 --已打包
  • 地区过滤 filter 自定义处理
  • element-plus 添加,全局自定义样式 map 空间前缀

自定义动态图层背景 -- useMap 组件复用 map 上下文逻辑处理 -- 数据聚合拓展处理 --

mapbox-draw 功能拓展添加 自定义图层,threebox 接入,模型导入 引线精灵悬浮框 地图点转换加外层精灵图片或 dom threejs 飞线,边框路径,盾牌特效 在线地图服务配置

其他

git config --global i18n.logoutputencoding utf-8