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 🙏

© 2024 – Pkg Stats / Ryan Hefner

path-planning

v0.0.1

Published

> 基于百度地图2.0 、 react 、antd-mobile 实现的路线规划组件

Downloads

6

Readme

path-planning

基于百度地图2.0 、 react 、antd-mobile 实现的路线规划组件

功能简介

  • 开箱即用、只需简单配置
  • 高端简洁
  • 支持驾车路线、公交路线、步行路线规划
  • 传入默认起点终点后依然支持用户自定义输入地址

喜欢的话给我一颗星吧!

在线体验[codesandbox]

预览图

所需安装依赖

"dependencies": { 
    "antd-mobile": "2.3.3",   
    "react": "16.12.0", 
    "react-dom": "16.12.0", 
}

下载&引用

yarn add path-planning | npm i path-planning

import PathPlanning from 'path-planning'

说明:

    引用组件前应在页面引入百度地图cdn
    <script src="https://api.map.baidu.com/api?v=2.0&ak=[密匙]"></script>

使用实例

//需要注意使用该组件,页面必须是将组件置于单独的一个页面,页面高度需要为窗口高
//也就是说改组件必须单独占一个路由地址 组件属性可以通过路由地址从其他页面传入在传到路线规划组件...
export default ()=>{
    return <div style={{height:"100vh"}}>
        <PathPlanning 
            //属性必须设置
            city={"大连"}
            startAddress={"七贤岭"}
            startAddress={"五十二中"}
        />
    </div>
}