[mapguide-users] Map Tiled Perfomance
Maciej Skorczewski
maciej.skorczewski at procad.pl
Fri Feb 9 02:09:31 EST 2007
hi!
by the way how did you make clear cache (in tiled base) by code?
i must cleat that after update datasource (Postgis DataBase)
...and still no solution how to clear - reload layer.
this how my problem like:
http://img517.imageshack.us/img517/4615/reloadul5.jpg
In Php i made this script:
----- code begin -----
//initialize
MgInitializeWebTier($CONFIG_FILE);
//session id get from SESSION who start when user enter on index.php
$mgSessionId = $_SESSION['mgSessionId'];
$userInfo = new MgUserInformation($mgSessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);
$tileService= $siteConnection->CreateService(MgServiceType::TileService );
$resourceID = new
MgResourceIdentifier('Library://rysowanie/mapa_spatial.MapDefinition');
$map = new MgMap();
$map->Create($resourceService, $resourceID, 'mapa_spatial');
$tileService->ClearCache($map);
$sessionIdName = "Session:$mgSessionId//mapa_spatial.Map";
$sessionResourceID = new MgResourceIdentifier($sessionIdName);
$sessionResourceID->Validate();
$map->Save($resourceService, $sessionResourceID);
$mapUpdated = true;
------- code end -----
Kencana napisał(a):
> Hi all,
>
> currently i have 37 layers in the base layers. and the performance of the
> first map tiled loading will take arround 30 seconds. any idea on how to
> make it faster in the first map loading?
>
> thank you
>
> Regards,
> Kencana
More information about the mapguide-users
mailing list