![]() |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
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. https://dl.dropbox.com/u/54692247/20...9_01-50-50.png |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
I have tried to understand why and see if there is any workaround, but decided I should give up. It's better to give users options than to perfect a feature that isn't implemented by me. Again, I don't have a lot of time to clean up what I modified on device. But I hope I can get the diff done this week....... |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Here it is the Map traffic patch for testing:
Maps traffic patch unstable I forgot to backup the original files so pulled the ones from N950 for diff. As a result, please apply it with caution and at your own risk. Make sure you backup the following folder first! /usr/lib/qt4/imports/ovi/connector/map I don't know how to restore Maps in case anything failed. I saw two Maps-related packages, maps and maps-guard, maybe try reinstalling both would help. (<- needs verifying) To activate traffic, click the setting button on lower right map view (the one you click to select 'public transport', '3d mode', etc.) and toggle 'traffic'. Traffic only gets fetched when map center changes beyond certain threshold, so traffic might not show up immediately. During testing I noticed a few tricks to help traffic shows up: 1. Panning the Maps randomly, for example, drawing circles. Maybe this forces maps redraw.... 2. Zooming in/out. 3. Swipe out of Maps then back can help Maps refreshes the map view and hence displays traffic. For detailed changes, the original code makes traffic request whenever map center shifts beyond 5000 (I believe it means 5km). During testing, I found that requesting traffic frequently doesn't necessarily help displaying traffic, so I referenced Drive's code and add a QML Timer to reduce the number of requests made while panning the map. I also tweaked the triggering threshold and the request radius... the tweaking is in no way scientific, but I settled on (7km, 30km). FYI, Drive uses (40km, 50km). I did try Drive's setting, but feel it doesn't work as well. Seems to me Maps needs more requesting, but might just be my imagination. Anyway, I encourage people to try other combinations, as well as the interval for the traffic timer. By the way, if you want to try playing with the parameters, you can un-comment the 'trafficInfo' Text element in MapViewer.qml and the other lines containing trafficInfo. It will display debug messages directly on the top left corner of map view and makes it easier for you to tell when traffic request is sent. Please post feedback if you can, thanks and enjoy! |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Maps for PR1.2/1.3
Just to clarify, the Maps patch is currently not in colin's all-in-one unstable patch, but should be integrate into it once it matures.
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Just got round to trying the traffic drive. In symbian when you click on an incident, i.e. the triangle icon, it brings up a description of it. Is this possible?
|
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
Quote:
In short, possible but not easy. |
Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
sony123 if you want to re-install maps just do apt-get install maps --reinstall
you don't need to install maps-guard... |
Re: [MOD] Enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
How to apply your patch because i tried several methods and it doesn't work. Thank you in advance ;) |
All times are GMT. The time now is 16:54. |
vBulletin® Version 3.8.8