On 01/08/2009, S.Choe <[email protected]> wrote:
>
>  Dear All.
>
>  I used custom tile method to draw tile overlay covering some area.
>
>  My program
>  GTileLayer g;
>  g.getTileUrl() is defined by a separate php code with tile.x, tile.y,
>  zoom level.
>
>  In defining getTileUrl(), I generate image with (x,y,zoom). But it
>  took to much time.
>
>  I would like to generate the image before user's view frustum visit
>  the area.
>  That is to say, I would like to implement function:
>  For given area [minx, miny, maxx, maxy],
>  generateTile([minx, miny, maxx, maxy], [minzoom, maxzoom]) will
>  returns
>  array of tile images which covers all the area and for given interval
>  of zooms.

woulding it just be

function generateTile(minx, miny, maxx, maxy, minzoom, maxzoom) {
   list = array();
   foreach x (minx..maxx) {
      foreach y (miny..maxy) {
         foreach z (minzoom..maxzoom) {
             list[] = array(x,y,z);
         }
      }
   }
   return list;
}




>
>  For any given area and zoom, how do i compute grid of tiles (tile.x,
>  tile.y)?
>
>  Thank you.
>
>  SK.
>
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to