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

@yoojin282/react-routo-map

v0.1.5

Published

Routo map for React

Readme

@yoojin282/react-routo-map

Routo Map WebJS for React

Useage

이 라이브러리를 사용하기 위해서는 필수적으로 Routo 지도 API를 불러와야 합니다. Routo Map Javscript API Maker, InfoWindow, Polyline 만 구현되어있습니다. 컴퍼넌트 작성이 처음이기도 하고 Document 부재 및 Routo Map Api 가 제대로 작동하지 않기에 기능 구현이 쉽지 않습니다.

Hook을 이용하여 Routo 지도 API 불러오기

const Component = () => {
  const { isLoaded } = useRoutoMapInit({
    appKey: "...", // 발급받은 API KEY
  });
  if (!isLoaded) return null;

  return (
    ...
  );
};

TypeScript

타입스크립트 사용자를 위해 @yoojin282/routo-map-types 패키지를 제공합니다.

tsconfig.jsoncompilerOptions.types 속성에 @yoojin282/routo-map-types 패키지를 추가하시면 됩니다.

{
  ...,
  "compilerOptions": {
    ...,
    "types": [
      ...,
      "@yoojin282/routo-map-types"
    ]
  }
}

Install

npm install @yoojin282/react-routo-map

Simple Usage

style 에 width, height 필수

Marker component

function RoutoMap() {
  return (
    <Map
      center={{
        latitude: "37.52997778",
        longitude: "126.96464444",
      }}
      style={{ width: "500px", height: "400px" }}
    >
      <Marker position={{ lat: "37.52997778", lng: "126.96464444" }} />
    </Map>
  );
}

InfoWindow component

function RoutoMap() {
  const position = { lat: 37.3595704, lng: 127.105399 };

  return (
    <Map style={{ width: "500px", height: "400px" }} center={position}>
      <InfoWindow
        content="인포윈도우1"
        disableAutoPan={true}
        position={position}
      />
    </Map>
  );
}

Polyline component

function RoutoMap() {
  const path = [
    { lat: 37.3595704, lng: 127.105399 },
    { lat: 37.3585781, lng: 127.1053234 },
  ];

  const handleMapLoad = (map) => {
    const bounds = new routo.maps.LatLngBounds();
    for (let i = 0; i < path.length; i++) {
      bounds.extend({ lat: path[i].lat, lng: path[i].lng });
    }
    map.fitBounds(bounds);
  };

  return (
    <Map style={{ width: "500px", height: "400px" }} onLoad={handleMapLoad}>
      <Polyline path={path} />
    </Map>
  );
}

예제 프로젝트

routo-example (nextjs)