[OpenLayers-Users] Tile cache?????

Prasad Choudhary prasad.choudhary at gmail.com
Mon Sep 3 05:18:27 EDT 2007


Hello Christopher,

Now I am using 
http://dev.openlayers.org/sandbox/stvn/arcgis-server/lib/OpenLayers.js APi
where by using OpenLayers.Layers.AGS i am able to access the tile cache but 
It seems that it is off when calculating the row and columns in some cases.
If I zoom out to level one it is most evident because there is only a couple
of tiles. what can i do now??

And how i can view the request URL to my tile cache or mapserver.

Thanks
  



Christopher Schmidt-4 wrote:
> 
> On Wed, Aug 29, 2007 at 02:59:20PM +0530, Prasad Choudhary wrote:
>> Hello all,
>> 
>> I have a map tiles directory in my application.
>> 
>> I want to access the tile cache from OL, how come I work with them?
>> 
>> Which layers should be used for that?
> 
> The best layer to look at is probably Layer.TMS, as a starting point.
> you'll want to modify the getURL function to match your particular type
> of tile cache: 
> 
> http://trac.openlayers.org/wiki/UsingGoogleTileSchema
> 
> shows how to override the getURL function without the need to edit any
> code.
> 
> getURL is passed a bounds, and from that bounds, you must calculate a
> tile URL. If you think you can't do that, an example of your cache
> layout would be nice.
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Tile-cache------tf4346702.html#a12458438
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list