Having your map <div> window an exact multiple of the tile size probably
isn't that critical. Say your map window is 512 pixels tall and 512 pixels
wide . you'd have to be perfectly aligned with the tile boundaries to need
only 4 tiles to fill it. Chances are, you would be seeing all or part of 9
separate tiles. For that first initial view of a map, the *average*
number of tiles you need to pull is "more or less" a linear function of the
area of your window. Don't worry about making it a multiple of 256 pixels -
it won't give you magical performance results.
Of course, if you're panning around, and covering the entire United States
at a particular zoom level, the number of tiles the user will see may be the
same regardless of your map <div> size. And I know your browser will cache
the map tiles once they have been uploaded. For what you're doing - which
is panning over the same tiles repeatedly - something else must be causing
the delay after the first time the tiles are loaded.
Go to the consumer maps site at the same zoom level and drag around the map
quickly at the same zoom level. If you've just cleared your cache, you may
very well notice some delay in loading up the tiles. But once you've
covered the whole US at that zoom level, you can pan around very quickly.
There's probably some trick you can do to preload all of the tiles before
you pan around (since you know your intended trajectory)
] On Behalf
Of Jim Hamilton
Sent: Tuesday, September 05, 2006 7:48 PM
Subject: [yws-maps] Re: Map Rendering Question
Thanks for coming back Alan,
That's the info I was looking for. Ok, if you can't size a <div> at
multiples of 256 x 256, then it seems the next best thing would be
Or does prerendering negate this?
Also, I notice that the Flash tiles don't cache? (That's my non-flash
guy stupid question for the day :)
I changed my <div> size to 672 x 352. (Multiples of 32). I also
brought the zoom out to 13 and the state-to-state speed at 1 sec.
Link: (refresh if you tried it earlier...)
...and, I assume you are saying that the faster the Internet
connection, the faster the rendering?
Jim (still at v3.02) Hamilton
--- In yws-maps@yahoogroup <mailto:yws-maps%40yahoogroups.com> s.com, "Alan
Brown" <adbrown@...> wrote:
> Tiles are prerendered, so that does not affect any delays you might
> Each tile is 258 x 258 pixels, with overlap (effecting a 256 x 256
> view). It's set up for a nominal 512 x 512 pixel view.
> From: yws-maps@yahoogroup <mailto:yws-maps%40yahoogroups.com> s.com
[mailto:yws-maps@yahoogroup <mailto:yws-maps%40yahoogroups.com> s.com] On
> Of Jim Hamilton
> Sent: Tuesday, September 05, 2006 6:06 PM
> To: yws-maps@yahoogroup <mailto:yws-maps%40yahoogroups.com> s.com
> Subject: [yws-maps] Map Rendering Question
> Hi group,
> I'm working on a new demo module for my TabServer! app that drives
> Flash map rendering pretty hard. My question regards optimum <div>
> for the map. Is there one in the range of 650 x 355? (the size I'm
> using now).
> I notice tiles not rendering quick enough for my taste. I know
> a Yahoo! map tile size, but darned if I can remember what it is.
> Any advice or feedback appreciated...
> The link:
> http://www.tetonpos <http://www.tetonpos
> Jim Hamilton
> [Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]