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

@things-factory/scene-baidu-map

v4.3.381

Published

Baidu map integration component for things-scene

Downloads

61

Readme

BAIDU MAP 컴포넌트

두 개의 컴포넌트

  • baidu-map : 맵을 그리는 컴포넌트 (google-map 컴포넌트와 속성 동일)
  • bmap-marker : 바이두맵에 마커를 표시하는 컴포넌트 (gmap-marker 컴포넌트와 속성 동일)

관련 컴포넌트

  • infowindow
  • bmap-marker 의 hover, tap 이벤트에 연결된 경우, 바이두맵에서 클릭하거나 hover 될 때, 바이두맵의 인포윈도우가 보이게 됨

Known Issues

  • 바이두맵 컴포넌트를 사용할 때 관련된 스타일이 자동 설치되나, things-scene-viewer 컴포넌트 내부에 있는 바이두맵 엘리먼트들에 적용되지 못함. 대표적으로 바이두맵의 인포윈도우에 스타일 적용이 안됨.
  • 구글맵과 바이두맵의 위도/경도 마커의 위치에 일정한 차이가 있음. 원인은 아직 잘 모름. 이 경우는 바이두맵 서비스와 우리 컴포넌트와도 차이가 있는지 확인이 필요함.

설치

  • nodejs, npm 을 최신버전으로 설치할 것을 권장함.
$ rm yarn.lock
$ yarn install

실행 (개발중)

$ yarn serve:dev
  • 브라우저(Chrome, ~~Safari~~, ~~Firefox~~, Opera)를 열어서 접속
http://0.0.0.0:3000
  • 서비스포트를 바꾸고 싶다면,..
$ yarn serve:dev -p 3001

빌드 (개발 완료시)

$ yarn build
$ yarn serve

| type | filename | for | tested | | ---- | ---------------------------- | -------------- | ------ | | UMD | things-scene-baidu-map.js | modern browser | O | | UMD | things-scene-baidu-map-ie.js | ie 11 | O | | ES | things-scene-baidu-map.mjs | modern browser | O |

배포

  • npm 리파지토리에 배포하는 것을 의미함.
  • 배포 과정중에 버전업 합니다.
$ yarn publish

커밋

  • github에 업로드하는 것을 의미함.

참조

  • Things Shell [https://github.com/hatiolab/things-shell]
  • Things Shell Demo [https://github.com/hatiolab/things-shell-demo]
  • Things Yeoman Generator [https://github.com/hatiolab/generator-things]

Module

UMD

  • things-scene-baidu-map.js (for modern browser)
  • things-scene-baidu-map-ie.js (for ie 11)

ES Module

  • things-scene-baidu-map.mjs