首页 / 浏览问题 / 三维GIS / 问题详情
demo里只有动态画点线多边形的,求动态拉出矩形的方法
1EXP 2020年08月17日
官网demo里只有动态画点线多边形的,求动态拉出矩形的方法

2 个回答

您好,绘制矩形您可以参考http://support.supermap.com.cn:8090/webgl/examples/editor.html#Geometry中的绘制长方体将其中的高度设为0。

6,077EXP 2020年08月17日

或者参考http://support.supermap.com.cn:8090/webgl/examples/editor.html#drawHandler,将其中var handlerPolygon = new Cesium.DrawHandler(viewer,Cesium.DrawMode.Polygon,clampMode);改为var handlerPolygon = new Cesium.DrawHandler(viewer,Cesium.DrawMode.Box,clampMode);

6,077EXP 2020年08月17日
...