[OSM-talk] Any way to reduce editor applet on-screen resolution?
Steve Bromwich
osm at fop.ns.ca
Sun Feb 11 00:47:36 GMT 2007
Hi Nick,
I was trying to run the applet by just running a modified
file:///tmp/edit.html; pretty crude, but it seemed the easiest way to
start. I found subsequently that running at a higher zoom level let me
download a whole screen's worth of tiles, but I then still hadthe problem
that I have to scroll around an awful lot (although I no longer had to
flip between edit and view - which saved me a bit of time). I confirmed
with another user off-list that this worked for him under XP with Firefox.
I didn't think of running from svn, mea culpa. I just ran it and it came
up fine. I tweaked the runapplet to bring up a Halifax location as follows
(for reference for anyone else who has the same problem):
exec $JAVA $JAVAOPTS \
-cp $OSMCLASSPATH \
processing.core.PApplet \
org.openstreetmap.processing.OsmApplet \
--user="$user" --pass="$pass" --clat="44.6632451999706" --clon="-63.5839118315807" $@
This worked fine initially but after panning around for a bit it stopped
downloading tiles. It seems like if one tile fails to download, the applet
completely fails to download any more tiles. To experiment with where the
problem was, I setup a transparent Squid cache and disabled the default
nocache acl. Surprisingly enough this didn't speed it up as much as I
thought, it looks like most of the time is spent rendering the tiles.
Here's the tail end of the squid log as it failed halfway through
rendering a screen:
1171154279.392 678 10.2.1.142 TCP_HIT/200 8882 GET http://us.maps3.yimg.com/aerial.maps.yimg.com/tile? - NONE/- image/jpeg
1171154281.197 137 10.2.1.142 TCP_HIT/200 23924 GET http://us.maps3.yimg.com/aerial.maps.yimg.com/tile? -NONE/- image/jpeg
1171154283.588 35 10.2.1.142 TCP_HIT/200 30293 GET http://us.maps3.yimg.com/aerial.maps.yimg.com/tile? -NONE/- image/jpeg
1171154310.486 558 10.2.1.142 TCP_MISS/200 660 GET http://us.maps3.yimg.com/aerial.maps.yimg.com/copyright? - DIRECT/194.25.26.95 text/xml
1171154310.767 263 10.2.1.142 TCP_MISS/401 755 GET http://www.openstreetmap.org/api/0.3/map? - DIRECT/128.40.58.202 text/html
1171154311.200 417 10.2.1.142 TCP_MISS/200 4774 GET http://www.openstreetmap.org/api/0.3/map? - DIRECT/128.40.58.202 text/html
Any suggestions on anything I could tweak to increase timeouts, or any
other settings? Right now I'm running it on a laptop at home, a PIII-750,
but my laptop at work is a P4M-1800, so I don't think it's necessarily a
cpu issue.
Cheers, Steve
On Sat, 10 Feb 2007, Nick Black wrote:
> Hello Steven,
>
> How did you try running the applet? I am running Xubuntu Edgy with
> the standard java libraries and the applet runs fine. Did you try the
> runapplet.sh script? Check out the openstreetmap svn tree, go to
> blah/java/ and execute:
>
> $ sh runapplet.sh <you email> <your pass>
>
> and it should run. If not, post the error messages here. It sounds
> like you only ran the osm-applet.jar file - it depends on several
> other libraries that are not compiled in to the same jar, which could
> explain the error.
>
> Nick
>
>
> On 2/9/07, Steve Bromwich <osm at fop.ns.ca> wrote:
>> Hi,
>>
>> I seem to have a problem with the Yahoo imagery timing out as it downloads
>> in the on-line editing applet. It starts downloading quickly, does three
>> columns of Yahoo imagery, then slows down for the next few tiles, and
>> usually stops after 6 tiles. I don't know if there's a timeout in the code
>> that's set too low or what. However... The resolution of the applet
>> (900x700) is such that most of the display is off the screen. I think if I
>> could reduce the applet size to something smaller, say 800x400, I'd be
>> able to do more.
>>
>> As it is, I have to keep clicking between the view and edit tabs and drag
>> the slippy map a few pixels over, then hope that I can get enough imagery
>> downloaded to map out another hundred metres or so of coastline. This is,
>> to say the least, somewhat tedious. I tried running the applet locally on
>> my machine (by saving edit.html to /tmp and wgetting the jars) to see if I
>> could see anything obviously awry but for some reason it didn't want to
>> run - the Java console complained about AWT, which I don't know anything
>> about. If someone could give me some suggestions on the best direction to
>> go I'd be most grateful.
>>
>> I'm running this on a Linux laptop with Firefox 2.0.0.1 and Sun's Java 5
>> package.
>>
>> Cheers, Steve
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>>
>
>
> --
> Nick Black
> --------------------------------
> http://www.blacksworld.net
>
More information about the talk
mailing list