[OpenLayers-Users] Pre cached images
Bill Woodall
bwoodall at wardrobe.dhs.org
Thu Jan 25 21:33:58 EST 2007
On Thu, 2007-01-25 at 13:03 +0000, Jerry O'Sullivan wrote:
> Hi,
>
> I have a load of raster files that I would like to make viewable
> through openlayers
>
> If I can create a load of pre cached images, can openlayers serve
> these up? Whats objects in the API should I be looking at?
>
> Thanks
> Jerry
Hi Jerry,
If you have some kind of map server (WMS, TMS) running then you can
'insert' tileCache [1] between the web page and the server to
serve up your tiles. You should be able to run tileCache by itself
but you might want to tweak the python code to handle missing tiles.
[1] http://labs.metacarta.com/wms-c/
I use WMS so my call is like a normal one .
var lay = new OpenLayers.Layer.WMS("Cool Stuff",
"http://somecoolinfo.somewhere.net/cgi-bin/tilecache.cgi?",
{ layers: "Neat Image"} ) ;
map.addLayer(lay);
Hope that helps!
.......Bill,
OL/TC User
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070125/5c2fee8d/attachment.html
More information about the Users
mailing list