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

2007-10-13 Thread Maksim Sestic

There's one more thing when talking about managed implementation of
MgTileService.GetTile() function. It doesn't throw an exception if requested
tile index (either X or Y) is out of map's envelope. In such case MgReader
receives some data - actually 1062 bytes of it.

Regards,
Maksim Sestic
-- 
View this message in context: 
http://www.nabble.com/A-question-on-MgTileService.GetTile%28%29-function-tf4612851s16610.html#a13187834
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


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

2007-10-12 Thread Kori Maleski
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
[EMAIL PROTECTED]


 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maksim Sestic
Sent: Friday, October 12, 2007 4:50 AM
To: mapguide-users@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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


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

2007-10-12 Thread Maksim Sestic

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@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-tf4612851s16610.html#a13173813
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


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

2007-10-12 Thread Maciej Skorczewski

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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


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

2007-10-12 Thread Jackie Ng

Yes it does produce a cached tile. 

- Jackie


Maksim Sestic wrote:
> 
> Does anybody know if calling MgTileService.GetTile() function produces a
> cached tile (if it's not cached previously), even when working outside of
> AJAX?
> 
> Regards,
> Maksim Sestic
> 

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

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users