[OpenLayers-Users] Tile Map Service Specification
Christopher Schmidt
crschmidt at metacarta.com
Fri Feb 23 07:25:20 EST 2007
On Thu, Feb 22, 2007 at 08:30:28PM -0500, Robert J Becraft wrote:
> From my General Questions Thread....
>
> > How are your tiles generated now? If you can generate them
> > according to TMS
> > <http://wiki.osgeo.org/index.php/Tile_Map_Service_Specification>
> http://wiki.osgeo.org/index.php/Tile_Map_Service_Specification
> > you can use the TMS layer with OL 2.3.
> >
>
> My layer definition in the map html is:
> var tlayer = new OpenLayers.Layer.TMS( "OpenLayers TMS",
>
> "http://localhost/Avalon/Map/vmap0", {layers:
> 'basic'});
> The directory structure where the graphics are:
> /Avalon/Map/vmap01.0.0/levelzero/0/0/0.jpg
> /Avalon/Map/vmap01.0.0/levelzero/0/0/1.jpg
The TMS layer requires two options on the layer (instead of the
'layers': parameter that WMS requires).
layername: in your case, should be 'levelzero'
type: in your case, should be 'jpg'
http://openlayers.org/dev/examples/tms.html is the canonical OpenLayers
TMS example.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list