View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#261
Managed to get traffic shown up in Maps. However, traffic doesn't automatically load when panning the map, either the codes don't have it or I haven't found the codes responsible for this yet.

The changes are: make traffic toggle visible in MapSettingsUI.qml, fix un-comment traffic setting loading/storing in MapApi.js, and fix the wrong function argument for trafficObject.requestTrafficAt() in MapApi.js (original code doesn't have 2nd argument for requestTrafficAt(), the argument is radius in km btw). By doing these, traffic show up, just doesn't auto-refresh when panning.


Last edited by sony123; 2012-07-29 at 16:40.
 

The Following 8 Users Say Thank You to sony123 For This Useful Post: