My code is generating multipolygons and trying to render it on Cesium globe, but I am getting the following error. I don’t understand why this error is coming up. Can someone please explain to me why it might be coming up?
RangeError: Invalid array length
RangeError: Invalid array length
at Object.PolygonGeometryLibrary.subdivideRhumbLine
If you post your question with some sample code.
Other member are more easy to answer your question.
I also newbie at Cesium but to the best of my knowledge ‘Invalid array length’ error’s reason is various. In my case it was from performance reason or polygon coordinates are not normal.
Can you please explain how can it be a performance reason?
Also, is there any way I can validate my multipolygon coordinates so that I will be sure it occurring because of that?
Can you share a GeoJSON file that demonstrates the problem? How about the call stack when the error occurs? As @11115 says, the more information you can provide the better assistance you will receive.