maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   OVI Maps has the spins? (https://talk.maemo.org/showthread.php?t=40812)

les_garten 2010-01-16 16:15

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by spag (Post 476035)
Is there no north up mode in Ovi Maps or has someone managed to prevent the map from spinning?
I love my N900 but the Maps application drives me crazy. Maybe OVI means crap in Finnish?

I've tried pinning the map with that compass gadget, but as soon as you let go of it the map spins again. I for the life of me am confused what that compass thing is for. This is a shame actually because the upgrade fix a number of my complaints with OVI maps.

Maemo! There's a BUG for that!

Sorry, couldn't resist, admittedly a low shot!

https://bugs.maemo.org/show_bug.cgi?id=8126

Can't believe nobody opened a bug yet!

Please vote for OUR bug! Let's get 'er fixed boyz, err and girlz!

andy_x_net 2010-01-16 16:37

Re: OVI Maps has the spins?
 
I pesonaly think that ovi maps on N900 are seriously ****!!!
I love this phone to bits with all his bugs and lil issues but the maps oooh come on ovi nokia whoever done this get it sorted soom. Have other phone E71 at home and the maps are one of the best i ever came acros on phone when it gets to navigation or just searching. Why cant we get a proper functional maps on this n900 for all the money we pay to nokia......

les_garten 2010-01-16 16:46

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by andy_x_net (Post 476446)
I pesonaly think that ovi maps on N900 are seriously ****!!!
I love this phone to bits with all his bugs and lil issues but the maps oooh come on ovi nokia whoever done this get it sorted soom. Have other phone E71 at home and the maps are one of the best i ever came acros on phone when it gets to navigation or just searching. Why cant we get a proper functional maps on this n900 for all the money we pay to nokia......

If the Maps app were what it should be and the Bluetooth reception didn't suck, I would be happy as the proverbial clam!

spag 2010-01-24 17:48

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by andy_x_net (Post 476446)
I pesonaly think that ovi maps on N900 are seriously ****!!!

But ovi-maps seems to be partially written in JavaScript. Have set orientation=0 in /usr/share/nokia-maps/html/javascripts/nokia.maps.js and it seems like the maps are locked north up now.

twaelti 2010-01-24 18:28

Re: OVI Maps has the spins?
 
Very interesting find, looks like Ovi Maps is a WRT/Webkit based app.
Done by gate5, the German Navi company (smart2go) they acquired >3 years ago.

les_garten 2010-01-25 05:09

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by spag (Post 492192)
But ovi-maps seems to be partially written in JavaScript. Have set orientation=0 in /usr/share/nokia-maps/html/javascripts/nokia.maps.js and it seems like the maps are locked north up now.

Was this where you set 0?

var orientation=map.PRESERVE_ORIENTATION

spag 2010-01-28 15:32

Re: OVI Maps has the spins?
 
1 Attachment(s)
Quote:

Originally Posted by les_garten (Post 493006)
Was this where you set 0?

var orientation=map.PRESERVE_ORIENTATION

No. It was something like that:

if(typeof aPosition.orientation=="string"}{orientation=0}els e{orientation=0}

Sorry, don't remember exactly what I have changed in this file but created a patch for that.

Usage:
bspatch nokia.maps.js nokia.maps.js.new patchfile

MD5 sums:
aa908f6d9a422088d9bcd09ed5640307 nokia.maps.js.old
7fae57916df6739e8dcb38291487b167 nokia.maps.js
597b17c432914e2eabd325148ba7dfde patchfile

les_garten 2010-01-28 16:32

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by spag (Post 499535)
No. It was something like that:

if(typeof aPosition.orientation=="string"}{orientation=0}els e{orientation=0}

Sorry, don't remember exactly what I have changed in this file but created a patch for that.

Usage:
bspatch nokia.maps.js nokia.maps.js.new patchfile

MD5 sums:
aa908f6d9a422088d9bcd09ed5640307 nokia.maps.js.old
7fae57916df6739e8dcb38291487b167 nokia.maps.js
597b17c432914e2eabd325148ba7dfde patchfile

Where do you get this bspatch?

spag 2010-02-05 00:00

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by les_garten (Post 493006)
Was this where you set 0?

var orientation=map.PRESERVE_ORIENTATION

$ diff nokia.maps.js.old.beautified nokia.maps.js.beautified

15239c15239
< orientation = this._ROTATIONS[aPosition.orientation]
---
> orientation = 0
15241c15241
< orientation = (aPosition.orientation + 360) % 360
---
> orientation = 0

Used JavaScript-Beautifier-0.17 to be able to use diff to compare the files.

les_garten 2010-02-05 01:21

Re: OVI Maps has the spins?
 
Quote:

Originally Posted by spag (Post 511186)
$ diff nokia.maps.js.old.beautified nokia.maps.js.beautified

15239c15239
< orientation = this._ROTATIONS[aPosition.orientation]
---
> orientation = 0
15241c15241
< orientation = (aPosition.orientation + 360) % 360
---
> orientation = 0

Used JavaScript-Beautifier-0.17 to be able to use diff to compare the files.

I never got the patch file to work as I asked above about bspatch


All times are GMT. The time now is 00:33.

vBulletin® Version 3.8.8