maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [PoC] Portrait Mode "Maps" app on N900 (https://talk.maemo.org/showthread.php?t=69885)

thp 2011-02-15 10:01

[PoC] Portrait Mode "Maps" app on N900
 
I'm currently playing around with more hildon-desktop patches (see here and here). Turns out that the "Maps" application doesn't support portrait mode (among other built-in apps), but it turns out it can be relayouted using simple HTML/CSS hackery.

The first result of this 5-minute-hack is this: http://thp.io/2011/maemo/portrait_mode_maps.sh. Pretty trivial, and as you can see on the photo, some parts would still need manual layouting. Also, this patch fixes the application into portrait mode, so landscape mode won't work after that (changing the script to change the layout back is left as an exercise for the reader ;)). I won't pursue this specific app (Maps) any further, but this should get interested community members who know HTML and CSS started on implementing portrait mode support in Nokia Maps ;)

http://thp.io/2011/maemo/portrait_mode_maps.jpg

cloud596 2011-02-15 10:23

Re: [PoC] Portrait Mode "Maps" app on N900
 
upss thanx thp, for all this

ivgalvez 2011-02-15 11:08

Re: [PoC] Portrait Mode "Maps" app on N900
 
I hope it could be easily integrated with other mods for Nokia Maps like voice guidance. Did you contacted the developers that are currently working on it?

friesoft 2011-02-15 12:49

Re: [PoC] Portrait Mode "Maps" app on N900
 
wow.. those are great developments! please provide some source and talk to the community ssu maintainers :)

keep up the great work :)

plaban 2011-02-15 13:03

Re: [PoC] Portrait Mode "Maps" app on N900
 
Looking good,portrait mode in Maps will be useful.

toxaris 2011-02-16 18:47

Re: [PoC] Portrait Mode "Maps" app on N900
 
That could be usefull, particularly when biking, thats when I have missed rotation of Nokia Maps.

LagunaCid 2011-02-16 20:13

Re: [PoC] Portrait Mode "Maps" app on N900
 
I'm particularly interested in that portrait vkb, how was that achieved, without FastSMS?

m4lvin 2011-02-16 20:55

Re: [PoC] Portrait Mode "Maps" app on N900
 
Well, /usr/share/nokia-maps/html/index.html is one big fat html file. And looks like we are not allowed to distribute the file.
A hint for others wanting to take a look at it: The download version of http://jsbeautifier.org/ is really useful.

thp 2011-02-18 09:04

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

Originally Posted by LagunaCid (Post 948319)
I'm particularly interested in that portrait vkb, how was that achieved, without FastSMS?

It's the standard on-screen keyboard under the influence of the forced auto-rotation patch that's going to be included in the Community SSU at some point in the future.

neboja 2011-02-18 09:06

Re: [PoC] Portrait Mode "Maps" app on N900
 
@thp: is your patch for maps going to be icluded in the Community SSU ????

m4lvin 2011-02-18 11:11

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

Originally Posted by neboja (Post 949544)
@thp: is your patch for maps going to be icluded in the Community SSU ????

Quote:

Originally Posted by thp (Post 949543)
... that's going to be included in the Community SSU at some point in the future.

there you go :)

thp 2011-02-18 11:38

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

Originally Posted by neboja (Post 949544)
@thp: is your patch for maps going to be icluded in the Community SSU ????

