On Nov 29, 6:58 am, Chad Killingsworth
<[email protected]> wrote:
> For my v3 project, I needed a tile layer overlay. Since one didn't
> exist, I wrote my own. I see questions about tile layers popping up
> somewhat regularly, so I figured I'd share my class for others to use.
>
> Tile Layer 
> Script:http://search.missouristate.edu/map/mobile/examples/tileoverlay.js
>
> Example 
> Usage:http://search.missouristate.edu/map/mobile/examples/tileoverlay.htm
>
> I fully expect (or maybe just hope) this class to be obsolete soon as
> I anticipate that tile layer functionality will be part of the v3 api.
>
> Chad Killingsworth

Another option:

    www.polyarc.us/sparsetile.js

    www.polyarc.us/sparse
    www.polyarc.us/road
    www.polyarc.us/rail

It detects IE6 which requires AlphaImageLoader to display transparent
PNGs.

It compensates for getBounds errors at low numbered zoom levels for
which map wraping occurs, typically, just 0 & 1 unless the screen is
very large.

It adjusts out of range tile numbers near the International Date Line.

A single "Sparse Tile Layer Overlay" can handle multiple tile sets
without redundant OverlayViews with their redundant event listeners.

It is mapserver friendly.  The "height" & "width" & "bbox" values
expected by mapserver are available to the "setUrl" method.  The
traditional "x" & "y" & "z" tile values are also available to the
"setUrl" method.

    xy.x = tile X offset
    xy.y = tile Y offset
    xy.X = tile width
    xy.Y = tile height
    xy.x0 = begin longitude
    xy.y0 = begin latitude
    xy.x1 = end longitude
    xy.y1 = end latitude

It too is a stopgap unless the ability to manage multiple tile sets in
a single OverlayView is useful.

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply via email to