[mapguide-users] Little patch to make ajaxviewer as fast as
google.maps
Bruno Scott
bscott at geomapgis.com
Mon Apr 6 03:34:44 EDT 2009
Instead of the patch there is the updated files. Easier to test :) These files are for Mapguide OpenSource 2.02.
First step backup these files before
www
webcongfig.ini
www/mapviewernet
common.aspx
mapframe.aspx
www/mapviewerphp
common.php
mapframe.php
www/viewerfiles
ajaxmappane.templ
second step Copy the files in the zip file
Patch_HttpTile_MG202.zip
How to use it
1) You need a weblayout with base group. you can try with the Sheboygan_tile but it is much more impressive when you try it with huge rasters.
2) You need to pre generate all tiles, you can do it with the Maestro Preview ( it could take hours...)
3) Create un virtual directory on "MapGuideOpenSource2.0\Server\Repositories\TileCache"
4) open the webconfig.ini file, set the useHttpTile to 1 and update the TileServerUrls to your newly created virtual directory.
UseHttpTile=1
FirstGroupImageFormat = PNG
TileServerUrls=http://myServer/mgTiles
Try it ...
You can try some optimisations
a) Set some expiry date on your webserver. As your webserver only serves image file you can set the expiry date to 1 year. So even if you close your browser, the tiles still reside on your browser cache, making display incredebly fast when you reopen it.
b) You can copy your tiles directory to another server, This will remove a lot of pressure on your Mapguide server. The Mapguide server will only serves the other dynamic layers.
c) If your Tile server is still to slow, you could copy the tiles on as many server as you wish.
TileServerUrls=http://myServer1/mgTiles;yttp://myServer2/mgTiles...
d) Some raster image are big when they are in png format. You can decide to use jpg format. If your tiles are smaller, the first download process will be faster. This is only valid for the first base group, all other base group must be png ( for transparency)
e) Even if you have only one server, you can set 4 alias to your webserver. A browser can load up to 4 image at the time ( default values for IE and firefox). With this trick your browser will load tiles faster, if you have a good bandwidth
--
View this message in context: http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2591715.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list