All my patches to hildon-desktop have been merged. The Maps modification is currently not going in, as Maps is closed, and my changes still need more work (right now, it's either portrait or landscape, but not both).

opax 2011-08-29 09:03

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

All my patches to hildon-desktop have been merged. The Maps modification is currently not going in, as Maps is closed, and my changes still need more work (right now, it's either portrait or landscape, but not both).
with this script we get both..

Code:

#!/bin/sh
sed -i -e 's/800px/_WIDTH_/g' \
      -e 's/480px/_HEIGHT_/g' \
      -e 's/_WIDTH_/100%/g' \
      -e 's/_HEIGHT_/100%/g' \
      /usr/share/nokia-maps/html/index.html

but it's still ugly..need more works.. if someone knows something about css..
you just got to edit the file : /usr/share/nokia-maps/html/index.html

[be carefull it's a 1M file]

opax 2011-09-04 16:03

Re: [PoC] Portrait Mode "Maps" app on N900
 
1 Attachment(s)
I ve finished a mod of the famous file..

now the apps turns with the screen.

Only the "reports forms" are still originals (I ve just started with css so..I don't understand how to resize its stupid buttons..)


Maybe we could add a google search button in the details pages..but i dont not know javascript..so if anyone wants to have try.. It should not be so difficult..

So here is the new file, download it, uncompress and copy the index.html here:

Code:

sudo gainroot
cp /usr/share/nokia-maps/html/index.html /usr/share/nokia-maps/html/index.html.back
cp index.html /usr/share/nokia-maps/html/index.html


toxaris 2011-09-06 11:45

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

Originally Posted by opax (Post 1081817)
So here is the new file download it:
http://opax.ovh.org/maps/index.new

Hmm, cant access the file.

WhiteWolf 2011-09-06 12:52

Re: [PoC] Portrait Mode "Maps" app on N900
 
Do not click.

Use the right mouse button and hit "save as"

Anyway ... This leaves a loop file the application to load and is thus, having to kill the process. At least in my case.

pali 2011-09-06 12:58

Re: [PoC] Portrait Mode "Maps" app on N900
 
Code:

$ wget http://opax.ovh.org/maps/index.new
--2011-09-06 14:57:27--  http://opax.ovh.org/maps/index.new
Resolving opax.ovh.org... 213.251.189.8
Connecting to opax.ovh.org|213.251.189.8|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-09-06 14:57:28 ERROR 404: Not Found.


WhiteWolf 2011-09-06 13:07

Re: [PoC] Portrait Mode "Maps" app on N900
 
1 Attachment(s)
I add it as a link to download from the forum.

Then rename it to "index.new" and follow the instructions of the thread.

titou1234 2011-09-06 13:37

Re: [PoC] Portrait Mode "Maps" app on N900
 
Quote:

Originally Posted by WhiteWolf (Post 1082844)
I add it as a link to download from the forum.

Then rename it to "index.new" and follow the instructions of the thread.

Sure you get the file, I should say a file, but did you look at what's inside ? It is just an html file from OVH with the error message "Object not found" !

Perhaps it explains also why it doesn't work and you have to kill the app :)

opax 2011-09-06 19:56

Re: [PoC] Portrait Mode "Maps" app on N900
 
well it s fixed sorry..

WhiteWolf 2011-09-07 21:06

Re: [PoC] Portrait Mode "Maps" app on N900
 
To me the file does not work.

Any suggestions on how to avoid remaining in the boot screen of the application?

opax 2011-09-07 21:12

Re: [PoC] Portrait Mode "Maps" app on N900
 
1 Attachment(s)
Well ehre is the right file

just unzip it and send it in the right place

It should works now, tell me...

WhiteWolf 2011-09-08 09:28

Re: [PoC] Portrait Mode "Maps" app on N900
 
Ok. Now if I start.

What does not work yet is to click on the icon of the compass.

The rest, what I could try.

Thank you very much.

opax 2011-09-08 12:27

Re: [PoC] Portrait Mode "Maps" app on N900
 
ok cool!

the compass did not work for me for a long time so i don't know what's the problem

what are still not in portrait are the report's sub windows

mad_soft 2011-09-12 12:03

Re: [PoC] Portrait Mode "Maps" app on N900
 
the index.html of opax don't work for me.
The Maps application don't start.
I modified the script of thp, changing two lines, and finally, works in landscape and portrait

-e 's/_WIDTH_/100%/g' \
-e 's/_HEIGHT_/100%/g' \

opax 2011-09-12 12:18

Re: [PoC] Portrait Mode "Maps" app on N900
 
you have to refer to the post 22..
i will modify the old one

http://talk.maemo.org/showpost.php?p...2&postcount=22

mad_soft 2011-09-12 12:51

Re: [PoC] Portrait Mode "Maps" app on N900
 
Yes, I download this file. But when you start the application, it's loading forever and never shows the screen with the map

mad_soft 2011-09-12 12:55

Re: [PoC] Portrait Mode "Maps" app on N900
 
It's incredible, i reboot the phone and now works.
Great Job.

opax 2011-09-12 18:35

Re: [PoC] Portrait Mode "Maps" app on N900
 
ok!

It s cool if it finally works!

StocChr 2012-05-25 05:49

Re: [PoC] Portrait Mode "Maps" app on N900
 
1 Attachment(s)
Hi guys,

i attached the latest index.html file from the Ovi Maps Extra Features - Now with voice guidance (early development) - Thread ( http://talk.maemo.org/showthread.php?t=66985 )

can some one help me to modify these file for a nice looking portrait mode??

best regards
christian


All times are GMT. The time now is 12:56.

vBulletin® Version 3.8.8