mapbox-marker

Message from debugger: Terminated due to memory issue

旧街凉风 提交于 2019-12-05 00:20:08
My app working with Geojson file. I use MapBox SDK to add MGLPolyline to map. But the problem is my file too large, so that the app crash and got the error: Message from debugger: Terminated due to memory issue . I faced with 66234 objects at first loop. I tried to chunk the array to new array but not success. Please help me to solve the prolem. Here is my code for draw on map and here is my test project on github use Xcode 8.1 If have any different 3rd party which can solve my prolems is welcome too : func drawPolyline() { // Parsing GeoJSON can be CPU intensive, do it on a background thread