Ninja Pumpkin Mutants

    @antv/l7-draw
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.8 • Public • Published

    L7Draw

    基于 L7 封装的地理绘制库

    npm Version npm Download Status Percentage of issues still open Average time to resolve an issue

    📚 文档

    文档

    示例

    📦 安装

    npm install @antv/l7-draw

    🔨 使用

    // ----js-----
    import { GaodeMap, Scene } from '@antv/l7';
    import { DrawEvent, DrawPoint } from '@antv/l7-draw';
    
    const scene = new Scene({
      id: 'map',
      map: new GaodeMap({}),
    });
    
    scene.on('loaded', () => {
      // 实例化 Draw
      const draw = new DrawPoint(scene, {
        editable: false,
        // Draw 配置
      });
    
      // 调用 Draw 上的方法
      draw.enable();
    
      // 监听 Draw 的事件
      draw.on(DrawEvent.Add, (newPoint) => {
        console.log(newPoint);
      });
    });
    
    // ----html----
    <div id="map"></div>;

    ⌨️ 本地开发

    # 安装依赖
    npm install
    
    # 运行页面
    npm run start
    
    # 打包
    npm run build

    🤝 如何贡献

    如果您在使用的过程中碰到问题,可以先通过 issues 看看有没有类似的 bug 或者建议。

    📖 许可证

    MIT@AntV.

    Install

    npm i @antv/l7-draw

    DownloadsWeekly Downloads

    581

    Version

    3.0.8

    License

    MIT

    Unpacked Size

    2.67 MB

    Total Files

    340

    Last publish

    Collaborators

    • flash1
    • dreammy23
    • laixingui.lxg
    • zhangjunjie-loki
    • rainy25ghz
    • zeyuwang
    • yanxiong
    • susiwen8
    • freestyle21
    • soundquiet
    • elaine.q.10
    • sturuby
    • lviser
    • sakuya223
    • serializedowen
    • xdzhao
    • yangzhanmei
    • wjgogogo
    • leungwensen
    • dori
    • iaaron
    • yard
    • simaq
    • dxq613
    • intchous
    • susan_ann
    • jinke.li
    • lzxue
    • army8735
    • atool
    • baizn
    • dengfuping
    • neoddish
    • jeffy2012
    • zqlu
    • afc163
    • pomelo-nwu
    • kopiluwaky
    • ccnuzindex
    • panyuqi
    • bubkoo
    • zengyue
    • kasmine
    • boyu.zlj
    • l1ud0ngq1
    • newbyvector
    • winniexing
    • chenluli
    • kn9117
    • xdddst
    • semious2020
    • esora
    • nadia_liu
    • bbsqq
    • mxz96102
    • openwayne
    • pearmini
    • pddpd
    • yiqianyao
    • zhanba
    • cxxxxxn