[mapguide-users] Little patch to make ajaxviewer as fast as google.maps

Bruno Scott bscott at geomapgis.com
Fri Apr 3 08:51:15 EDT 2009


The idea is not from me, i took piece of code from OpenLayers / mapguide.js.

The idea is to pre generate all tiles ( with the new Maestro preview)
and Create a virtual directory on MapGuideOpenSource2.0\Server\Repositories\TileCache

I have added 3 new parameters on the webConfig.ini
[HttpTileServiceProperties]
UseHttpTile=1    -> Use direct access to tiles instead mapagent.fcgi ,0 = false and 1 = true
FirstGroupImageFormat = PNG    -> Image format for the first base group (could be JPG) all others must be png 
TileServerUrls=http://mg1/tiles;http://mg2/tiles       ->List of all urls that will serves http tile

You can define many TileServerUrls, you just have to copy your TileCache directory on another web server

When UseHttpTile is set, all the tiles are directly served by the web server ( bypassing complely mapguide)
The resulting display speed is incredible, as fast as a webserver can be.
This also remove a lot of pressure on the mapguide server and then can be scaled up

Most of the code reside on the ajaxmappane.templ
The code inside the Net and php part is only there to read the extra webconfig.ini params.
I didn't make the java version yet, but it is very straight forward to do.

I'm ready to create a ticket and post the patch.
Do you think it's to late for the 2.1 build?
It is not really new stuff, it is possible to do the same with Openlayers...

Bruno Scott

useHttpTile.patch 
-- 
View this message in context: http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2580480.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list