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

shengmap

v0.1.1

Published

sh-map

Readme

地图组件



导入组件


import  Map from '@/components/index.vue'
<template> 
    <Map searchBox toolBox mapSelect :isShowPlan='true' :position='[119.353643,26.083881]' :isZoom='10' roadColor='red' :roadWidth='8'   :startPic='require("../..")' :searchPoint='require("././..")' drawColor="red" fillColor='red' :pointPic='require("../..")'  initialUrl='..' :carStyle1="require(../.)"  :carImg='require("../static/car/stop.png")'/>
</template>

Attributes

    searchBox       是否显示 searchBox 组件        default false                     type Boolean

    toolBox         是否显示 toolBox 组件          default false                     type Boolean   
    
    iconList        是否显示 iconList 组件         default false                     type Boolean

    toggleCar       是否显示 toggleCar 组件        default false                     type Boolean

    mapSelect       是否显示 toggleCar 组件        default false                     type Boolean

    isShowPlan      是否显示路线详细规划            default true                      type Boolean 

    position        地图初始化中心点                default  [119.353643,26.083881]   type Array

    isZoom          地图初始化缩放等�?             default  8                        type Number 

    roadColor       路线规划渲染的颜�?             default 'green'                   type String

    roadWidth       路线规划渲染的宽�?             default  3                        type Number

    startPic        路线规划起点图标                default  默认样式 

    endPic          路线规划终点图标                default  默认样式 

    searchPoint     搜索地址图标                    default  默认样式   

    drawColor       绘制几何图形边界颜色             default '#3f94f2'                type String

    fillColor       绘制几何图形填充颜色             default rgba(255,255,255,0.2)    type String

    pointPic        绘制点的图标                    default  默认样式                 type String

    initialUrl      配置地图图源   
    default 'http://192.168.1.13:8081/shenghuimap/goldMap/getImage/V1/{z}/{x}/{y}.png' 

    carStyle1       配置可选择运行车辆图片               default  默认样式                type String

    carStyle2       配置可选择运行车辆图片           default  默认样式                type String

    stopCarStyle1   配置可选择静止车辆图片           default  默认样式                type String

    stopCarStyle2   配置可选择静止车辆图片           default  默认样式                type String

    carImg          配置初始运行车辆图片             default  默认样式                type String

    carStopImg      配置初始静止车辆图片             default  默认样式                type String