![]() |
![]() |
![]() |
![]() |
|
|
#286 |
|
of mutterings
Join Date: Jun 2008
Location: Matiasovce, Slovakia
Posts: 123
|
That was a fast response lhab,
I think you are right - a combination of the two methods would be great. Yours for fast, large level zooming and the other for 'focusing'. If I had the skills I would have a go but I might just as well try and run the 100 meters in under 10 seconds - it ain't gonna happen ![]() keep up the good work....... ![]()
__________________
D2 8Gb with 3 SDHC's -Toshiba 8Gb(class4), Transcend 8Gb + 16Gb (class6) COWON leather case, stock and cheap KOSS earphones.... (need dosh!)SHINE(?), Mr. noMustache theme (Cassini) |
|
|
|
|
#287 | ||
|
Member
Join Date: Jul 2008
Location: UK
Posts: 141
|
Quote:
Quote:
|
||
|
|
|
|
#288 |
|
Member
Join Date: Jul 2008
Location: UK
Posts: 141
|
I've posted some maps and a tweaked version of lhab's viewer here;
http://iaudiophile.net/forums/showpo...9&postcount=45 There's also a patch file in the zip against the second version of the source. The only change I've made is to make the scale buttons a bit easier for big fingered freaks like me to press, and a new optional global config.txt parameter to align them to the right side of the screen (scaleside=right). |
|
|
|
|
#289 | |
|
Member
Join Date: Jun 2008
Posts: 80
|
Quote:
Edit: new version. Changes: - the volume buttons allow to cycle through the set of scales - when clicking near the center of the zoombar, the zoom factor is rounded to 1, and clicking the button of the current map resets the zoom factor to 1 - a new config file, called mapoptions.txt is sought for in the current directory, its parent and grand-parent, allowing to specify the variables zoombarheight and scalebuttonside - you can specify a mapdir variable in the toplevel config.txt, so that you no longer need to have 0, 1, ... directories in the directory containing the map. Together, the first three changes make it easier to work without a stylus. Last edited by lhab; 08-05-2008 at 19:46.. Reason: new version |
|
|
|
| Thanks from: |
|
|
#290 |
|
Member
Join Date: Jul 2008
Location: UK
Posts: 141
|
That's great. Thanks for including the patch too.
I was having a go at getting smooth panning when you press the arrow buttons (like Chrieg's viewer). When I tried replacing Stage.height/width with 5 in the Main.as onArrow function, there was a delay after each refresh. I couldn't work out if this was imposed or if a lot goes on between every refresh (and this was the reason you'd chosen a whole screen as the value)? It's not that important though, I was just tinkering. |
|
|
|
|
#291 |
|
Member
Join Date: Jun 2008
Posts: 80
|
I chose the screen by screen panning in order to be able to move quickly through a large map. You can get mostly the same effect as what you are trying to get by dragging the map, even though I admit it is a bit less convenient. If you insist on having smooth panning, I think it would be nice to mix both approaches, say, by progressively accelerating the motion.
The effect that you describe is normal: when you keep a button pressed, it only performs its action every N frame. N is the "period" parameter in the constructor of the class MyButton (actually, the real period is N+1). The duration of a frame is defined in a.xml, with the "framerate" parameter (currently, 6 frames per second). So, if you want faster updates, you should alter the period argument used to create the arrows, in "Main.createArrowButton". |
|
|
|
|
#292 |
|
iPod Hatred
|
hey, how to copy map from maps.google.com??
__________________
iPod what? iTunes who? Cowon D2 4GB Black vModa Bass Freq. Headphones SanDisk 4GB SDHC Memory Zenus Casing ![]() ![]() ![]()
|
|
|
|
|
#293 |
|
Member
Join Date: Jun 2008
Posts: 80
|
I posted a script for that in message 279, which outputs the maps in the format understood by my viewer.
And here is a windows version. It is written in C#. You'll find a C# compiler somewhere below C:\Windows\Microsoft.NET\Framework\. On the last windows box I worked on, it was C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc. exe, but it may differ on your machine. To compile, rename the file to gmdump.cs, open a command prompt, and type Code:
cd whereyouputgmdump.cs whereiscsc.exe gmdump.cs Next, install Image Magick from here. My program needs convert.exe to convert the tiles from png to jpg (does anyone know if is there a way to do it from within .NET?), so you will have to put it in the PATH, or edit gmdump.cs and replace "convert" by "\\where\\is\\convert.exe" (and, of course, recompile). Now, cd to where you want to store the map, and run \where\is\gmdump.exe zoom longa lata longb latb zoom is a an int between 0 (smallest scale) and 16 (largest scale), longa and lata are the coordinates of the upper left corner of the rectangle you want to download, and longb and latb those of the lower right corner. The coordinates should be given in degrees, as a decimal number. The eastern longitudes and northern latitudes are positive (in google maps, you can get the coordinates of a point using direction from/to in the context menu). This script is slow, because it waits a few second between every tile. Otherwise, I fear google might detect what you are doing, and ban your IP. Last edited by lhab; 04-15-2011 at 16:54.. Reason: new version |
|
|
|
|
#294 | |
|
Member
Join Date: Jul 2008
Location: Switzerland
Posts: 81
|
Post #92 from Chrieg
Quote:
öhm... Hi @ all... I think, it's my first post here ;-) Great Forum... I really like it. |
|
|
|
|
|
#295 | |
|
Junior Member
Join Date: Sep 2007
Posts: 27
|
Quote:
Second, I couldn't figure out where to find the longitude and latitude coordinates of a location. A little more explanation on that please? ![]() |
|
|
|
|
|
#296 | |
|
Member
Join Date: Jun 2008
Posts: 80
|
Indeed.
Quote:
|
|
|
|
|
|
#297 |
|
Junior Atheist
Join Date: Jul 2008
Location: Bavaria, Germany
Posts: 6
|
Thanks to all contributors, this app is awesome.
The C# program to get the maps from Google works perfectly on my Windows Vista machine, too. However, there are some things I would like to have added/improved: -Bigger buttons (and bar): I don't use the stylus so I'd like to have slightly bigger buttons and arrows to make thumb navigation easier. Though it's already possible to do so I find it a bit hard to hit the right spot. Since the buttons and the bar are transparent there's not much of a loss in displayable area. -"Reset zoom"-button: After using the zoom bar I have problems going back the default level and the map remains grainy. A simple button to reset it to the initial value would be helpful. -Markers: Similar to Google Maps. You have two buttons which add/clear marker A and B to/from the position of the map which is currently in the center of the screen. The markers would have to stay the same size no matter which zoom level or sub-map you were in. Would be helpful if you used the app for navigation to make tracking of the starting point and destination easier. |
|
|
|
|
#298 |
|
Member
Join Date: Jul 2008
Location: UK
Posts: 141
|
I've uploaded a version of lhab's viewer (map.zip) with very slightly bigger scale buttons, a taller narrower zoom slider and the function that if you press the currently displayed scale button, it will reset the zoom.
I did try and go bigger, but I think this is the best trade-off. It's very easy to build a new version, have a look at the attached patch file (mapv2-patch.zip) to see which files/ lines to change. The pain with it is Flash on the D2 seems to render slightly differently to the Adobe viewer, so you have to keep mounting/copying/unmounting/utilities/flash/etc. Maybe someone has a solution to this? Something I found - just click once, quickly with your thumb and don't wait for the scale to change. Flash seems to interpret a long click as a drag. http://www.mtasc.org/ http://swfmill.org/ |
|
|
| Thanks from: |
|
|
#299 | ||||
|
Member
Join Date: Jun 2008
Posts: 80
|
Quote:
Quote:
Quote:
Quote:
|
||||
|
|
|
|
#300 | |
|
Veteran
Join Date: Jul 2007
Location: Sweden
Posts: 2,287
|
Quote:
__________________
DAP: Cowon S9 32 GB titanium|D2 4gb black -totally/partly dead- | Headphones: AKG K66 | IEMs: Sony MDR EX300 | UCI: Chakra|Aero Music|Klaus Browser|Flow Browser|Klaus Video UI "I'm the funky monkey junky, You're a flunky bunky donkey"
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|