修改
This commit is contained in:
@ -120,7 +120,6 @@ class DrawPolyline extends Draw {
|
||||
}
|
||||
cache_positions.push(cartesian)
|
||||
this.points_ids.push(this.create_point(cartesian, this.viewer))
|
||||
|
||||
if (cache_positions.length >= this.options.number) {
|
||||
let positions = []
|
||||
cache_positions.forEach((item) => {
|
||||
@ -138,7 +137,8 @@ class DrawPolyline extends Draw {
|
||||
this.end()
|
||||
}
|
||||
else {
|
||||
cb(cache_positions.length)
|
||||
// cb(cache_positions.length)
|
||||
cb(null, cache_positions)
|
||||
}
|
||||
})
|
||||
this.event.mouse_right((movement, cartesian) => {
|
||||
|
||||
@ -118,7 +118,6 @@ function open(sdk) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!gridPrimitives) {
|
||||
gridPrimitives = new Cesium.PrimitiveCollection();
|
||||
gridPrimitives.name = 'SheetIndexGridPrimitives';
|
||||
@ -128,7 +127,6 @@ function open(sdk) {
|
||||
labelCollection = new Cesium.LabelCollection();
|
||||
labelCollection.name = 'SheetIndexLabelCollection';
|
||||
}
|
||||
|
||||
let stationaryFrames = 0;
|
||||
let maxRectangle = null;
|
||||
gridPrimitives.postRenderEvent = () => {
|
||||
|
||||
@ -72,6 +72,7 @@ class BatchModel extends Base {
|
||||
break;
|
||||
}
|
||||
Draw && Draw.start((a, positions) => {
|
||||
console.log(positions, 'positions')
|
||||
this.options.positions = positions;
|
||||
//判断范围是否过大
|
||||
if (options.type == '面') {
|
||||
|
||||
Reference in New Issue
Block a user