Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何基于huiyan-fe / mapv库制作室内点云图(不依赖第三方API server ) #263

Open
wanggaian opened this issue Nov 20, 2021 · 0 comments

Comments

@wanggaian
Copy link

背景:想在页面渲染没有底图的室内点云数据图,不依赖在线的第三方API Server,数据格式是geometry的笛卡尔坐标点线,单次处理的点的数量级是六位数

预期:使用mapv开源组件实现

  1. 因为不想依赖第三方在线的底图server,所以只能用这个函数比较符合需求mapv.canvasDrawSimple.draw(ctx, dataSet, options),
  2. 这里相比第三方的var mapvLayer = new mapv.baiduMapLayer(map, dataSet, options) 方式少了图层用来做拖拽缩放事件触发优化等,因此需要基于Mapv的 BaseLayer.js实现一个自己的layer

问题:

  1. 如何使用mapv中的BaseLayer,如源码中的写法(https://github.com/huiyan-fe/mapv/blob/master/src/map/BaseLayer.js) BaseLayer没有export出来,,npm包里mapv.js也是没有的(只有var baseLayer function{}),请问下这种情况如何继承BaseLayer去实现自己的layer
  2. 请教一下这种不依赖底图(或者说想画的就是底图)的case,一般采用什么方案比较好,因为mapv.canvasDrawSimple.draw(ctx, dataSet, options) 数据渲染几十万个点加载平移缩放等操作的卡顿感比较重
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant