File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 373
373
renderLineGroup : function (splitedPoints ){
374
374
var map = this .baiduMap .map ;
375
375
map .clearOverlays ();
376
- var _this = this ;
377
376
var edgePoints = [];
378
377
var lineGroupArr = [];
379
378
splitedPoints .forEach (pointsGroup => {
384
383
map .setViewport (edgePoints);
385
384
this .lineGroupArr = lineGroupArr;
386
385
this .renderLineGroupController (lineGroupArr);
386
+ this .asyncLogReallyPointsCount (splitedPoints);
387
387
},
388
388
renderLineGroupController : function (lineGroupArr ){
389
389
var html = ' ' ;
390
390
lineGroupArr .forEach ((i , index ) => {
391
391
html += ` <label><input type="checkbox" data-index="${ index} " checked />第${ index + 1 } 段</label>` ;
392
392
});
393
393
$lineGroupControl .innerHTML = html;
394
- }
394
+ },
395
+ asyncLogReallyPointsCount : function (splitedPoints ){
396
+ setTimeout (function (){
397
+ var count = 0 ;
398
+ splitedPoints .forEach (i => {
399
+ i .forEach (j => count += j .points .length );
400
+ });
401
+ $log .innerHTML += `   ; 实际渲染${ count} 个点` ;
402
+ }, 100 );
403
+ }
395
404
};
396
405
pageControl .init ();
397
406
function LineGroup (baiduMap , pointsGroup ){
You can’t perform that action at this time.
0 commit comments