问题场景描述:
FixedRoute的position数据已经很精细时,会导致卡死的问题
解决方案:
1.
数据已经很精细时,可以不用autoSurfaceHeight来计算,如果非要用,可以加个minDistance: 200参数。
fixedRoute.autoSurfaceHeight({ minDistance: 200 }).then(function (e) {startFly(fixedRoute)})
相关链接:
http://mars3d.cn/editor-vue.html?key=ex_7_5_5&id=graphic/custom/fixedRoute-ground
问题position:
[[113.160166,36.393681,2000],[113.160652,36.402682,2000],[113.161138,36.411684,2000],[112.926933,35.334259,2000],[112.924667,35.343061,2000],[112.924567,35.352066,2000],[112.924879,35.361074,2000],[112.925192,35.370083,2000],[112.925504,35.379092,2000],[112.926303,35.388072,2000],[112.928366,35.396924,2000],[112.930459,35.405772,2000],[112.932551,35.41462,2000],[112.934645,35.423468,2000],[112.936738,35.432316,2000],[112.938832,35.441164,2000],[112.940927,35.450012,2000],[112.943022,35.458859,2000],[112.945117,35.467707,2000],[112.947213,35.476555,2000],[112.949907,35.485283,2000],[112.954443,35.493488,2000],[112.959381,35.501545,2000],[112.96432,35.509601,2000],[112.96926,35.517657,2000],[112.9742,35.525714,2000],[112.979142,35.53377,2000],[112.984085,35.541825,2000],[112.989029,35.549881,2000],[112.993575,35.558083,2000],[112.996806,35.566699,2000],[112.999959,35.575335,2000],[113.003114,35.58397,2000],[113.006093,35.592645,2000],[113.007944,35.601527,2000],[113.009649,35.610431,2000],[113.009677,35.619414,2000],[113.008086,35.628332,2000],[113.006474,35.637247,2000],[113.004333,35.646079,2000],[113.000348,35.65447,2000],[112.995225,35.662453,2000],[112.990078,35.670426,2000],[112.984944,35.678405,2000],[112.980823,35.686756,2000],[112.977273,35.695289,2000],[112.972808,35.703525,2000],[112.968218,35.711718,2000],[112.964696,35.720259,2000],[112.961228,35.728815,2000],[112.95776,35.737372,2000],[112.954199,35.745902,2000],[112.949052,35.75386,2000],[112.943872,35.761797,2000],[112.941912,35.770623,2000],[112.942019,35.779632,2000],[112.940386,35.788539,2000],[112.938587,35.79743,2000],[112.936739,35.806307,2000],[112.932987,35.814781,2000],[112.930591,35.823548,2000],[112.931316,35.83251,2000],[112.934667,35.841091,2000],[112.938365,35.849584,2000],[112.942064,35.858078,2000],[112.945763,35.866571,2000],[112.950393,35.874735,2000],[112.956956,35.881988,2000],[112.963739,35.889111,2000],[112.969838,35.896613,2000],[112.974594,35.90475,2000],[112.979319,35.912901,2000],[112.984044,35.921051,2000],[112.988771,35.929201,2000],[112.993498,35.937351,2000],[112.998227,35.945501,2000],[113.002956,35.95365,2000],[113.00749,35.961869,2000],[113.009363,35.970708,2000],[113.007882,35.979619,2000],[113.006562,35.988542,2000],[113.008683,35.997344,2000],[113.014233,36.005098,2000],[113.0226,36.010949,2000],[113.032863,36.014252,2000],[113.043889,36.015146,2000],[113.054953,36.01577,2000],[113.065802,36.017582,2000],[113.076432,36.020147,2000],[113.085999,36.024625,2000],[113.093238,36.031397,2000],[113.097351,36.039721,2000],[113.097885,36.04868,2000],[113.095217,36.057412,2000],[113.092966,36.066216,2000],[113.093412,36.075196,2000],[113.096566,36.083812,2000],[113.100892,36.09211,2000],[113.105222,36.100407,2000],[113.110548,36.10829,2000],[113.118084,36.114876,2000],[113.126923,36.120329,2000],[113.134826,36.126634,2000],[113.140823,36.134196,2000],[113.14514,36.142496,2000],[113.149312,36.150847,2000],[113.153485,36.159197,2000],[113.157559,36.167579,2000],[113.159539,36.176414,2000],[113.158369,36.185343,2000],[113.155039,36.193938,2000],[113.153077,36.202783,2000],[113.153872,36.211747,2000],[113.156838,36.220428,2000],[113.160007,36.229064,2000],[113.163177,36.237701,2000],[113.16616,36.246378,2000],[113.167115,36.25534,2000],[113.167512,36.264341,2000],[113.170053,36.273094,2000],[113.173573,36.281642,2000],[113.176269,36.290373,2000],[113.177147,36.299345,2000],[113.176174,36.30831,2000],[113.173376,36.31702,2000],[113.168832,36.325234,2000],[113.163112,36.332964,2000],[113.157447,36.34072,2000],[113.153819,36.349206,2000],[113.153295,36.358176,2000],[113.155501,36.366998,2000],[113.158068,36.375766,2000],[113.159625,36.384682,2000],[113.161625,36.420685,2000],[113.162111,36.429687,2000],[113.162598,36.438688,2000],[113.163084,36.44769,2000],[113.163571,36.456691,2000],[113.164058,36.465692,2000],[113.164222,36.474695,2000],[113.161778,36.483455,2000],[113.156375,36.491303,2000],[113.148451,36.497604,2000],[113.138648,36.501845,2000],[113.127762,36.503696,2000],[113.11663,36.504335,2000],[113.105801,36.506402,2000],[113.096048,36.510726,2000],[113.088077,36.516994,2000],[113.082466,36.524752,2000],[113.078474,36.533166,2000],[113.074524,36.541594,2000],[113.070817,36.550089,2000],[113.069126,36.558976,2000],[113.069905,36.567946,2000],[113.072615,36.576684,2000],[113.075495,36.58539,2000],[113.078376,36.594095,2000],[113.081258,36.602801,2000],[113.08414,36.611506,2000],[113.087023,36.620211,2000],[113.089907,36.628916,2000],[113.092791,36.637621,2000],[113.095676,36.646326,2000],[113.098561,36.655031,2000],[113.101447,36.663736,2000],[113.103351,36.672598,2000],[113.102813,36.681579,2000],[113.09983,36.690243,2000],[113.094549,36.698165,2000],[113.087414,36.705096,2000],[113.079946,36.711806,2000],[113.071331,36.717511,2000],[113.061128,36.721168,2000],[113.050598,36.724221,2000],[113.040067,36.727274,2000],[113.029674,36.73061,2000],[113.019426,36.734235,2000],[113.009177,36.73786,2000],[112.998927,36.741483,2000],[112.988676,36.745105,2000],[112.978423,36.748727,2000],[112.96817,36.752348,2000],[112.957916,36.755967,2000],[112.947661,36.759586,2000],[112.937405,36.763204,2000],[112.927148,36.766822,2000],[112.91689,36.770438,2000],[112.906631,36.774053,2000],[112.896371,36.777668,2000],[112.885794,36.780576,2000],[112.874674,36.781576,2000],[112.863554,36.782577,2000],[112.852942,36.785418,2000],[112.842418,36.788495,2000],[112.831799,36.791362,2000],[112.821702,36.79521,2000],[112.813134,36.800977,2000],[112.806663,36.808301,2000],[112.802661,36.816694,2000],[112.79969,36.825381,2000],[112.79672,36.834069,2000],[112.793749,36.842756,2000],[112.790778,36.851443,2000],[112.787805,36.86013,2000],[112.784832,36.868817,2000],[112.78243,36.877607,2000],[112.781539,36.886587,2000],[112.780757,36.895575,2000],[112.78125,36.904564,2000],[112.782733,36.913488,2000],[112.785334,36.922252,2000],[112.78796,36.931011,2000],[112.790587,36.93977,2000],[112.793214,36.948529,2000],[112.795772,36.957301,2000],[112.797608,36.966188,2000],[112.799314,36.975092,2000],[112.801021,36.983997,2000],[112.802722,36.992902,2000],[112.803108,37.001884,2000],[112.801207,37.010758,2000],[112.799083,37.019605,2000],[112.798005,37.028567,2000],[112.797426,37.037564,2000],[112.797716,37.046566,2000],[112.799125,37.0555,2000],[112.801195,37.064355,2000],[112.802767,37.073269,2000],[112.802543,37.082265,2000],[112.800459,37.091108,2000],[112.796698,37.099593,2000],[112.792582,37.107977,2000],[112.788464,37.116361,2000],[112.784346,37.124744,2000],[112.780079,37.133078,2000],[112.774125,37.140713,2000],[112.76847,37.148489,2000],[112.763831,37.156691,2000],[112.761077,37.165411,2000],[112.760328,37.174394,2000],[112.759958,37.183398,2000],[112.759589,37.192402,2000],[112.759219,37.201406,2000],[112.75885,37.21041,2000],[112.75848,37.219415,2000],[112.75811,37.228419,2000],[112.75774,37.237423,2000],[112.75737,37.246427,2000],[112.757,37.255431,2000],[112.755653,37.264353,2000],[112.7515,37.27271,2000],[112.74663,37.280835,2000],[112.74176,37.28896,2000],[112.73691,37.297093,2000],[112.732475,37.305376,2000],[112.728073,37.31367,2000],[112.723671,37.321965,2000],[112.719267,37.330259,2000],[112.714863,37.338553,2000],[112.710457,37.346847,2000],[112.706051,37.355141,2000],[112.701643,37.363434,2000],[112.697235,37.371728,2000],[112.692821,37.38002,2000],[112.687419,37.387914,2000],[112.680162,37.394796,2000],[112.671453,37.40052,2000],[112.662791,37.406288,2000],[112.654961,37.41278,2000],[112.647151,37.419288,2000],[112.639424,37.425858,2000],[112.633151,37.433328,2000],[112.628061,37.441371,2000],[112.622985,37.44942,2000],[112.617908,37.457469,2000],[112.612829,37.465517,2000],[112.606722,37.473068,2000],[112.598893,37.479564,2000],[112.592373,37.486888,2000],[112.588653,37.495367,2000],[112.586139,37.504151,2000],[112.582119,37.512546,2000],[112.576344,37.520292,2000],[112.571604,37.528437,2000],[112.570363,37.53735,2000],[112.572843,37.546098,2000],[112.577255,37.554394,2000],[112.580099,37.563075,2000],[112.580236,37.57208,2000],[112.580179,37.581089,2000],[112.580122,37.590098,2000],[112.580064,37.599107,2000],[112.580007,37.608115,2000],[112.57995,37.617124,2000],[112.579892,37.626133,2000],[112.580121,37.635137,2000],[112.581075,37.644114,2000],[112.582412,37.653052,2000],[112.586737,37.661333,2000],[112.594234,37.668033,2000],[112.604042,37.672483,2000],[112.614431,37.67608,2000],[112.624003,37.680887,2000],[112.633302,37.686038,2000],[112.642603,37.691188,2000],[112.65193,37.696308,2000],[112.661506,37.70113,2000],[112.668263,37.708183,2000],[112.669805,37.71708,2000],[112.670743,37.726058,2000],[112.671565,37.735042,2000],[112.670514,37.743852,2000],[112.662379,37.750086,2000],[112.654457,37.756535,2000],[112.646339,37.762818,2000],[112.637584,37.768549,2000],[112.628177,37.77357,2000],[112.619816,37.779597,2000],[112.61139,37.785609,2000]
]