Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldmap

Package Overview
Dependencies
Maintainers
4
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldmap

2d map visualization lib

  • 0.1.46
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
4
Weekly downloads
 
Created
Source

L.dmap

基于leaflet的地图可视化组件


安装:

npm install node-cube -g

使用:

cube start

http://localhost:9999/demo

接口

1、 .init() 初始化

2、 .data(data) 更新数据,有时数据是异步载入的

3、 update() / .updateData() 数据更新相关的计算和绘制

4、 .render(data) 更新数据并绘制 即 .data方法和updateData方法的叠加

5、 .draw() 仅仅绘制

3、 .hide() 隐藏/回到init刚结束的初始状态而不销毁 hide的时候 必须触发hide事件

4、 .destory() 清除 .destory 彻底销毁元素

事件

常用的有 2d地图: resize movestart moveend data select(点击选择区域)

FAQs

Package last updated on 30 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc