PDA

View Full Version : Displaying maps on PSP's web browser (2.0+ fw users)



deniska
August 18th, 2006, 04:10
Since people keep asking, here is a short tutorial & example of how to do it:

The map viewer package, that I released for neo flash compo, includes the cygwin script (in the scripts) to get the maps for any given GPS coordinate:
./getmap.sh [latitude] [longitude] [base zoom] [size]

The script takes 4 arguments.
You can find out the latitude/longitude for the area of your interest by using following tool:
http://www.mapki.com/wiki/Get_Lon_Lat

Base zoom [0-16] cooresponds to the values of the zoom bar on that tools map (with 0 being the most detailed map)

Size - is the number of 256pixel segments, your map's side will consist of, i.e size 16 will create you a base map of 4096x4096 pixels

You do need to install cygwin from http://cygwin.com/

There are plenty of tutorials on setting up and using this unix - like environment...

But le't just take a pre-made map (generated with the getmap.sh script) and load it on the browser...

1. Create a folder called /WEB in the root of your PSP's memory stick.
2.Download a small map of center of Paris:
http://deniska.dcemu.co.uk/bin/_PARIS_FRANCE_48.862957_LON_2.34497_16x.zip (paste the link in to your browser if it does not work directly) and unzip it in to WEB folder, that you just created.
Your WEB folder should have 1x, 2x, 4x... folders in it, as well as 1x.html 2x.html...8x.html files...

3. Open PSP's web browser and type in following URL:
file:/WEB/8x.html

You should see your saved map now..
Click on the map to zoom in or use LEFT TRIGGER to go back & zoom out...Use directional buttons to move up/down/left/right on the map.

This, of course, is not as versatile as the "MapThis!" program, but may still be useful in some cases for 2.7+ FW users...

NOTE: displaying maps, large than 4096x4096 will run PSP's browser out of memory...

Video_freak
August 18th, 2006, 04:11
Cool. Thanks deniska. ;)

jay87
August 18th, 2006, 07:24
cool

COFF6000
August 19th, 2006, 05:57
i've never written a program and dont know what a script is, but this forum really caught my eye and i would really like to know how to do this. i pretty much have no idea how to use cygwin or exactly what to write in the prompt. i kind of need a very detailed explanation on what to download or what to install. i would work very well if you could give me an example using

longitude: -119.21539306640625

latitude: 36.38494540732393

my psp is currently running firmware 2.8 and i was wondering if this was available on this fw. if you could leave a detailed explanation/walkthrough or post a link, that would be extremely helpful. if you would prefer, we could contact you through e-mail or via IM. please reply soon.