|
2018-01-09
, 14:07
|
Posts: 58 |
Thanked: 223 times |
Joined on Apr 2017
@ Germany
|
#62
|
|
2018-01-09
, 14:24
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#63
|
I think I nailed the "during workout" problem.
The app calls the update function once every second. Normally this is no problem because the map is shown and the track is directly rendered.
But if the app is in background (phone is in standby), the update function is still called every second. And then when the app comes back to focus, the map plugin needs to render thousands of track points in a very short period of time.
This is all my fault. It does not make sense and is very unclean to do anything with the map if it's not viewed at all.
So I will modify the app so that only if the map is shown and active, things are done (update, center on current position, draw map icons).
|
2018-01-17
, 07:00
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#65
|
The Following 3 Users Say Thank You to rinigus For This Useful Post: | ||
|
2018-01-17
, 08:10
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#67
|
@rinigus, im retrieving the data from a remote api (strava) and cant see why i woukd want to change it locally, however ill give your suggestion a go.
The Following 2 Users Say Thank You to rinigus For This Useful Post: | ||
|
2018-01-20
, 08:51
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#68
|
The Following 3 Users Say Thank You to rinigus For This Useful Post: | ||
|
2018-01-26
, 07:44
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#69
|
map.setLayoutProperty("location-label", "text-allow-overlap", true) map.setLayoutProperty("location-label", "icon-allow-overlap", true)
The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||