Changes between Initial Version and Version 1 of CodeSamples/Tiles/TileCacheSeeding


Ignore:
Timestamp:
07/18/08 20:30:15 (16 years ago)
Author:
zspitzer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples/Tiles/TileCacheSeeding

    v1 v1  
     1[[PageOutline]]
     2
     3This page is one of the !MapGuide Community CodeSamples.  Visit the CodeSamples page to view more!
     4
     5== Seeding the Mapguide Tile Cache for a Tiled Map ==
     6
     7The attached script uses OpenLayers to display a tiled map and provides the functionality to pan[[BR]]
     8and scan across the entire map, optionally for all scale levels.
     9
     10The logic is quite simple. Starting for the center of the map, it will pan left, then up and down to[[BR]]
     11calculate the number of rows and then right to calculate the number of columns. This could be simply[[BR]]
     12calculated but the tiles need to be requested anyway.
     13
     14Once that is known, the script will then either starting panning left to right down one and then [[BR]]
     15right to left and so on to request (and thus seed) the entire map.
     16
     17There is also an option to use a randomised request pattern. 
     18
     19The attached file is configured to work with the sheboygan sample.
     20
     21== Future ==
     22
     23The randomised logic could be improved generate the random list once rather than the approach currently used.
     24
     25Making the script into a fusion widget 
     26
     27Some of a code cleanup :)
     28
     29
     30