Thread
:
[MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
View Single Post
Arie
2012-07-10 , 20:46
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#
66
Originally Posted by
nieldk
Don't forget to outcomment the function isNight at the end of that file
console.log("Sunset:" + sunset);
console.log("Sunrise:" + sunrise);
var t = today.getHours() + today.getMinutes()/60;
console.log("NOW: "+t);
if (t >= sunrise && t < sunset) {
return false;
}
return true;
}
function onDayNightSwitch() {
console.log("onDayNightSwitch");
if (dayNightMode === "auto") {
console.log("Change map mode to: "+!nightMode);
setNightMode(isNight());
}
}
Are you referring to the bold?
Edit: and why?
__________________
Arie|
www.everythingn9.com
|Nokia N9 64GB x2|
Nokia N950
@everythingn9
Temporary Inception Fix
Times Banned from TMO: 4
Quote & Reply
|
Arie
View Public Profile
Send a private message to Arie
Visit Arie's homepage!
Find all posts by Arie