[mapguide-users] A question on MgTileService.GetTile() function

Kori Maleski Kori.Maleski at websoftdev.com
Fri Oct 12 19:11:22 EDT 2007


The AJAX viewer dynamically assigns an image ID to a URL that consists of a
GETTILEIMAGE request.

On a Windows XP machine when using Internet Explorer, this GETTILEIMAGE URL
and resulting .png/.jpg are stored in the Temporary Internet Files folder.

On a Windows XP machine when using Firefox, these are stored in a profile
folder - Local Settings\Application
Data\Mozilla\Firefox\Profiles\q6c40rzw.default\Cache.
Firefox encrypts the cache.  You can view the contents by typing
"about:cache" in the Firefox URL, and follow the links.

On a Windows XP machine when using Safari, the cache is stored in an SQLLite
database.


The Ajax viewer will perform GETTILEIMAGE for tiles within the map view.
Your browser settings for caching will determine whether the request is
performed or not if a tile that has been previously requested is within the
view.

The Ajax viewer will calculate which tile row/columns fall within the view
extent at the current zoom threshold, then perform the requests for those
row/column tiles.

The ID assigned to the image starts at 0 for the map session and increments
up, and has no bearing on the row/column order.

The URL contains all of the relevant row/column and scale info obviously. 

________________________________




Kori Maleski
Senior Application Developer
WEBSOFT DEVELOPERS, INC.
P: (530) 759-8754 ext 114
F: (530) 759-0923
kori.maleski at websoftdev.com
________________________________

 
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Maksim Sestic
Sent: Friday, October 12, 2007 4:50 AM
To: mapguide-users at lists.osgeo.org
Subject: Re: [mapguide-users] A question on MgTileService.GetTile() function


Maciek, as Jackie sad, it does produce a cached tile - but on the server
side. I don't know how and if AJAX stores it's cached data locally.

Regards,
Maksim Sestic



macieksk wrote:
> 
> Jackie Ng pisze:
>> Yes it does produce a cached tile. 
>   can anybody send ex. code of it?
> 
> mayby can we create php code to create jpg/png file of map.
> 
> 
> --
> 
> maciek
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context:
http://www.nabble.com/A-question-on-MgTileService.GetTile%28%29-function-tf4
612851s16610.html#a13173813
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



More information about the mapguide-users mailing list