Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#54
Originally Posted by jdrescher View Post
I have a problem in my app regarding the mapbox plugin.

After loading an autosave file, I would go through all recorded positions and then add each coordinate to an array. You can see the for statement in line 118.
Then in line 632, I would add each coordinate point to the map track.

And this line 632 is the problem. If the autosave is big enough e.g. >7000 coordinate points, the app will crash. Sometimes my phone even reboots then. Do you have an idea what could cause the problem?
Without digging too deep into the code - do you add each point as a separate layer or all points go as a vector into a single layer? So, whether you end up having 7000 layers or just few with many points?
 

The Following User Says Thank You to rinigus For This Useful Post: